/* ============================================================
   5° 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);
  }
  .hero-meta-venues {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .hero-meta-venues li {
    position: relative;
    padding-left: 14px;
  }
  .hero-meta-venues li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--blue-light);
    font-weight: 700;
  }

  /* ============ 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;
  }

  /* ============ 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(3, 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;
    display: flex;
    flex-direction: column;
  }
  .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;
  }

  /* Placeholder de avatar (mientras llega la foto del profesor) */
  .faculty-avatar-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 5vw, 40px);
    color: var(--white);
    letter-spacing: 0.05em;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    position: relative;
    overflow: hidden;
  }
  .faculty-avatar-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
  }
  .faculty-avatar-placeholder span {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  }

  .faculty-info {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .faculty-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--navy);
    margin: 0 0 4px;
  }
  .faculty-role {
    font-size: 13px;
    color: var(--blue-clinical);
    font-weight: 500;
    margin: 0;
  }
  .faculty-bio {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: var(--gray-mid);
    line-height: 1.5;
    margin: 8px 0 0;
  }
  .faculty-bio-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 12px 0 0 0;
    margin-top: auto;
    color: var(--blue-clinical);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    align-self: flex-start;
    transition: color 0.2s ease, gap 0.2s ease;
  }
  .faculty-bio-trigger:hover {
    color: var(--navy);
    gap: 10px;
  }
  .faculty-bio-trigger svg {
    transition: transform 0.2s ease;
  }

  /* ============ PROGRAMA — BADGE RE-CERTIFICACIÓN ============ */
  .programa-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    max-width: 100%;
  }
  .programa-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--blue-pale);
    color: var(--navy);
    border: 0.5px solid var(--blue-light);
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    min-width: 0;
    max-width: 100%;
  }
  .programa-badge svg {
    flex-shrink: 0;
  }
  .programa-badge-logo {
    height: 52px;
    width: auto;
    flex-shrink: 0;
    display: block;
  }
  @media (min-width: 768px) {
    .programa-badge-wrap {
      gap: 18px;
    }
    .programa-badge {
      font-size: 14px;
      padding: 8px 18px;
    }
  }

  /* ============ PROGRAMA — TABS DÍA 1 / DÍA 2 ============ */
  .program-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--gray-soft);
  }
  .program-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 14px 28px;
    cursor: pointer;
    color: var(--gray-mid);
    font-family: 'Inter', sans-serif;
    transition: color 0.2s ease, border-color 0.2s ease;
    margin-bottom: -1px;
  }
  .program-tab:hover {
    color: var(--navy);
  }
  .program-tab.active {
    color: var(--navy);
    border-bottom-color: var(--navy);
  }
  .program-tab-label {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.01em;
    color: inherit;
  }
  .program-tab-date {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: inherit;
    opacity: 0.85;
  }

  /* ============ PROGRAMA — PANELES ============ */
  .program-panel { display: none; }
  .program-panel.active { display: block; }

  /* Meta del día (sede + coordinadores) */
  .program-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
  }
  @media (min-width: 768px) {
    .program-meta { grid-template-columns: 1fr 1fr; gap: 20px; }
  }
  .program-venue,
  .program-coordinators {
    background: var(--white);
    border: 0.5px solid var(--gray-soft);
    border-left: 3px solid var(--navy);
    border-radius: 8px;
    padding: 16px 20px;
  }
  .program-meta-eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-mid);
    margin-bottom: 6px;
  }
  .program-venue-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--navy);
    line-height: 1.3;
    margin: 0 0 4px;
  }
  .program-venue-detail {
    font-size: 13px;
    color: var(--gray-mid);
    line-height: 1.45;
    margin: 0;
  }
  .program-coordinators-list {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.4;
    margin: 0;
  }

  /* Bloques de horario (timeline-style) */
  .program-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
  }
  @media (min-width: 768px) {
    .program-block {
      flex-direction: row;
      align-items: flex-start;
      gap: 24px;
      margin-bottom: 48px;
    }
  }
  .program-block-time {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: 0.5px;
    background: var(--blue-pale);
    padding: 8px 12px;
    border-radius: 6px;
    align-self: flex-start;
    white-space: nowrap;
  }
  @media (min-width: 768px) {
    .program-block-time {
      flex: 0 0 130px;
      text-align: center;
      padding: 10px 12px;
    }
  }
  .program-block-content {
    flex: 1;
    border-left: 2px solid var(--blue-clinical);
    padding: 4px 0 4px 20px;
    min-width: 0;
  }
  .program-block-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 19px;
    color: var(--navy);
    margin-bottom: 6px;
    line-height: 1.25;
  }
  /* Chevron del acordeón mobile — oculto por default; el media query
     mobile lo muestra y el JS coordina aria-expanded + clase .is-open. */
  .program-block-toggle {
    display: none;
  }
  .program-block-subtitle {
    font-size: 13px;
    color: var(--gray-mid);
    margin-bottom: 14px;
    line-height: 1.45;
  }
  .program-block-footnote {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-mid);
    margin-top: 12px;
  }
  .program-block-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
  }
  .program-block-list li {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.5;
    padding-left: 14px;
    position: relative;
  }
  .program-block-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    background: var(--blue-clinical);
    border-radius: 50%;
  }
  .program-time-inline {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 500;
    color: var(--navy);
    margin-right: 8px;
    font-size: 13px;
  }
  .program-block-list-tags {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
  }
  .program-block-list-tags li {
    padding: 6px 12px;
    background: var(--white);
    border: 0.5px solid var(--gray-soft);
    border-radius: 999px;
    font-size: 13px;
    color: var(--navy);
  }
  .program-block-list-tags li::before { display: none; }

  /* Tabla del programa */
  .program-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 0.5px solid var(--gray-soft);
    border-radius: 8px;
    overflow: hidden;
    font-size: 13.5px;
  }
  .program-table thead {
    background: var(--bone);
    border-bottom: 1px solid var(--gray-soft);
  }
  .program-table th {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-mid);
    text-align: left;
    padding: 10px 14px;
    font-weight: 500;
  }
  .program-table tbody tr {
    border-top: 0.5px solid var(--gray-soft);
    transition: background 0.15s ease;
  }
  .program-table tbody tr:first-child { border-top: none; }
  .program-table tbody tr:hover { background: var(--bone); }
  .program-table td {
    padding: 12px 14px;
    color: var(--gray-text);
    vertical-align: top;
    line-height: 1.45;
  }
  .program-table td:first-child {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--navy);
    font-weight: 500;
    white-space: nowrap;
    width: 80px;
  }
  .program-table td:last-child {
    color: var(--blue-clinical);
    font-weight: 500;
    white-space: nowrap;
  }
  @media (max-width: 767px) {
    .program-table,
    .program-table thead,
    .program-table tbody,
    .program-table tr,
    .program-table td { display: block; }
    .program-table thead { display: none; }
    .program-table { border: none; background: transparent; }
    .program-table tbody tr {
      background: var(--white);
      border: 0.5px solid var(--gray-soft);
      border-radius: 8px;
      padding: 14px 16px;
      margin-bottom: 10px;
      display: block;
    }
    .program-table tbody tr:hover { background: var(--white); }
    .program-table td {
      padding: 4px 0;
      white-space: normal !important;
      width: auto !important;
    }
    .program-table td::before {
      content: attr(data-label);
      display: block;
      font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 9px;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--gray-mid);
      margin-bottom: 2px;
    }
    .program-table td:first-child {
      color: var(--navy);
      font-weight: 600;
      font-size: 14px;
      margin-bottom: 4px;
    }
    .program-table td:last-child {
      color: var(--blue-clinical);
      margin-top: 4px;
      padding-top: 6px;
      border-top: 0.5px dashed var(--gray-soft);
    }
  }
  @media (max-width: 480px) {
    .program-tab { padding: 12px 16px; }
    .program-tab-label { font-size: 14px; }
    .program-tab-date { font-size: 9px; letter-spacing: 1.2px; }
    .program-block-title { font-size: 17px; }
  }

  /* ============ ACORDEÓN PROGRAMA — mobile only ============ */
  @media (max-width: 768px) {
    /* Bloques con data-collapsible: contenido oculto por default,
       se expande al toggle de la clase .is-open. Hands-On + Casos en
       vivo tienen también program-block-subtitle y program-block-list
       que deben acompañar el colapso. La program-block-footnote
       (Receso, Fin del curso) queda intencionalmente visible siempre. */
    .program-block[data-collapsible="true"] .program-table,
    .program-block[data-collapsible="true"] .program-block-subtitle,
    .program-block[data-collapsible="true"] .program-block-list {
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      margin-top: 0;
      margin-bottom: 0;
      transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
    }
    .program-block[data-collapsible="true"].is-open .program-table,
    .program-block[data-collapsible="true"].is-open .program-block-subtitle,
    .program-block[data-collapsible="true"].is-open .program-block-list {
      max-height: 3000px;
      opacity: 1;
      transition: max-height 0.45s ease-in, opacity 0.3s ease-in 0.05s;
    }

    /* Título de bloques colapsables: header clickeable con chevron */
    .program-block[data-collapsible="true"] .program-block-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      cursor: pointer;
      user-select: none;
      min-height: 44px;
      margin-bottom: 0;
    }
    .program-block[data-collapsible="true"] .program-block-title-text::after {
      content: " (" attr(data-count) ")";
      font-family: 'Inter', sans-serif;
      font-weight: 400;
      font-size: 12px;
      color: var(--gray-mid);
      margin-left: 4px;
      letter-spacing: 0;
    }

    /* Chevron visible y giratorio en mobile */
    .program-block-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: none;
      padding: 8px;
      color: var(--gray-mid);
      cursor: pointer;
      flex-shrink: 0;
      transition: transform 0.3s ease, color 0.2s ease;
    }
    .program-block-toggle:hover { color: var(--navy); }
    .program-block[data-collapsible="true"].is-open .program-block-toggle {
      transform: rotate(180deg);
    }

    /* Pequeño respiro antes del footnote (Receso) cuando el bloque
       está colapsado y el contenido entre título y footnote es 0px */
    .program-block[data-collapsible="true"] .program-block-footnote {
      margin-top: 8px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .program-block[data-collapsible="true"] .program-table,
    .program-block[data-collapsible="true"] .program-block-subtitle,
    .program-block[data-collapsible="true"] .program-block-list,
    .program-block-toggle {
      transition: none !important;
    }
  }

  /* ============ COSTOS ============ */
  .pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .pricing-card {
    flex: 1 1 280px;
    max-width: 360px;
    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-cupo {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--blue-pale);
    color: var(--navy);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 999px;
  }
  .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-item-content {
    flex: 1;
    min-width: 0;
  }
  .phone-entry {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 0.5px solid rgba(181, 212, 244, 0.08);
  }
  .phone-entry:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }
  .phone-country {
    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;
  }
  .phone-number {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--white);
  }
  .phone-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
  }
  .phone-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(42, 107, 184, 0.15);
    border: 0.5px solid rgba(181, 212, 244, 0.15);
    border-radius: 6px;
    color: var(--blue-light);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  .phone-action:hover {
    background: var(--blue-clinical);
    color: var(--white);
    border-color: var(--blue-clinical);
    transform: translateY(-1px);
  }

  .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: 480px;
    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-popup-day {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--gray-mid);
    margin: 0 0 6px;
  }
  .hospital-marker { background: transparent; border: none; }

  /* Tooltip permanente sobre cada pin con la etiqueta del día */
  .leaflet-tooltip.hospital-tooltip {
    background: var(--white);
    border: 0.5px solid var(--gray-soft);
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(10, 37, 64, 0.15);
    color: var(--navy);
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.2px;
    padding: 4px 8px;
    white-space: nowrap;
  }
  .leaflet-tooltip.hospital-tooltip::before { display: 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: 540px;
    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-venues {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .map-info-venue {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .map-info-venue-day {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue-clinical);
    font-weight: 500;
    margin-bottom: 4px;
  }
  .map-info-venue-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--navy);
    line-height: 1.25;
  }
  .map-info-venue-address {
    font-size: 12px;
    color: var(--gray-mid);
    line-height: 1.4;
    margin-bottom: 6px;
  }
  .map-info-venue-link {
    align-self: flex-start;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--blue-clinical);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .map-info-venue-link:hover {
    color: var(--navy);
    text-decoration: underline;
  }
  @media (max-width: 540px) {
    .map-info-panel {
      padding: 14px 18px;
      max-width: calc(100% - 24px);
    }
    .map-info-venues {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    .map-info-venue-name { font-size: 13px; }
  }

  /* ============ 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 1fr;
      gap: 0;
    }
    .endorsement-organiza {
      padding-right: 40px;
    }
    .endorsement-avales {
      border-left: 0.5px solid var(--gray-soft);
      padding-left: 40px;
      padding-right: 40px;
    }
    .endorsement-directorio {
      border-left: 0.5px solid var(--gray-soft);
      padding-left: 40px;
    }
  }
  .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-placeholder {
    border: 1px dashed var(--gray-soft);
    border-radius: 12px;
    background: var(--white);
  }
  .endorsement-logo {
    border: 0.5px solid var(--gray-soft);
    border-radius: 12px;
    background: var(--white);
    padding: 20px 28px;
  }
  .endorsement-logo picture,
  .endorsement-logo img {
    display: block;
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  /* Directorio */
  .directorio-link {
    position: relative;
    display: block;
    border: 0.5px solid var(--gray-soft);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    line-height: 0;
  }
  .directorio-link:hover {
    border-color: var(--blue-clinical);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 58, 96, 0.08);
  }
  .directorio-image {
    display: block;
    width: 220px;
    height: 165px;
    object-fit: cover;
  }
  .directorio-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--navy);
    box-shadow: 0 1px 4px rgba(13, 13, 15, 0.15);
  }
  .directorio-name {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-mid);
    line-height: 1.45;
    max-width: 220px;
    letter-spacing: -0.005em;
    margin: 0;
  }
  .directorio-cta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: var(--blue-clinical);
    letter-spacing: 0.02em;
    margin: 0;
    margin-top: -10px;
  }

  /* ============ PATROCINADORES ============ */
  .patrocinadores {
    background: var(--bone);
    padding: 64px 0 80px;
    border-top: 1px solid var(--gray-soft);
  }
  .patrocinadores-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
  }
  .patrocinadores-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .patrocinador-item {
    flex: 0 0 calc((100% - 24px) / 3);
    background: var(--white);
    border: 0.5px solid var(--gray-soft);
    border-radius: 12px;
    padding: 20px 24px;
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }
  .patrocinador-item:hover {
    border-color: var(--blue-clinical);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
  }
  .patrocinador-item img {
    display: block;
    max-width: 100%;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
  }
  @media (min-width: 768px) {
    .patrocinadores-grid { gap: 14px; }
    .patrocinador-item { flex: 0 0 calc((100% - 42px) / 4); }
    .patrocinadores-title { margin-bottom: 40px; }
  }
  @media (min-width: 1024px) {
    .patrocinadores-grid { gap: 16px; }
    .patrocinador-item {
      flex: 0 0 calc((100% - 112px) / 8);
      padding: 14px 12px;
      min-height: 80px;
    }
    .patrocinador-item img { max-height: 48px; }
  }

  /* ============ 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); }
  }

  /* ============ MODAL DE BIO COMPLETA ============ */
  .faculty-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .faculty-modal.is-open { display: flex; }
  .faculty-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 23, 41, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    cursor: pointer;
    animation: faculty-modal-fade-in 0.2s ease-out;
  }
  .faculty-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    animation: faculty-modal-in 0.25s ease-out;
  }
  .faculty-modal-close,
  .enrollment-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--navy);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }
  .faculty-modal-close:hover,
  .enrollment-modal-close:hover {
    background: var(--bone);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
  }
  .faculty-modal-close:active,
  .enrollment-modal-close:active {
    transform: scale(0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }
  .faculty-modal-close svg,
  .enrollment-modal-close svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
  }
  @media (prefers-reduced-motion: reduce) {
    .faculty-modal-close,
    .enrollment-modal-close { transition: none; }
    .faculty-modal-close:hover,
    .enrollment-modal-close:hover,
    .faculty-modal-close:active,
    .enrollment-modal-close:active { transform: none; }
  }
  .faculty-modal-photo {
    background: var(--bone);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px 0 0 16px;
  }
  .faculty-modal-photo img,
  .faculty-modal-photo picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .faculty-modal-photo .faculty-avatar-placeholder {
    border-radius: 0;
    font-size: 56px;
  }
  .faculty-modal-info {
    padding: 48px 36px 36px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .faculty-modal-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--navy);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
  .faculty-modal-role {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue-clinical);
    margin: 0 0 8px;
  }
  .faculty-modal-bio {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-text);
    margin: 0;
  }
  @keyframes faculty-modal-in {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
  @keyframes faculty-modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @media (prefers-reduced-motion: reduce) {
    .faculty-modal-backdrop,
    .faculty-modal-content { animation: none; }
  }

  /* ============ MODAL DE INSCRIPCIÓN ============ */
  .enrollment-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .enrollment-modal.is-open { display: flex; }
  .enrollment-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 23, 41, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    cursor: pointer;
    animation: enrollment-modal-fade-in 0.2s ease-out;
  }
  .enrollment-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: enrollment-modal-in 0.25s ease-out;
  }
  .enrollment-modal-header {
    padding: 32px 32px 20px;
    border-bottom: 0.5px solid var(--gray-soft);
  }
  .enrollment-modal-eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue-clinical);
    margin-bottom: 8px;
  }
  .enrollment-modal-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--navy);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .enrollment-modal-package-price {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-clinical);
    letter-spacing: 0;
  }
  .enrollment-modal-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--gray-mid);
    margin: 10px 0 0;
    line-height: 1.4;
  }
  .enrollment-modal-options {
    padding: 20px 24px 24px;
  }
  .enrollment-options-group {
    margin-bottom: 20px;
  }
  .enrollment-options-group:last-child { margin-bottom: 0; }
  .enrollment-options-label {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-mid);
    margin-bottom: 8px;
  }
  .enrollment-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--bone);
    border: 0.5px solid var(--gray-soft);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 8px;
  }
  .enrollment-option:last-child { margin-bottom: 0; }
  .enrollment-option:hover {
    background: var(--white);
    border-color: var(--blue-clinical);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 107, 184, 0.12);
  }
  .enrollment-option-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .enrollment-option-icon-whatsapp {
    background: rgba(37, 211, 102, 0.12);
    color: #25D366;
  }
  .enrollment-option-icon-call {
    background: rgba(42, 107, 184, 0.12);
    color: var(--blue-clinical);
  }
  .enrollment-option-icon-email {
    background: rgba(23, 58, 96, 0.10);
    color: var(--navy);
  }
  .enrollment-option-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .enrollment-option-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-mid);
  }
  .enrollment-option-value {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    word-break: break-word;
  }
  @keyframes enrollment-modal-in {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
  @keyframes enrollment-modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @media (prefers-reduced-motion: reduce) {
    .enrollment-modal-backdrop,
    .enrollment-modal-content { animation: none; }
  }

  /* ============ 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: 460px; }
    .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; }
    .faculty-bio { font-size: 12px; line-height: 1.45; margin-top: 6px; }
    .faculty-modal { padding: 0; align-items: flex-end; }
    .faculty-modal-content {
      grid-template-columns: 1fr;
      border-radius: 16px 16px 0 0;
      max-height: 95vh;
    }
    .faculty-modal-photo {
      border-radius: 16px 16px 0 0;
      aspect-ratio: 1 / 1;
      height: auto;
      width: 100%;
    }
    .faculty-modal-photo .faculty-avatar-placeholder { font-size: 48px; }
    .faculty-modal-info { padding: 28px 24px; }
    .faculty-modal-name { font-size: 18px; }
    .faculty-modal-close,
    .enrollment-modal-close { width: 44px; height: 44px; }
    .endorsement-logo picture,
    .endorsement-logo img { max-height: 64px; }
    .enrollment-modal { padding: 0; align-items: flex-end; }
    .enrollment-modal-content {
      border-radius: 16px 16px 0 0;
      max-height: 95vh;
      max-width: 100%;
      width: 100%;
    }
    .enrollment-modal-header { padding: 24px 20px 18px; }
    .enrollment-modal-options { padding: 16px 20px 24px; }
    .enrollment-modal-title { font-size: 18px; }
    .enrollment-modal-package-price { font-size: 13px; }
  }

  /* ============ 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;
    }
  }

/* ============ GALERIA ============ */
.galeria-carrusel {
  position: relative;
  margin-top: 40px;
}

.galeria-viewport {
  overflow: hidden;
  border-radius: 12px;
}

.galeria-track {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.galeria-slide {
  flex: 0 0 calc((100% - 16px) / 2);
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-soft);
}

.galeria-slide picture,
.galeria-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.galeria-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 0.5px solid var(--gray-soft);
  box-shadow: 0 2px 8px rgba(13, 13, 15, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 18px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.galeria-nav:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-50%) scale(1.05);
}

