/* ============================================================
   Curso Internacional de Endoscopia Avanzada Pancreatobiliar
   Estilos principales — Sistema de diseño v1.0
   ============================================================ */

:root {
    --navy: #173A60;
    --navy-deep: #0E2542;
    --navy-darker: #081729;
    --blue-clinical: #2A6BB8;
    --blue-light: #B5D4F4;
    --blue-pale: #E6F1FB;
    --black: #0D0D0F;
    --white: #FFFFFF;
    --bone: #FAFAFB;
    --gray-soft: #E5E7EB;
    --gray-mid: #6B7280;
    --gray-text: #2B313A;
    --green-success: #10B981;
    --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06);
    --shadow-md: 0 4px 16px rgba(10, 37, 64, 0.08);
    --shadow-lg: 0 12px 40px rgba(10, 37, 64, 0.12);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-text);
    background: var(--bone);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  h1, h2, h3, h4 {
    font-family: 'Manrope', sans-serif;
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: -0.01em;
  }

  a { color: inherit; text-decoration: none; }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* ============ NAVBAR ============ */
  .navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    min-width: 0;
  }
  .logo-image {
    height: 36px;
    width: 36px;
    object-fit: contain;
    flex-shrink: 0;
  }
  .logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    min-width: 0;
    max-width: 480px;
  }
  @media (min-width: 769px) and (max-width: 1023px) {
    .logo-text { max-width: 200px; }
  }
  .nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
  }
  .nav-links a {
    color: var(--blue-light);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--white); }

  .btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    font-family: 'Inter', sans-serif;
  }
  .btn-primary {
    background: var(--blue-clinical);
    color: var(--white);
  }
  .btn-primary:hover {
    background: #174A8C;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
  .btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
  }
  .btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
  }
  .btn-light {
    background: var(--white);
    color: var(--navy);
  }
  .btn-light:hover {
    background: var(--bone);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }

  .nav-cta { padding: 10px 20px; font-size: 13px; }

  .mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }
  .mobile-menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
  }
  .mobile-menu-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }
  .mobile-menu-toggle.is-open .mobile-menu-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-menu-toggle.is-open .mobile-menu-icon span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.is-open .mobile-menu-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* ============ HERO ============ */
  .hero {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
    color: var(--white);
    padding: 96px 0 80px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }
  .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
  }
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(8, 23, 41, 0.85) 0%,
      rgba(8, 23, 41, 0.7) 100%
    );
    z-index: 1;
    pointer-events: none;
  }
  .hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 60%;
    height: 100%;
    background-image:
      radial-gradient(circle at 70% 30%, rgba(30, 91, 168, 0.4) 0%, transparent 50%),
      radial-gradient(circle at 90% 80%, rgba(30, 91, 168, 0.2) 0%, transparent 40%);
    pointer-events: none;
    z-index: 2;
  }
  .hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 3;
  }
  .hero-inner {
    position: relative;
    z-index: 4;
  }
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 91, 168, 0.2);
    color: var(--blue-light);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(181, 212, 244, 0.2);
  }
  .hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--green-success);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  }
  .hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    color: var(--white);
    max-width: 820px;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
  }
  .hero h1 .highlight {
    color: var(--blue-light);
    display: inline-block;
  }
  .hero-subtitle {
    font-size: 18px;
    color: var(--blue-light);
    max-width: 620px;
    margin-bottom: 36px;
    line-height: 1.6;
  }
  .hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 56px;
  }
  .hero-actions .btn { padding: 14px 28px; font-size: 15px; }

  .hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 720px;
  }
  .hero-meta-item .label {
    font-size: 11px;
    color: rgba(181, 212, 244, 0.7);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .hero-meta-item .value {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: var(--white);
  }

  /* ============ SOBRE EL CURSO ============ */
  .sobre-curso-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
  }
  .sobre-curso-logo {
    display: flex;
    justify-content: center;
  }
  .sobre-curso-logo img {
    height: 180px;
    width: auto;
    display: block;
  }
  .sobre-curso-content {
    max-width: 540px;
  }
  .sobre-curso-content .section-header {
    margin-bottom: 32px;
  }
  .about-paragraph {
    font-size: 16px;
    color: var(--gray-text);
    line-height: 1.7;
    margin-bottom: 18px;
  }
  .about-paragraph:last-of-type { margin-bottom: 0; }
  @media (min-width: 1024px) {
    .sobre-curso-grid {
      grid-template-columns: 1fr 1fr;
      gap: 80px;
    }
    .sobre-curso-logo img {
      height: 280px;
    }
  }

  /* ============ OBJETIVOS ============ */
  .objectives-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  @media (min-width: 768px) {
    .objectives-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  }
  @media (min-width: 1024px) {
    .objectives-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  }
  .objective-card {
    background: var(--white);
    border: 0.5px solid var(--gray-soft);
    border-left: 3px solid var(--navy);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
  }
  .objective-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--blue-clinical);
  }
  .objective-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--navy);
    margin-bottom: 6px;
    line-height: 1.3;
    letter-spacing: -0.01em;
  }
  .objective-desc {
    font-size: 13.5px;
    color: var(--gray-text);
    line-height: 1.5;
  }

  /* ============ DIRIGIDO A ============ */
  .audience {
    background: var(--bone);
    padding: 48px 0;
  }
  .audience-header {
    margin-bottom: 24px;
  }
  .audience-header .section-title {
    margin-bottom: 0;
  }
  .audience-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .audience-chip {
    background: var(--blue-pale);
    color: var(--blue-clinical);
    padding: 8px 16px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
  }

  /* ============ BANNER HOSPITAL ============ */
  .hospital-banner {
    background: var(--white);
    border-bottom: 1px solid var(--gray-soft);
    padding: 20px 0;
  }
  .banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }
  .banner-left {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .banner-image {
    width: 64px;
    height: 64px;
    background: var(--gray-soft);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-mid);
    font-size: 11px;
    font-weight: 500;
    overflow: hidden;
    flex-shrink: 0;
  }
  .banner-image img { width: 100%; height: 100%; object-fit: cover; }
  .banner-text .title {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--navy);
  }
  .banner-text .subtitle {
    font-size: 13px;
    color: var(--gray-mid);
    margin-top: 2px;
  }
  .banner-tag {
    background: var(--blue-pale);
    color: var(--blue-clinical);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
  }

  /* ============ SECCIONES ============ */
  .section {
    padding: 80px 0;
  }
  .section-light { background: var(--white); }
  .section-bone { background: var(--bone); }
  .section-dark { background: var(--navy-deep); color: var(--white); }

  .section-header {
    margin-bottom: 48px;
  }
  .section-eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: var(--blue-clinical);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .section-dark .section-eyebrow { color: var(--blue-light); }
  .section-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    margin-bottom: 12px;
  }
  .section-dark .section-title { color: var(--white); }
  .section-description {
    font-size: 16px;
    color: var(--gray-mid);
    max-width: 580px;
  }
  .section-dark .section-description { color: var(--blue-light); }

  /* ============ FACULTY GRID ============ */
  .faculty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  @media (min-width: 768px) {
    .faculty-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  }
  @media (min-width: 1024px) {
    .faculty-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  }

  .faculty-card {
    background: var(--white);
    border: 1px solid var(--gray-soft);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  }
  .faculty-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-light);
  }
  .faculty-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--gray-soft);
    position: relative;
    overflow: hidden;
  }
  .faculty-photo img,
  .faculty-photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .faculty-info {
    padding: 18px 20px;
  }
  .faculty-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--navy);
    margin-bottom: 4px;
  }
  .faculty-role {
    font-size: 13px;
    color: var(--blue-clinical);
    font-weight: 500;
  }

  /* ============ PROGRAMA ============ */
  .program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
  }
  .program-day {
    background: var(--white);
    border: 1px solid var(--gray-soft);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s;
  }
  .program-day:hover {
    border-color: var(--blue-clinical);
    transform: translateY(-2px);
  }
  .program-day-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-soft);
  }
  .program-day-badge {
    background: var(--navy);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
  }
  .program-day-date {
    font-size: 13px;
    color: var(--gray-mid);
    font-weight: 500;
  }
  .program-day-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 12px;
  }
  .program-day-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .program-day-list li {
    font-size: 14px;
    color: var(--gray-text);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
  }
  .program-day-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--blue-clinical);
    border-radius: 50%;
  }

  .program-note {
    margin-top: 24px;
    padding: 16px 20px;
    background: var(--blue-pale);
    border-radius: 8px;
    font-size: 13px;
    color: var(--navy);
    border-left: 3px solid var(--blue-clinical);
  }

  /* ============ COSTOS ============ */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .pricing-card {
    background: var(--white);
    border: 1px solid var(--gray-soft);
    border-radius: 16px;
    padding: 32px 28px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
  .pricing-card.featured {
    border: 2px solid var(--navy);
    background: linear-gradient(180deg, #fff 0%, #F6F9FD 100%);
  }
  .pricing-badge {
    position: absolute;
    top: -12px;
    left: 28px;
    background: var(--blue-clinical);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 999px;
    text-transform: uppercase;
  }
  .pricing-label {
    font-size: 11px;
    color: var(--gray-mid);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 16px;
  }
  .pricing-currency {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: var(--gray-mid);
  }
  .pricing-value {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 44px;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .pricing-mxn {
    font-size: 13px;
    color: var(--gray-mid);
    font-weight: 500;
  }
  .pricing-description {
    font-size: 14px;
    color: var(--gray-text);
    margin-bottom: 20px;
    line-height: 1.5;
  }
  .pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
  }
  .pricing-features li {
    font-size: 13px;
    color: var(--gray-text);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
  }
  .pricing-features li::before {
    content: '';
    width: 16px;
    height: 16px;
    background: var(--blue-pale);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%231E5BA8' d='M6.5 10.5L4 8l-1 1 3.5 3.5L13 6l-1-1z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
  }
  .pricing-cta {
    width: 100%;
    text-align: center;
    background: var(--navy);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
  }
  .pricing-cta:hover { background: var(--blue-clinical); }
  .pricing-card.featured .pricing-cta { background: var(--blue-clinical); }
  .pricing-card.featured .pricing-cta:hover { background: var(--navy); }

  /* ============ INSCRIPCIÓN ============ */
  .registration-info {
    background: var(--white);
    border: 1px solid var(--gray-soft);
    border-radius: 16px;
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 24px;
  }
  .reg-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }
  .reg-icon {
    width: 40px;
    height: 40px;
    background: var(--blue-pale);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-clinical);
    flex-shrink: 0;
  }
  .reg-icon svg { width: 20px; height: 20px; }
  .reg-label {
    font-size: 11px;
    color: var(--gray-mid);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .reg-value {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--navy);
  }

  /* ============ CONTACTO ============ */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    row-gap: 32px;
    align-items: start;
  }
  .contact-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }
  .contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(30, 91, 168, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-light);
    flex-shrink: 0;
    border: 1px solid rgba(181, 212, 244, 0.15);
  }
  .contact-icon svg { width: 20px; height: 20px; }
  .contact-label {
    font-size: 11px;
    color: var(--blue-light);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
    opacity: 0.8;
  }
  .contact-value {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: var(--white);
    word-break: break-word;
  }
  .contact-value a:hover { color: var(--blue-light); }

  .contact-divider {
    height: 0.5px;
    background: rgba(181, 212, 244, 0.18);
    margin: 32px 0;
  }
  .contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }
  .contact-info-card {
    background: rgba(181, 212, 244, 0.05);
    border: 0.5px solid rgba(181, 212, 244, 0.12);
    border-radius: 12px;
    padding: 18px;
  }
  .contact-info-card-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 107, 184, 0.18);
    border-radius: 8px;
    color: var(--blue-light);
    margin-bottom: 12px;
  }
  .contact-info-card-icon svg { width: 16px; height: 16px; }
  .contact-info-card-label {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue-light);
    opacity: 0.7;
    margin-bottom: 4px;
  }
  .contact-info-card-value {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 4px;
  }
  .contact-info-card-note {
    font-size: 11px;
    color: var(--blue-light);
    opacity: 0.6;
    line-height: 1.4;
  }
  .contact-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 28px;
    background: var(--blue-clinical);
    color: var(--white);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-shadow: 0 4px 16px rgba(42, 107, 184, 0.25);
  }
  .contact-cta:hover {
    background: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 107, 184, 0.35);
  }
  .contact-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
  }
  .contact-cta:hover svg { transform: translateX(4px); }

  .contact-map {
    background: var(--bone);
    border: 0.5px solid var(--gray-soft);
    border-radius: 12px;
    height: 450px;
    overflow: hidden;
    position: relative;
    width: 100%;
  }
  .map-noscript {
    padding: 24px;
    background: var(--blue-pale);
    color: var(--gray-text);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
  }
  .map-noscript a {
    color: var(--blue-clinical);
    font-weight: 600;
  }

  /* ============ LEAFLET MAP — overrides para popup hospital ============ */
  .leaflet-container { font-family: 'Inter', sans-serif; }
  .leaflet-popup-content-wrapper { border-radius: 8px; }
  .leaflet-popup-content { margin: 14px 18px; }
  .hospital-popup-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: var(--navy);
    margin: 0 0 6px;
  }
  .hospital-popup-address {
    font-size: 13px;
    line-height: 1.5;
    color: var(--gray-text);
    margin: 0 0 10px;
  }
  .hospital-popup-link {
    font-weight: 600;
    font-size: 13px;
    color: var(--blue-clinical);
    transition: color 0.2s ease;
  }
  .hospital-popup-link:hover { color: var(--navy); }
  .hospital-marker { background: transparent; border: none; }


  /* ============ MAPA INFO PANEL (anclado al mapa) ============ */
  .contact-map-wrapper {
    position: relative;
  }
  .map-info-panel {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    width: calc(100% - 32px);
    max-width: 480px;
    background: var(--white);
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    border: 0.5px solid var(--gray-soft);
    font-family: 'Inter', sans-serif;
  }
  .map-info-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }
  .map-info-eyebrow-line {
    flex: 1;
    height: 0.5px;
    background: var(--gray-soft);
  }
  .map-info-eyebrow-text {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-mid);
  }
  .map-info-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
  }
  .map-info-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--navy);
    margin: 0;
    line-height: 1.2;
  }
  .map-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--green-success);
    font-weight: 500;
  }
  .map-info-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-success);
    animation: pulse-dot 2s ease-in-out infinite;
  }
  @keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50%      { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
  }
  .map-info-address {
    font-size: 13px;
    color: var(--gray-mid);
    margin: 0 0 14px 0;
    line-height: 1.4;
  }
  .map-info-cta {
    display: inline-block;
    padding: 8px 16px;
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--gray-soft);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  }
  .map-info-cta:hover {
    border-color: var(--navy);
    background: var(--bone);
    transform: translateY(-1px);
  }
  @media (max-width: 768px) {
    .map-info-panel {
      padding: 14px 18px;
    }
    .map-info-title { font-size: 14px; }
  }

  /* ============ AVALES ============ */
  .endorsements {
    background: var(--bone);
    padding: 64px 0;
    border-top: 1px solid var(--gray-soft);
  }
  .endorsements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
  }
  @media (min-width: 1024px) {
    .endorsements-grid {
      grid-template-columns: 1fr 1.4fr;
      gap: 0;
    }
    .endorsement-organiza {
      padding-right: 56px;
    }
    .endorsement-avales {
      border-left: 0.5px solid var(--gray-soft);
      padding-left: 56px;
    }
  }
  .endorsement-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .endorsement-block .section-eyebrow {
    margin-bottom: 0;
  }
  .organiza-logo {
    height: 110px;
    width: auto;
    object-fit: contain;
  }
  .organiza-name {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-mid);
    line-height: 1.45;
    max-width: 320px;
    letter-spacing: -0.005em;
  }
  .endorsements-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
  }
  .endorsement-item {
    flex: 0 1 320px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 28px;
    gap: 6px;
    color: var(--gray-mid);
    filter: grayscale(1);
    opacity: 0.78;
    transition: opacity 0.25s ease, filter 0.25s ease;
  }
  .endorsement-item:hover {
    opacity: 1;
    filter: grayscale(0.4);
  }
  .endorsement-item span {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--navy);
    line-height: 1.3;
  }
  .endorsement-item small {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gray-mid);
  }
  .endorsement-placeholder {
    border: 1px dashed var(--gray-soft);
    border-radius: 12px;
    background: var(--white);
  }

  /* ============ FOOTER ============ */
  footer {
    background: var(--navy);
    color: var(--blue-light);
    padding: 40px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 13px;
  }
  .footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--white);
  }
  .footer-logo-image {
    height: 56px;
    width: 56px;
    object-fit: contain;
    flex-shrink: 0;
  }
  .footer-logo-text {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
    letter-spacing: -0.01em;
  }
  .footer-credit {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--gray-mid);
    text-align: center;
  }
  .footer-credit a {
    color: var(--blue-clinical);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .footer-credit a:hover {
    text-decoration: underline;
    color: var(--blue-light);
  }

  /* ============ BOTÓN FLOTANTE TELÉFONO ============ */
  .float-call {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--blue-clinical);
    color: var(--white);
    padding: 14px 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(30, 91, 168, 0.4);
    z-index: 99;
    transition: all 0.2s;
    text-decoration: none;
  }
  .float-call:hover {
    background: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(10, 37, 64, 0.5);
  }
  .float-call svg {
    width: 20px;
    height: 20px;
    animation: pulse-ring 2s infinite;
  }
  @keyframes pulse-ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-12deg); }
    20%, 40% { transform: rotate(12deg); }
    50% { transform: rotate(0deg); }
  }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 768px) {
    .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--navy-darker);
      flex-direction: column;
      padding: 24px;
      gap: 16px;
      border-top: 0.5px solid rgba(181, 212, 244, 0.2);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }
    .nav-links.is-open { display: flex; }
    .nav-links a {
      padding: 12px 0;
      font-size: 16px;
    }
    .mobile-menu-toggle { display: inline-flex; }
    .logo-text { display: none; }
    .hero { padding: 64px 0 56px; }
    .hero::after {
      background: linear-gradient(
        180deg,
        rgba(8, 23, 41, 0.9) 0%,
        rgba(8, 23, 41, 0.8) 100%
      );
    }
    .hero-actions .btn { padding: 12px 22px; font-size: 14px; }
    .section { padding: 56px 0; }
    .contact-grid {
      grid-template-columns: 1fr;
      gap: 32px;
    }
    .contact-map { height: 360px; }
    .contact-info-grid { grid-template-columns: 1fr; }
    .objective-card { padding: 18px; }
    .objective-title { font-size: 15px; }
    .objective-desc { font-size: 12.5px; }
    .float-call span { display: none; }
    .float-call { padding: 14px; }
    .nav-cta { display: none; }
    .faculty-info { padding: 14px 16px; }
    .faculty-name { font-size: 14px; }
    .faculty-role { font-size: 12px; }
  }

  /* ============ ANIMACIONES ============ */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  @media (prefers-reduced-motion: reduce) {
    .fade-in {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }