/* Home redesign: visual layer intentionally scoped to the public landing page. */
:root {
  --primary-dark: #073b73;
  --primary: #075aa6;
  --primary-light: #eaf4fc;
  --accent: #ffb800;
  --background: #f7f9fc;
  --text-primary: #102a43;
  --text-secondary: #627d98;
  --radius-lg: 18px;
  --shadow-soft: 0 12px 30px rgba(7, 59, 115, .09);
  --shadow-hover: 0 18px 36px rgba(7, 59, 115, .14);
}

body { color: var(--text-primary); background: #fff; }
body, input, textarea, button { font-family: 'Poppins', sans-serif; }
.container { max-width: 1280px; padding-inline: 1.5rem; }
section { padding: clamp(4rem, 7vw, 6.75rem) 0; }
section h2 { color: var(--text-primary); font-size: clamp(2rem, 3.2vw, 3.2rem); line-height: 1.15; letter-spacing: -.045em; }

.section-eyebrow { display: inline-flex; align-items: center; gap: .45rem; color: var(--primary); font-size: .74rem; font-weight: 700; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }
.section-eyebrow--center { display: flex; justify-content: center; margin-bottom: .6rem; }
.section-eyebrow--light { color: var(--accent) !important; }

/* Entradas suaves para que cada bloque se descubra al recorrer la landing. */
html.reveal-ready .reveal-section { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s cubic-bezier(.22, .8, .24, 1); }
html.reveal-ready .reveal-section.is-visible { opacity: 1; transform: translateY(0); }
html.reveal-ready .reveal-section .reveal-item { opacity: 0; transform: translateY(16px); transition: opacity .48s ease var(--reveal-item-delay, 0ms), transform .48s ease var(--reveal-item-delay, 0ms); }
html.reveal-ready .reveal-section.is-visible .reveal-item { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html.reveal-ready .reveal-section, html.reveal-ready .reveal-section .reveal-item { opacity: 1; transform: none; transition: none; }
}

/* Compact utility bar and header */
.top-bar { min-height: 33px; padding: .42rem 0; background: var(--primary-dark); font-size: .7rem; }
.top-bar .container { grid-template-columns: 1fr auto auto auto; gap: .7rem; }
.topbar-contact, .topbar-contact a, .social-media { display: inline-flex; align-items: center; gap: 1rem; color: #fff; text-decoration: none; }
.topbar-contact i { color: #fff; margin-right: .25rem; }
.topbar-contact a:hover, .social-media a:hover { color: var(--accent); }
.topbar-center { grid-column: 2; }
.portal-link { padding: .15rem .45rem; font-size: .68rem; }
.topbar-follow { color: #fff; font-size: .68rem; }
.social-media { grid-column: 4; gap: .55rem; }
.social-media a { display: grid; width: 18px; height: 18px; place-items: center; color: #fff; font-size: .75rem; }

body > header { box-shadow: 0 3px 14px rgba(16, 42, 67, .06); }
body > header .container { min-height: 78px; padding: .65rem 1.5rem; gap: 1.5rem; }
.logo { gap: .65rem; white-space: nowrap; }
.logo img { width: 58px; height: 58px; margin: 0; }
.logo .brand-name { color: var(--primary-dark) !important; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; }
.logo .brand-desc { color: var(--accent); font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
.site-nav { flex: 1; justify-content: center; gap: .15rem; }
.site-nav a { margin: 0; padding: .65rem .75rem; color: var(--text-primary); font-size: .8rem; font-weight: 600; }
.site-nav a::after { bottom: .2rem; height: 2px; background: var(--primary); }
.site-nav a:hover, .site-nav a.active { color: var(--primary); }
.header-cta, .btn-primary, .primary-cta, .simu-btn, #form-contacto button, .btn-pagar { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; border: 0; border-radius: 6px; background: var(--accent); color: var(--text-primary); font-size: .78rem; font-weight: 700; text-decoration: none; box-shadow: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.header-cta { min-width: 145px; padding: .78rem 1rem; }
.header-cta:hover, .btn-primary:hover, .primary-cta:hover, .simu-btn:hover, #form-contacto button:hover, .btn-pagar:hover { background: #ffc333; color: var(--text-primary); box-shadow: 0 10px 20px rgba(255, 184, 0, .22); transform: translateY(-2px); }

/* Hero remains a dynamic carousel; only its presentation changes. */
#inicio { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; overflow: hidden; }
#inicio .carousel { width: 100% !important; height: calc(100svh - var(--chrome-h)); min-height: 0; aspect-ratio: auto; border-radius: 0 !important; box-shadow: none; }
#inicio .carousel-item { isolation: isolate; overflow: hidden; background-color: var(--primary-dark); }
#inicio .carousel-item::before, #inicio .carousel-item::after { display: none; }
#inicio .hero-backdrop { position: absolute; z-index: 0; inset: -28px; background: center / cover no-repeat; filter: blur(22px); transform: scale(1.08); }
#inicio .hero-foreground { position: relative; z-index: 1; width: 100%; height: 100%; }
#inicio .hero-foreground > img, #inicio .hero-foreground > a { display: block; width: 100%; height: 100%; }
#inicio .hero-foreground > picture, #inicio .hero-foreground > a > picture { display: block; width: 100%; height: 100%; }
#inicio .hero-foreground img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
#inicio .carousel-control { top: 50%; bottom: auto; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.86); border-radius: 50%; background: rgba(7,59,115,.35); color: #fff; transform: translateY(-50%); font-size: 1.25rem; }
#inicio .carousel-control.prev { left: 1.25rem; }
#inicio .carousel-control.next { right: 1.25rem; }
#inicio .carousel-control:hover { background: var(--primary) !important; }
.carousel-indicators { position: absolute; z-index: 35; bottom: 1rem; left: 50%; display: flex; align-items: center; gap: .5rem; transform: translateX(-50%); }
.carousel-indicators button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.75); cursor: pointer; transition: width .2s ease, background .2s ease; }
.carousel-indicators button[aria-current="true"] { width: 25px; background: var(--accent); }
.hero-floating-wrapper { display: none; }

/* About and methodology */
.about { background: #fff; }
.about-grid { grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); }
.about-text h2, .history-intro h2, .simu-text h2, .contacto-left h2 { text-align: left; margin: .45rem 0 1.1rem; }
.about-text p, .history-intro p { color: var(--text-secondary); font-size: .94rem; line-height: 1.8; }
.about-bullets { gap: .7rem; margin: 1.3rem 0 1.6rem; }
.about-bullets li { color: var(--text-secondary); font-size: .87rem; }
.about-bullets i { color: var(--accent); }
.about-cta { padding: .83rem 1.15rem; }
.about-video { border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.about-badge { left: auto; right: 1.1rem; bottom: -1rem; padding: .65rem 1rem; background: #fff; color: var(--primary-dark); box-shadow: var(--shadow-soft); font-size: .78rem; }
.about-badge i { color: var(--accent); }

.history-section { background: var(--primary-light); }
.history-grid { grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3rem); }
.history-intro { max-width: 1100px; margin: 0 auto; text-align: center; }
.history-intro h2 { font-size: clamp(2rem, 3vw, 3.1rem); text-align: center; }
.history-intro p { text-align: center; }
.history-timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.history-timeline li { display: flex; flex-direction: column; align-items: center; min-height: 138px; padding: 1.25rem; border: 1px solid rgba(7,90,166,.07); border-radius: 10px; background: #fff; box-shadow: 0 8px 20px rgba(7, 59, 115, .06); text-align: center; }
.history-icon { width: 46px; height: 46px; margin-bottom: .85rem; border-radius: 12px; background: var(--primary); color: #fff; }
.history-timeline h3 { color: var(--primary-dark); font-size: .9rem; text-align: center; }
.history-timeline p { color: var(--text-secondary); font-size: .76rem; line-height: 1.55; text-align: center; }

.features { background: #fff; }
.features h2 { margin-bottom: .4rem; }
.features h2::before { content: '★★★★★'; display: block; color: var(--accent); font-size: 1.35rem; letter-spacing: .16rem; line-height: 1; margin-bottom: .5rem; }
.features .subtitle { margin-bottom: 2.1rem; color: var(--text-secondary); font-size: .86rem; }
.features-grid { gap: 1rem; }
.feature { min-height: 230px; align-items: center; padding: 1.4rem; border: 1px solid #dbe6f0; border-radius: 12px; box-shadow: 0 6px 16px rgba(7, 59, 115, .04); text-align: center; }
.feature:hover { box-shadow: var(--shadow-hover); }
.feature-ico { width: 58px; height: 58px; margin-bottom: .95rem; border-radius: 15px; background: var(--primary); color: #fff; font-size: 1.45rem; }
.feature h3 { color: var(--primary-dark); font-size: .95rem; }
.feature p { color: var(--text-secondary); font-size: .78rem; line-height: 1.65; }

/* Programs */
#ciclos { background: linear-gradient(180deg, #fff 0, var(--primary-light) 100%); text-align: center; }
#ciclos h2 { margin: .45rem auto .55rem; max-width: 850px; }
#ciclos .subtitle { max-width: 720px; margin-bottom: 2.5rem; color: var(--text-secondary); font-size: .86rem; }
.ciclos-container { align-items: stretch; gap: 1.25rem; text-align: left; }
.ciclo-card { position: relative; display: flex; flex-direction: column; overflow: visible; border: 1px solid #e0e9f2; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(7,59,115,.08); }
.ciclo-card.is-featured { border: 2px solid var(--primary); transform: translateY(-5px); }
.ciclo-card.is-featured::before { content: '★ MÁS ELEGIDO'; position: absolute; top: -15px; left: 50%; z-index: 2; padding: .4rem .8rem; border-radius: 5px; background: var(--accent); color: var(--text-primary); font-size: .67rem; font-weight: 700; letter-spacing: .03em; transform: translateX(-50%); white-space: nowrap; }
.ciclo-card.is-featured::before {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  font-size: .74rem;
  text-align: center;
}
.ciclo-card-content { flex: 1; padding: 1.6rem 1.4rem 1.2rem; }
.ciclo-title { display: flex; align-items: center; gap: .75rem; margin: 0 0 .5rem; color: var(--primary-dark); font-size: 1.25rem; }
.ciclo-title i { display: grid; flex: 0 0 50px; width: 50px; height: 50px; place-items: center; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: 1.25rem; }
.precio { margin: .95rem 0 .25rem; padding-top: .95rem; border-top: 1px solid #dbe5ee; color: var(--primary-dark); font-size: 1.9rem; font-weight: 700; }
.ciclo-desc { color: var(--text-secondary); font-size: .78rem; line-height: 1.55; }
.ciclo-extra { margin-top: .95rem; padding-top: .85rem; border-top: 0; }
.ciclo-details { display: grid; gap: .58rem; }
.ciclo-details li { color: var(--text-secondary); font-size: .72rem; line-height: 1.45; }
.ciclo-details li i {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin-top: 0;
  place-items: center;
  border: 1px solid rgba(7, 59, 115, .08);
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-size: .82rem;
}
.ciclo-card-footer { padding: 0 1.4rem 1.4rem; background: transparent; }
.ciclo-card.is-featured .ciclo-card-footer { padding-bottom: 1.75rem; }
.btn-pagar { width: 100%; min-height: 43px; border: 1px solid var(--primary); background: #fff; color: var(--primary); }
.is-featured .btn-pagar { border-color: var(--accent); background: var(--accent); color: var(--text-primary); }

/* Institutional CTA */
.primary-section { padding: 1.75rem 0; background: #fff; }
.primary-section .container { border-radius: var(--radius-lg); padding: clamp(2rem,4vw,3.5rem); background: linear-gradient(115deg, #073b73, #075aa6); }
.primary-grid { grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem,4vw,4rem); }
.primary-copy h2 { margin-top: .55rem; font-size: clamp(2rem,3vw,3rem); }
.primary-copy p { font-size: .87rem; line-height: 1.75; }
.primary-benefits { grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.primary-benefit { display: flex; flex-direction: column; align-items: center; min-height: 188px; padding: 1.1rem; border: 0; border-radius: 8px; background: #fff; color: var(--text-primary); box-shadow: 0 9px 18px rgba(0,0,0,.12); text-align: center; }
.primary-benefit > i { width: 43px; height: 43px; margin-bottom: .8rem; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1rem; }
.primary-benefit h3 { color: var(--primary-dark); font-size: .82rem; text-align: center; }
.primary-benefit p { color: var(--text-secondary); font-size: .7rem; line-height: 1.55; text-align: center; }

/* Mock exam */
.simu-section { background: var(--primary-light); }
.simu-grid { grid-template-columns: .78fr 1.22fr; align-items: center; gap: clamp(2rem,5vw,5.5rem); }
.simu-text h2 { max-width: 430px; }
.simu-text h2::first-letter { color: var(--accent); }
.simu-text p { color: var(--text-secondary); font-size: .88rem; line-height: 1.75; }
.simu-bullets li { color: var(--text-secondary); font-size: .78rem; }
.simu-bullets i { color: var(--accent); }
.simu-btn { padding: .85rem 1.1rem; }
.simu-image-wrap { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.simu-image-wrap img { min-height: 330px; object-fit: cover; }
.simu-tag { right: 1.2rem; bottom: -1.25rem; left: 1.2rem; display: flex; justify-content: space-around; padding: .9rem 1rem; border-radius: 10px; background: #fff; color: var(--primary-dark); box-shadow: var(--shadow-soft); font-weight: 700; font-size: .82rem; }
.simu-tag-pill { background: var(--primary-light); color: var(--primary); }

/* Ingresantes and testimonials */
#ingresantes { padding-block: clamp(4rem,7vw,6.2rem) !important; background: #fff; }
#ingresantes h2 { color: var(--primary-dark); font-size: clamp(2rem,3vw,3rem); }
#ingresantes h2::before { content: '☆'; display: block; color: var(--accent); font-size: 1.45rem; }
#ingresantes .subtitle { margin-bottom: 2rem; font-size: .84rem; }
#ingresantes .ing-grid { display: flex; gap: 1rem; overflow-x: auto; padding: .5rem .25rem 1rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
#ingresantes .ing-card { flex: 0 0 min(220px, 72vw); scroll-snap-align: start; border: 1px solid #dbe6f0; border-radius: 11px; box-shadow: 0 7px 17px rgba(7,59,115,.07); }
#ingresantes .ing-card img { height: 230px; object-fit: cover; }
#ingresantes .ing-cap { position: relative; padding: .75rem .9rem 1rem; text-align: left; }
#ingresantes .ing-nombre { color: var(--primary-dark); font-size: .85rem; }
#ingresantes .ing-coar { margin-top: .25rem; padding: 0; border: 0; background: transparent; color: var(--text-secondary); font-size: .7rem; }
.ing-rank { position: absolute; top: 11px; left: 11px; z-index: 1; padding: .45rem .55rem; border-radius: 5px; background: rgba(7,59,115,.95); color: var(--accent); font-size: .72rem; font-weight: 700; }
.ing-pagination { padding-bottom: 0; }
.ing-page-btn { border-color: var(--primary); color: var(--primary); }

#testimonios { background: var(--primary-light); }
#testimonios h2 { margin: .4rem 0 1.8rem; }
.testimonios-container { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.1rem; }
.testimonio { position: relative; min-height: 185px; padding: 2.25rem 1.3rem 1.2rem; border-radius: 12px; background: #fff; box-shadow: 0 8px 20px rgba(7,59,115,.07); }
.testimonio::before { content: '“'; position: absolute; top: .5rem; left: 1.2rem; color: var(--primary); font-size: 3.5rem; font-family: Georgia, serif; line-height: 1; }
.testimonio p { margin: 0 0 1rem !important; color: var(--text-secondary); font-size: .8rem; line-height: 1.7; text-align: left !important; }
.testimonio h4 { margin: 0; color: var(--primary-dark); font-size: .78rem; }

#redes { padding-block: 3.5rem; text-align: center; }
#redes h2 { margin: .4rem 0 .55rem; font-size: clamp(1.7rem,2.5vw,2.2rem); }
#redes h2 + .redes-container { margin-top: 1.5rem; }
.redes-container { display: flex; justify-content: center; gap: 1rem; }
.red-social { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--primary); border-radius: 50%; color: var(--primary); text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease; }
.red-social:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* Location and functional contact form */
#contacto { padding-top: 1rem; background: #fff; }
#contacto .container { display: block; }
.contacto-grid { grid-template-columns: 1fr 1fr !important; gap: 1rem; align-items: stretch; }
.contacto-left, .form-container { padding: 1.7rem; border: 1px solid #dce7f0; border-radius: 12px; background: #fafdff; box-shadow: 0 7px 18px rgba(7,59,115,.05); }
.contacto-left h2 { margin-bottom: 1rem; font-size: 1.55rem; }
.contact-brand { margin-bottom: .9rem; }
.contact-brand img { width: 47px; height: 47px; }
.contact-brand .brand-name { color: var(--primary-dark); font-size: .95rem; }
.contact-brand .brand-desc, .contact-address { color: var(--text-secondary); font-size: .76rem; }
.contact-address { margin-bottom: .9rem; }
.map-card { margin: 0; }
.map-embed-wrap { border-radius: 10px; aspect-ratio: 16/9; }
.form-container h3 { margin: .5rem 0 1.2rem; color: var(--primary-dark); font-size: 1.45rem; line-height: 1.3; }
#form-contacto { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; }
#form-contacto .input-group { margin: 0; }
#form-contacto .input-group:nth-of-type(4), #form-contacto button { grid-column: 1 / -1; }
#form-contacto input, #form-contacto textarea { border: 1px solid #cbd9e5; border-radius: 5px; background: #fff; font-size: .78rem; }
#form-contacto label { color: var(--text-secondary); font-size: .76rem; }
#form-contacto button { min-height: 45px; margin-top: .2rem; }

/* Footer and persistent utilities */
.site-footer { padding: clamp(3.5rem, 6vw, 5rem) 0 0; background: linear-gradient(110deg, #06396f, #07519a); color: #fff; text-align: left; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1.1fr repeat(3, 1fr); gap: clamp(1.75rem, 4vw, 4.5rem); align-items: start; }
.footer-brand p { max-width: 220px; margin: 1.55rem 0 0; font-size: .9rem; line-height: 1.6; }
.footer-logo { display: inline-flex; align-items: center; gap: .85rem; color: #fff; font-size: 1.05rem; font-weight: 700; text-decoration: none; }
.footer-logo img { width: 74px; height: 74px; }
.footer-logo span { display: grid; }
.footer-logo small { color: var(--accent); font-size: .68rem; letter-spacing: .1em; }
.footer-grid h3 { margin: .35rem 0 1.25rem; color: #fff; font-size: 1rem; }
.footer-grid > div:not(.footer-brand), .footer-contact { display: flex; flex-direction: column; gap: .75rem; }
.footer-grid a, .footer-contact span { color: rgba(255,255,255,.92); font-size: .84rem; font-style: normal; line-height: 1.45; text-decoration: none; }
.footer-contact a, .footer-contact-location { display: inline-flex; align-items: center; gap: .65rem; }
.footer-contact i { width: 18px; color: #fff; text-align: center; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { margin-top: clamp(2.75rem, 5vw, 4rem); border-top: 1px solid rgba(255,255,255,.35); }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.footer-bottom p { margin: 0; font-size: .8rem; }
.footer-social { display: flex; align-items: center; gap: .8rem; font-size: .8rem; }
.footer-social a { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; background: transparent; color: #fff; }
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }

/* Legal pages */
.legal-hero { padding-block: clamp(3.5rem, 7vw, 6rem); background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; }
.legal-hero h1 { max-width: 820px; margin: .55rem 0 .75rem; color: #fff; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.1; }
.legal-hero p { max-width: 720px; margin: 0; color: rgba(255,255,255,.86); font-size: .94rem; line-height: 1.75; }
.legal-hero .section-eyebrow { color: var(--accent); }
.legal-content { padding-block: clamp(3.5rem, 6vw, 5.5rem); background: #f7f9fc; }
.legal-content__inner { max-width: 900px; }
.legal-article { padding: clamp(1.5rem, 4vw, 3.25rem); border: 1px solid #dce7f0; border-radius: 16px; background: #fff; box-shadow: var(--shadow-soft); }
.legal-updated { margin: 0 0 2rem; color: var(--text-secondary); font-size: .76rem; }
.legal-article section + section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #e4ebf2; }
.legal-article h2 { margin: 0 0 .7rem; color: var(--primary-dark); font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: -.02em; }
.legal-article p, .legal-article li { color: var(--text-secondary); font-size: .88rem; line-height: 1.8; }
.legal-article p { margin: 0; }
.legal-article p + p { margin-top: .85rem; }
.legal-article ul { display: grid; gap: .5rem; margin: .85rem 0 0; padding-left: 1.25rem; }
.legal-article li::marker { color: var(--primary); }
.legal-article a { color: var(--primary); font-weight: 700; }
.legal-note { padding: 1.1rem 1.2rem; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; background: #fff8df; }
.legal-note h2 { color: var(--text-primary); }
.whatsapp-sticky { width: 52px; height: 52px; bottom: 1.3rem; right: 1.3rem; background: #25d366; z-index: 1100; }
.exam-tab-2-wrapper { position: fixed; top: 50%; right: 0; z-index: 1050; transform: translateY(-50%); }
.exam-tab-2 { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .6rem .35rem; border-radius: 10px 0 0 10px; background: var(--primary-dark); color: #fff; box-shadow: 0 8px 22px rgba(7,59,115,.28); text-decoration: none; }
.exam-tab-2-icon { color: var(--accent); }
.exam-tab-2-title { writing-mode: vertical-rl; font-size: .65rem; font-weight: 700; letter-spacing: .04em; }
.exam-tab-2-popover { position: absolute; top: 50%; right: 100%; width: 230px; padding: 1rem; border-radius: 9px; background: var(--text-primary); color: #fff; opacity: 0; pointer-events: none; transform: translate(-10px,-50%); transition: opacity .2s ease, transform .2s ease; }
.exam-tab-2-wrapper:hover .exam-tab-2-popover { opacity: 1; transform: translate(-4px,-50%); }
.exam-tab-2-popover h3 { margin: 0 0 .3rem; color: var(--accent); font-size: .85rem; }
.exam-tab-2-popover p { margin: 0; font-size: .72rem; line-height: 1.55; }
.exam-tab-2-cta { display: inline-block; margin-top: .6rem; color: var(--accent); font-size: .7rem; font-weight: 700; }

@media (max-width: 1100px) {
  .topbar-contact a:nth-of-type(2) { display: none; }
  .header-cta { display: none; }
  .history-grid, .about-grid, .simu-grid, .primary-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 720px; width: 100%; margin: 0 auto; }
  .primary-benefits { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: span 1; }
}
@media (max-width: 992px) {
  body > header .container { min-height: 70px; }
  .site-nav { flex: initial; justify-content: initial; }
  .history-timeline { grid-template-columns: repeat(2, 1fr); }
  .testimonios-container { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contacto-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 767px) {
  .container { padding-inline: 1.15rem; }
  section { padding-block: 3.75rem; }
  .about-text h2,
  .history-intro h2,
  .features h2,
  #ciclos h2,
  .primary-copy h2,
  .simu-text h2,
  #ingresantes h2,
  #testimonios h2,
  #redes h2,
  .contacto-left h2,
  .form-container h3 {
    text-align: center;
  }
  .top-bar .container { grid-template-columns: 1fr auto !important; }
  .topbar-contact, .topbar-follow { display: none; }
  .topbar-center { grid-column: 1 !important; }
  .social-media { grid-column: 2; }
  .logo img { width: 48px; height: 48px; }
  .logo .brand-name { font-size: .9rem; }
  #inicio { margin: 0 !important; padding: 0 !important; }
  /* Usa el alto visible disponible: la barra superior y el header ya están fuera del hero. */
  #inicio .carousel {
    height: calc(100svh - var(--chrome-h));
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 0 !important;
  }
  #inicio .carousel-control { width: 32px; height: 32px; font-size: 1rem; }
  #inicio .carousel-control.prev { left: .7rem; } #inicio .carousel-control.next { right: .7rem; }
  .history-timeline, .features-grid, .primary-benefits, .testimonios-container { grid-template-columns: 1fr; }
  .history-timeline li { min-height: auto; }
  .ciclos-container { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .ciclo-card.is-featured { transform: none; }
  .primary-section .container { border-radius: 12px; }
  .primary-benefit { min-height: auto; }
  .simu-image-wrap img { min-height: 245px; }
  #form-contacto { grid-template-columns: 1fr; }
  #form-contacto .input-group, #form-contacto .input-group:nth-of-type(4) { grid-column: 1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom .container { flex-direction: column; justify-content: center; padding-block: .8rem; text-align: center; }
  .exam-tab-2-wrapper { top: auto; bottom: 5.6rem; transform: none; }
  .exam-tab-2-title { writing-mode: horizontal-tb; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .about-badge { position: static; margin-top: .8rem; }
  .simu-tag { position: static; margin-top: .75rem; }
}