.galeria-nav:focus-visible {
  outline: 2px solid var(--blue-clinical);
  outline-offset: 2px;
}

.galeria-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.galeria-prev { left: 8px; }
.galeria-next { right: 8px; }

.galeria-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 24px;
}

.galeria-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--gray-soft);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.galeria-dot.active {
  background: var(--navy);
  width: 24px;
}

.galeria-dot:focus-visible {
  outline: 2px solid var(--blue-clinical);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .galeria-slide { flex: 0 0 calc((100% - 32px) / 3); }
  .galeria-nav { width: 44px; height: 44px; }
  .galeria-prev { left: 12px; }
  .galeria-next { right: 12px; }
}

@media (min-width: 1024px) {
  .galeria-slide { flex: 0 0 calc((100% - 48px) / 4); }
}

@media (prefers-reduced-motion: reduce) {
  .galeria-track { transition: none; }
}

/* ============ LIGHTBOX (galeria) ============ */
.galeria-slide picture { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 15, 0.92);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
}

.lightbox-picture,
.lightbox-picture img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}
.lightbox-close:hover { transform: scale(1.1); }
.lightbox-close:focus-visible {
  outline: 2px solid var(--blue-clinical);
  outline-offset: 2px;
}

body.lightbox-open { overflow: hidden; }

@media (max-width: 768px) {
  .lightbox-close { top: -44px; right: -4px; width: 36px; height: 36px; font-size: 18px; }
}
