﻿/* ===================================================
       VARIABLES
    =================================================== */
    :root {
      --navy:       #1e3a8a;
      --navy-dark:  #152b6b;
      --navy-light: #dbeafe;
      --red:        #c73a4a;
      --red-dark:   #a02d3a;
      --red-light:  #fde8ea;
      --white:      #ffffff;
      --gray-50:    #f8fafc;
      --gray-100:   #f1f5f9;
      --gray-200:   #e2e8f0;
      --gray-400:   #94a3b8;
      --gray-600:   #475569;
      --gray-800:   #1e293b;
      --gray-900:   #0f172a;
      --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
      --shadow-md:  0 4px 12px rgba(0,0,0,.10);
      --shadow-lg:  0 10px 24px rgba(0,0,0,.12);
      --shadow-xl:  0 20px 40px rgba(0,0,0,.14);
      --radius-sm:  6px;
      --radius-md:  12px;
      --radius-lg:  20px;
      --transition: all .28s cubic-bezier(.4,0,.2,1);
    }

    /* ===================================================
       RESET Y BASE
    =================================================== */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      color: var(--gray-800);
      background: var(--white);
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
    }
    img { max-width: 100%; height: auto; display: block; }
    a   { text-decoration: none; color: inherit; }
    ul  { list-style: none; }

    /* ===================================================
       NAVEGACIÓN
    =================================================== */
    .navbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 1000;
      background: rgba(255,255,255,.96);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(226,232,240,.6);
      transition: var(--transition);
    }
    .navbar.scrolled { box-shadow: var(--shadow-md); }

    .nav-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 28px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 72px;
    }
    .nav-logo img { height: 46px; width: auto; }
    .nav-links { display: flex; align-items: center; gap: 4px; }
    .nav-link {
      padding: 8px 16px;
      border-radius: var(--radius-sm);
      font-size: .9rem;
      font-weight: 500;
      color: var(--gray-600);
      transition: var(--transition);
      white-space: nowrap;
    }
    .nav-link:hover  { background: var(--navy-light); color: var(--navy); }
    .nav-link.active { background: var(--navy); color: var(--white); }
    .nav-cta {
      margin-left: 8px;
      padding: 10px 22px;
      background: var(--red);
      color: var(--white) !important;
      border-radius: var(--radius-sm);
      font-weight: 700;
      font-size: .875rem;
      transition: var(--transition);
    }
    .nav-cta:hover { background: var(--red-dark) !important; transform: translateY(-1px); }

    .nav-toggle {
      display: none;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 8px;
      border-radius: var(--radius-sm);
    }
    .nav-toggle span {
      display: block;
      width: 22px; height: 2px;
      background: var(--gray-800);
      border-radius: 2px;
      transition: var(--transition);
    }
    .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

    /* ===================================================
       CABECERA DE PÁGINA
    =================================================== */
    .page-header {
      padding-top: 72px;
      background: linear-gradient(135deg, #0b1f54 0%, #1e3a8a 50%, #1d4ed8 100%);
      padding-bottom: 80px;
      position: relative;
      overflow: hidden;
    }
    .page-header::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,.06) 0%, transparent 60%);
    }
    .page-header::after {
      content: '';
      position: absolute;
      bottom: -1px; left: 0; right: 0;
      height: 70px;
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70'%3E%3Cpath fill='%23ffffff' d='M0,70 L0,35 C240,70 480,0 720,35 C960,70 1200,0 1440,35 L1440,70 Z'/%3E%3C/svg%3E") center bottom/cover no-repeat;
    }
    .page-header-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 56px 28px 20px;
      position: relative;
      z-index: 1;
    }
    .breadcrumb {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 20px;
    }
    .breadcrumb a, .breadcrumb span {
      font-size: .82rem; font-weight: 500; color: rgba(255,255,255,.6);
    }
    .breadcrumb a:hover { color: rgba(255,255,255,.9); }
    .breadcrumb .sep { color: rgba(255,255,255,.3); }
    .breadcrumb .current { color: rgba(255,255,255,.9); }
    .page-header h1 {
      font-size: clamp(1.8rem, 4vw, 3rem);
      font-weight: 800;
      color: var(--white);
      margin-bottom: 16px;
    }
    .page-header p {
      font-size: 1.05rem;
      color: rgba(255,255,255,.78);
      max-width: 600px;
      line-height: 1.7;
    }

    /* ===================================================
       FOTO DEL EQUIPO
    =================================================== */
    .team-photo-section {
      padding: 72px 0 0;
      background: var(--white);
    }
    .main-wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

    .photo-gallery {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin-bottom: 0;
    }
    .photo-item {
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-lg);
      position: relative;
      aspect-ratio: 16/9;
      background: var(--gray-100);
    }
    .photo-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .5s ease;
    }
    .photo-item:hover img { transform: scale(1.03); }
    .photo-caption {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      padding: 20px 24px;
      background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%);
      color: var(--white);
      font-size: .85rem;
      font-weight: 500;
      opacity: 0;
      transition: var(--transition);
    }
    .photo-item:hover .photo-caption { opacity: 1; }

    /* ===================================================
       SECCIÓN MISIÓN
    =================================================== */
    .mission-section {
      padding: 80px 0;
      background: var(--white);
    }
    .mission-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 64px;
      align-items: center;
    }
    .mission-content {}
    .section-tag {
      display: inline-block;
      font-size: .72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .14em;
      color: var(--red);
      margin-bottom: 12px;
    }
    .section-title {
      font-size: clamp(1.6rem, 3vw, 2.2rem);
      font-weight: 800;
      color: var(--navy);
      margin-bottom: 24px;
      line-height: 1.2;
    }
    .mission-text {
      font-size: 1.02rem;
      color: var(--gray-600);
      line-height: 1.78;
      margin-bottom: 20px;
    }

    .mission-highlights {
      display: flex;
      flex-direction: column;
      gap: 16px;
      margin-top: 32px;
    }
    .highlight-item {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      padding: 20px;
      background: var(--gray-50);
      border-radius: var(--radius-md);
      border: 1px solid var(--gray-200);
      transition: var(--transition);
    }
    .highlight-item:hover { border-color: var(--navy-light); background: var(--navy-light); }
    .highlight-icon {
      flex-shrink: 0;
      width: 44px; height: 44px;
      border-radius: var(--radius-sm);
      background: var(--navy);
      color: var(--white);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
    }
    .highlight-item h4 {
      font-size: .95rem;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 4px;
    }
    .highlight-item p { font-size: .88rem; color: var(--gray-600); line-height: 1.5; }

    /* ===================================================
       SECCIÓN RECONOCIMIENTO ELSO
    =================================================== */
    .award-section {
      padding: 80px 0;
      background: var(--gray-50);
    }
    .award-card {
      background: linear-gradient(135deg, var(--navy) 0%, #1d4ed8 100%);
      border-radius: var(--radius-lg);
      padding: 64px 56px;
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 56px;
      align-items: center;
      position: relative;
      overflow: hidden;
    }
    .award-card::before {
      content: '';
      position: absolute;
      top: -60px; right: -60px;
      width: 300px; height: 300px;
      border-radius: 50%;
      background: rgba(255,255,255,.04);
    }
    .award-card::after {
      content: '';
      position: absolute;
      bottom: -80px; left: 30%;
      width: 200px; height: 200px;
      border-radius: 50%;
      background: rgba(199,58,74,.1);
    }

    .award-logo-wrap {
      flex-shrink: 0;
      width: 240px;
      background: var(--white);
      border-radius: var(--radius-md);
      padding: 20px;
      position: relative;
      z-index: 1;
    }
    .award-logo-wrap img { width: 100%; height: auto; }

    .award-content { position: relative; z-index: 1; }
    .award-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255,255,255,.15);
      border: 1px solid rgba(255,255,255,.25);
      color: rgba(255,255,255,.9);
      padding: 6px 14px;
      border-radius: 100px;
      font-size: .75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .08em;
      margin-bottom: 20px;
    }
    .award-badge .fa { color: #fbbf24; }

    .award-content h2 {
      font-size: clamp(1.4rem, 3vw, 2rem);
      font-weight: 800;
      color: var(--white);
      margin-bottom: 16px;
      line-height: 1.2;
    }
    .award-content h2 span { color: #93c5fd; }

    .award-content p {
      color: rgba(255,255,255,.82);
      font-size: 1rem;
      line-height: 1.72;
      max-width: 560px;
    }

    /* ===================================================
       SECCIÓN: VALORES / PILARES
    =================================================== */
    .values-section {
      padding: 80px 0;
      background: var(--white);
    }
    .values-header {
      text-align: center;
      margin-bottom: 56px;
    }
    .values-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
    }
    .value-card {
      text-align: center;
      padding: 40px 28px;
      background: var(--gray-50);
      border-radius: var(--radius-lg);
      border: 1px solid var(--gray-200);
      transition: var(--transition);
    }
    .value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; background: var(--white); }
    .value-icon {
      width: 72px; height: 72px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.8rem;
      margin: 0 auto 24px;
    }
    .value-icon.navy { background: var(--navy-light); color: var(--navy); }
    .value-icon.red  { background: var(--red-light); color: var(--red); }
    .value-icon.gold { background: #fef9c3; color: #92400e; }

    .value-card h3 {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 12px;
    }
    .value-card p {
      font-size: .9rem;
      color: var(--gray-600);
      line-height: 1.7;
    }

    /* ===================================================
       CTA FINAL
    =================================================== */
    .cta-section {
      padding: 80px 0;
      background: var(--gray-50);
    }
    .cta-card {
      background: linear-gradient(90deg, var(--red) 0%, #a8192b 100%);
      border-radius: var(--radius-lg);
      padding: 56px 48px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 40px;
      flex-wrap: wrap;
    }
    .cta-text h2 {
      font-size: 1.8rem;
      font-weight: 800;
      color: var(--white);
      margin-bottom: 10px;
    }
    .cta-text p {
      color: rgba(255,255,255,.82);
      font-size: 1rem;
      line-height: 1.6;
    }
    .cta-actions {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      flex-shrink: 0;
    }
    .cta-btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 14px 30px;
      background: var(--white);
      color: var(--red-dark);
      border-radius: var(--radius-sm);
      font-weight: 700;
      font-size: .95rem;
      transition: var(--transition);
    }
    .cta-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
    .cta-btn-secondary {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 13px 28px;
      background: transparent;
      border: 2px solid rgba(255,255,255,.5);
      color: var(--white);
      border-radius: var(--radius-sm);
      font-weight: 600;
      font-size: .95rem;
      transition: var(--transition);
    }
    .cta-btn-secondary:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.8); }

    /* ===================================================
       PIE DE PÁGINA
    =================================================== */
    footer {
      background: var(--gray-900);
      color: var(--white);
      padding: 80px 0 32px;
    }
    .footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
    .footer-top {
      display: grid;
      grid-template-columns: 1.5fr 1fr 1fr;
      gap: 56px;
      margin-bottom: 64px;
    }
    .footer-logo { margin-bottom: 20px; }
    .footer-logo {
      display: inline-block;
      background: rgba(255,255,255,0.95);
      padding: 10px 16px;
      border-radius: var(--radius-sm);
      margin-bottom: 20px;
    }
    .footer-logo img { height: 44px; width: auto; display: block; }

    .footer-col {
      display: flex;
      flex-direction: column;
    }
    .footer-col .footer-btn { margin-top: auto; }

    .footer-col h4 {
      font-size: .72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .14em;
      color: var(--gray-400);
      margin-bottom: 20px;
      padding-bottom: 12px;
      border-bottom: 1px solid rgba(255,255,255,.1);
    }
    .footer-col p { color: rgba(255,255,255,.65); font-size: .9rem; line-height: 1.72; margin-bottom: 20px; }
    .footer-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 11px 22px;
      background: var(--navy);
      color: var(--white);
      border-radius: var(--radius-sm);
      font-weight: 600;
      font-size: .875rem;
      transition: var(--transition);
      margin-bottom: 24px;
    }
    .footer-btn:hover { background: #1e40af; }
    .footer-btn.red-btn { background: var(--red); }
    .footer-btn.red-btn:hover { background: var(--red-dark); }
    .social-row { display: flex; gap: 12px; margin-top: 8px; margin-bottom: 20px; }
    .social-btn {
      width: 40px; height: 40px;
      background: rgba(255,255,255,.09);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      color: var(--white); font-size: .95rem;
      transition: var(--transition);
    }
    .social-btn:hover { background: var(--navy); transform: translateY(-2px); }
    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,.08);
      padding-top: 28px;
      text-align: center;
      color: rgba(255,255,255,.38);
      font-size: .82rem;
    }

    /* ===================================================
       RESPONSIVE
    =================================================== */
    @media (max-width: 960px) {
      .photo-gallery   { grid-template-columns: 1fr; }
      .mission-grid    { grid-template-columns: 1fr; gap: 40px; }
      .award-card      { grid-template-columns: 1fr; text-align: center; padding: 48px 36px; gap: 36px; }
      .award-logo-wrap { margin: 0 auto; }
      .award-content p { margin: 0 auto; }
      .values-grid     { grid-template-columns: 1fr 1fr; }
      .footer-top      { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 768px) {
      .nav-toggle { display: flex; }
      .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        height: calc(100vh - 72px);
        background: rgba(255,255,255,.98);
        flex-direction: column;
        align-items: stretch;
        padding: 24px 20px;
        gap: 8px;
        overflow-y: auto;
      }
      .nav-links.open  { display: flex; }
      .nav-link        { font-size: 1.25rem; width: 100%; padding: 18px 22px; border-radius: var(--radius-sm); }
      .nav-cta         { width: 100%; margin-left: 0; text-align: center; display: block; padding: 18px 22px; margin-top: 8px; font-size: 1.25rem; }

      .values-grid  { grid-template-columns: 1fr; }
      .cta-card     { flex-direction: column; text-align: center; padding: 40px 28px; }
      .cta-actions  { justify-content: center; width: 100%; }
      .footer-top   { grid-template-columns: 1fr; gap: 36px; }
    }
    @media (max-width: 480px) {
      .cta-actions { flex-direction: column; align-items: stretch; }
      .cta-btn-primary, .cta-btn-secondary { justify-content: center; }
      .award-card { padding: 36px 24px; }
    }

    /* Animación */
    .fade-up { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
    .fade-up.visible { opacity: 1; transform: translateY(0); }
