/* ══════════════════════════════════════════════════
   AUTOESCUELA FERNANDO GUILLEM · style.css
══════════════════════════════════════════════════ */

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

:root {
  --black:  #0F0F0F;
  --white:  #FFFFFF;
  --bg:     #F5F4F1;
  --gray:   #777777;
  --border: #E0DFDb;
  --red:    #EE0000;
  --blue:   #2F2483;
  --radius: 12px;
  --nav-h:  72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.22,.68,0,1.1), transform .6s cubic-bezier(.22,.68,0,1.1);
}
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

/* ══════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════ */
nav#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "logo menu enroll burger";
  align-items: center;
  gap: 0 8px;
  padding: 0 24px 0 32px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
nav#nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,.07); }

.nav-logo { grid-area: logo; display: flex; align-items: center; }
.nav-logo img { height: 46px; width: auto; display: block; object-fit: contain; }

.nav-menu { grid-area: menu; display: flex; align-items: center; gap: 2px; list-style: none; justify-content: center; }

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: flex; align-items: center; gap: 5px;
  font-size: 15px; font-weight: 500; color: var(--black);
  text-decoration: none; padding: 8px 16px; border-radius: 50px;
  transition: background .18s;
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active { background: var(--bg); }

.nav-menu > li > a .chevron {
  width: 12px; height: 12px; opacity: .4;
  transition: transform .2s;
}
.nav-menu > li:hover > a .chevron { transform: rotate(180deg); }

/* dropdown */
.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,.1);
  padding: 10px 6px 6px;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .18s, transform .18s;
}
/* Transparent bridge to avoid gap between link and dropdown */
.dropdown::before {
  content: '';
  position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.nav-menu > li:hover .dropdown {
  opacity: 1; pointer-events: auto; transform: none;
}
.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--black);
  text-decoration: none;
  transition: background .15s;
}
.dropdown a:hover { background: var(--bg); }
.dropdown .badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--bg); font-size: 11px; font-weight: 800; color: var(--black);
  flex-shrink: 0;
}
.dropdown .sep { height: 1px; background: var(--border); margin: 4px 0; }

.nav-tel {
  background: var(--black) !important; color: var(--white) !important;
  font-weight: 700 !important; padding: 9px 18px !important; border-radius: 50px !important;
  transition: background .18s, transform .15s !important;
}
.nav-tel:hover { background: var(--red) !important; transform: translateY(-1px); }

/* Área Alumno — SIEMPRE visible, nunca se oculta */
@keyframes nav-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.75); }
}
.nav-enroll {
  grid-area: enroll;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--red); color: var(--white) !important;
  font-size: 13px; font-weight: 700; text-decoration: none;
  padding: 9px 18px; border-radius: 50px;
  white-space: nowrap;
  transition: background .18s, transform .15s, box-shadow .18s;
  flex-shrink: 0;
}
.nav-enroll::before {
  content: '';
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: rgba(255,255,255,.85);
  animation: nav-dot-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
.nav-enroll:hover {
  background: #cc0000;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(238,0,0,.35);
}
/* En móvil: sólo mostrar el círculo + "Alumno" para no desbordar */
@media (max-width: 480px) {
  .nav-enroll { font-size: 0; padding: 9px 14px; gap: 0; }
  .nav-enroll::before { width: 10px; height: 10px; }
  .nav-enroll::after { content: 'Alumno'; font-size: 12px; font-weight: 700; margin-left: 6px; }
}

/* burger */
.burger { grid-area: burger; display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--black); border-radius: 2px; transition: transform .28s, opacity .28s; }
.burger.x span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.x span:nth-child(2) { opacity: 0; }
.burger.x span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0;
  background: var(--white); overflow-y: auto;
  padding: 24px 20px; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--border); z-index: 299;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 18px; font-weight: 600; color: var(--black);
  text-decoration: none; padding: 14px 16px; border-radius: 10px;
  transition: background .15s;
}
.mobile-menu a:hover { background: var(--bg); }
.mobile-menu .m-sep { height: 1px; background: var(--border); margin: 8px 0; }
.mobile-menu .m-sub {
  font-size: 13px; font-weight: 600; color: var(--gray);
  padding: 6px 16px; text-transform: uppercase; letter-spacing: .1em;
}
.mobile-menu .m-tel {
  background: var(--black); color: var(--white); border-radius: 50px;
  text-align: center; margin-top: 8px; font-weight: 700;
}

/* ══════════════════════════════════════════════════
   VÍDEO HERO
══════════════════════════════════════════════════ */
.video-hero {
  position: relative;
  width: 100%;
  height: 56vh;
  min-height: 380px;
  overflow: hidden;
  margin-top: var(--nav-h);
  background: #0a0a0a;
}

.video-hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .75;
}

/* placeholder animado si no hay vídeo */
.video-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, #0a0a0a 0%, #1c1c1c 40%, #111 70%, #0a0a0a 100%);
  background-size: 300% 300%;
  animation: bgshift 12s ease-in-out infinite;
}
.video-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(238,0,0,.18) 0%, transparent 65%);
}
@keyframes bgshift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.video-grain {
  position: absolute; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .4; pointer-events: none;
}

.video-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end;
  padding: 0 64px 52px;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 60%);
}

.video-content { max-width: 760px; }

.video-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 16px;
}
.video-tag::before { content: ''; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }

.video-title {
  font-size: clamp(34px, 4.5vw, 64px);
  font-weight: 900; letter-spacing: -.04em; line-height: .96;
  color: var(--white); margin-bottom: 24px;
}

.video-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  margin-top: var(--nav-h);
  background: var(--black);
  padding: 72px 64px 64px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(238,0,0,.2) 0%, transparent 60%);
}
.page-hero-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 14px; position: relative; z-index: 1;
  display: flex; align-items: center; gap: 10px;
}
.page-hero-tag::before { content: ''; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }
.page-hero h1 {
  font-size: clamp(38px, 5vw, 72px); font-weight: 900;
  letter-spacing: -.05em; line-height: .95; color: var(--white);
  position: relative; z-index: 1;
}
.page-hero p {
  font-size: 17px; color: rgba(255,255,255,.55); margin-top: 16px;
  max-width: 560px; line-height: 1.65; position: relative; z-index: 1;
}

/* ══════════════════════════════════════════════════
   BOTONES
══════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; padding: 13px 26px;
  border-radius: 50px; text-decoration: none;
  transition: background .2s, color .2s, transform .16s, box-shadow .2s;
  letter-spacing: -.01em;
}
.btn-white  { background: var(--white); color: var(--black); }
.btn-white:hover  { background: var(--red); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(238,0,0,.3); }
.btn-ghost-white  { border: 1.5px solid rgba(255,255,255,.35); color: var(--white); }
.btn-ghost-white:hover { border-color: var(--white); background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn-black  { background: var(--black); color: var(--white); }
.btn-black:hover  { background: var(--red); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(238,0,0,.3); }
.btn-outline { border: 1.5px solid var(--border); color: var(--black); }
.btn-outline:hover { border-color: var(--black); background: var(--black); color: var(--white); transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #cc0000; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(238,0,0,.35); }

/* ══════════════════════════════════════════════════
   SECCIONES
══════════════════════════════════════════════════ */
.section { padding: 96px 64px; }
.section.bg { background: var(--bg); }
.section.dark { background: var(--black); }

.section-tag { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.section-title { font-size: clamp(30px, 3.5vw, 50px); font-weight: 900; letter-spacing: -.04em; line-height: 1.0; }
.section-title.white { color: var(--white); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.section-header.dark-border { border-color: rgba(255,255,255,.1); }

/* ══════════════════════════════════════════════════
   BANDA PRECIO
══════════════════════════════════════════════════ */
.precio-strip {
  background: var(--red); padding: 20px 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.precio-l { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.precio-tag-s { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.precio-amt { font-size: 28px; font-weight: 900; letter-spacing: -.04em; color: var(--white); }
.precio-det { font-size: 14px; color: rgba(255,255,255,.7); }

/* ══════════════════════════════════════════════════
   PERMISO CARDS (index + permisos)
══════════════════════════════════════════════════ */
.permiso-featured {
  background: var(--black); border-radius: 20px;
  padding: 56px 52px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto;
  gap: 48px; align-items: center;
  margin-bottom: 16px;
  transition: transform .3s, box-shadow .3s;
}
.permiso-featured:hover { transform: translateY(-4px); box-shadow: 0 24px 64px rgba(0,0,0,.18); }

.permiso-featured-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 85% 50%, rgba(238,0,0,.22) 0%, transparent 55%);
  pointer-events: none;
}
.permiso-featured-watermark {
  position: absolute; right: -10px; bottom: -30px;
  font-size: 240px; font-weight: 900; letter-spacing: -.05em;
  color: rgba(255,255,255,.04); line-height: 1; user-select: none;
}

.pf-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 14px;
  background: var(--red); font-size: 28px; font-weight: 900; color: var(--white);
  margin-bottom: 20px;
}
.pf-tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 8px; }
.pf-title { font-size: clamp(28px, 3vw, 42px); font-weight: 900; letter-spacing: -.04em; color: var(--white); margin-bottom: 12px; }
.pf-desc { font-size: 15px; color: rgba(255,255,255,.55); line-height: 1.65; max-width: 520px; margin-bottom: 28px; }
.pf-checks { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 32px; }
.pf-check { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 7px; }
.pf-check::before { content: "✓"; color: var(--red); font-weight: 800; }

.pf-price-box {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 32px 28px; text-align: center; min-width: 180px;
  position: relative; z-index: 1; flex-shrink: 0;
}
.pf-price-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 8px; }
.pf-price { font-size: 52px; font-weight: 900; letter-spacing: -.05em; color: var(--white); line-height: 1; }
.pf-price-note { font-size: 12px; color: rgba(255,255,255,.35); margin-top: 6px; }

/* grid de otros permisos */
.permisos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.p-card {
  background: var(--white); border-radius: var(--radius);
  padding: 30px 26px; border: 1px solid var(--border);
  display: flex; flex-direction: column; min-height: 220px;
  position: relative; overflow: hidden;
  transition: border-color .24s, transform .24s, box-shadow .24s;
  cursor: default;
}
.p-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--black);
  transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.p-card:hover { border-color: var(--black); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.07); }
.p-card:hover::after { transform: scaleX(1); }

.p-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 9px;
  border: 1px solid var(--border); font-size: 15px; font-weight: 900; color: var(--black);
  margin-bottom: 18px;
  transition: background .24s, color .24s, border-color .24s;
}
.p-card:hover .p-badge { background: var(--black); color: var(--white); border-color: var(--black); }

.p-name { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.p-sub { font-size: 11px; color: var(--gray); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.p-desc { font-size: 13px; color: var(--gray); line-height: 1.6; flex: 1; margin-bottom: 18px; }
.p-link { font-size: 13px; font-weight: 700; color: var(--black); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: gap .2s, color .2s; }
.p-link::after { content: "→"; }
.p-card:hover .p-link { color: var(--red); gap: 9px; }

/* ══════════════════════════════════════════════════
   POR QUÉ ELEGIRNOS
══════════════════════════════════════════════════ */
.porque-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

.porque-items { display: flex; flex-direction: column; }
.por-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.1);
  transition: padding-left .2s; cursor: default;
}
.por-item:first-child { border-top: 1px solid rgba(255,255,255,.1); }
.por-item:hover { padding-left: 8px; }
.por-num { font-size: 11px; font-weight: 800; color: var(--red); letter-spacing: .1em; min-width: 22px; padding-top: 2px; }
.por-h { font-size: 16px; font-weight: 700; color: var(--white); letter-spacing: -.02em; margin-bottom: 4px; }
.por-p { font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.6; }

.porque-aside {
  border-left: 1px solid rgba(255,255,255,.1); padding-left: 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.porque-big { font-size: clamp(60px, 8vw, 110px); font-weight: 900; letter-spacing: -.06em; color: rgba(255,255,255,.06); line-height: .9; margin-bottom: 24px; }
.porque-quote { font-size: clamp(18px, 2vw, 26px); font-weight: 800; letter-spacing: -.03em; line-height: 1.25; color: var(--white); font-style: italic; margin-bottom: 16px; }
.porque-cite { font-size: 13px; color: rgba(255,255,255,.35); }

/* ══════════════════════════════════════════════════
   CONTACTO (página contacto.html)
══════════════════════════════════════════════════ */
.contacto-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 16px; }
.c-cards { display: flex; flex-direction: column; gap: 12px; }
.c-card {
  background: var(--white); border-radius: var(--radius); padding: 26px 28px;
  border: 1px solid var(--border);
  transition: border-color .22s, transform .22s, box-shadow .22s;
}
.c-card:hover { border-color: var(--black); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.06); }
.c-card.dark { background: var(--black); border-color: var(--black); }
.c-card.dark:hover { border-color: var(--red); }
.c-label { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 7px; }
.c-card.dark .c-label { color: rgba(255,255,255,.4); }
.c-val { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--black); text-decoration: none; display: block; transition: color .2s; }
.c-val:hover { color: var(--red); }
.c-card.dark .c-val { color: var(--white); }
.c-card.dark .c-val:hover { color: rgba(255,255,255,.7); }
.c-sub { font-size: 13px; color: var(--gray); margin-top: 3px; }
.c-card.dark .c-sub { color: rgba(255,255,255,.35); }
.c-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 420px; }
.c-map iframe { width: 100%; height: 100%; border: none; display: block; min-height: 420px; }

/* ══════════════════════════════════════════════════
   NOSOTROS
══════════════════════════════════════════════════ */
.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.historia-p { font-size: 17px; color: var(--gray); line-height: 1.8; margin-bottom: 20px; }
.valores-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.valor-card {
  padding: 24px; border-radius: var(--radius); border: 1px solid var(--border);
  transition: border-color .22s, box-shadow .22s, transform .22s;
}
.valor-card:hover { border-color: var(--black); box-shadow: 0 8px 24px rgba(0,0,0,.06); transform: translateY(-3px); }
.valor-num { font-size: 32px; font-weight: 900; letter-spacing: -.04em; color: var(--border); margin-bottom: 10px; }
.valor-h { font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 5px; }
.valor-p { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ══════════════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════════════ */
.cta-banner {
  background: var(--black); padding: 80px 64px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(238,0,0,.18) 0%, transparent 65%);
}
.cta-banner h2 { font-size: clamp(28px, 3.5vw, 48px); font-weight: 900; letter-spacing: -.04em; color: var(--white); margin-bottom: 12px; position: relative; z-index: 1; }
.cta-banner p { font-size: 16px; color: rgba(255,255,255,.5); margin-bottom: 36px; position: relative; z-index: 1; }
.cta-banner .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
footer {
  padding: 16px 64px; border-top: none;
  background: var(--black);
  display: flex; align-items: center; justify-content: flex-end;
}
footer img { display: none; }
.footer-links { display: none; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.35); text-align: right; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */

/* ── TABLET ── */
@media (max-width: 1100px) {
  .section { padding: 80px 40px; }
  .precio-strip { padding: 20px 40px; }
  .permiso-featured { grid-template-columns: 1fr; gap: 32px; padding: 44px 36px; }
  .pf-price-box { min-width: auto; align-self: flex-start; }
  .permisos-grid { grid-template-columns: 1fr 1fr; }
  footer { padding: 18px 40px; }
  .video-overlay { padding: 0 40px 44px; }
  .page-hero { padding: 60px 40px 52px; }
  .cta-banner { padding: 64px 40px; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {

  /* NAV */
  nav#nav {
    padding: 0 16px;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: "logo . enroll burger";
    height: 64px;
    --nav-h: 64px;
  }
  .nav-logo img { height: 36px; }
  .nav-menu { display: none; }
  .burger { display: flex; }

  /* VÍDEO HERO */
  .video-hero { height: 88vh; min-height: 520px; }
  .video-overlay { padding: 0 20px 36px; }
  .video-tag { font-size: 10px; letter-spacing: .12em; margin-bottom: 12px; }
  .video-title { font-size: clamp(32px, 8.5vw, 48px); line-height: 1.0; margin-bottom: 20px; }
  .video-actions { flex-direction: column; gap: 10px; }
  .video-actions .btn { width: 100%; justify-content: center; font-size: 15px; padding: 15px 20px; }

  /* PAGE HERO */
  .page-hero { padding: 44px 20px 40px; }
  .page-hero h1 { font-size: clamp(32px, 9vw, 48px); letter-spacing: -.04em; }
  .page-hero p { font-size: 15px; margin-top: 12px; line-height: 1.6; }

  /* SECTIONS */
  .section { padding: 52px 20px; }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 16px;
  }
  .section-title { font-size: clamp(24px, 7vw, 36px); }

  /* PRECIO STRIP */
  .precio-strip {
    padding: 18px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .precio-strip .btn { width: 100%; justify-content: center; }

  /* PERMISO FEATURED */
  .permiso-featured {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 20px;
    margin-bottom: 10px;
    border-radius: 16px;
  }
  .permiso-featured-watermark { font-size: 120px; }
  .pf-badge { width: 52px; height: 52px; font-size: 22px; border-radius: 11px; margin-bottom: 16px; }
  .pf-title { font-size: clamp(26px, 7vw, 36px); margin-bottom: 10px; }
  .pf-desc { font-size: 14px; margin-bottom: 20px; }
  .pf-checks { flex-direction: column; gap: 6px; margin-bottom: 24px; }
  .pf-check { font-size: 13px; }
  .pf-price-box { min-width: auto; width: 100%; padding: 20px 18px; }
  .pf-price { font-size: 42px; }

  /* PERMISO GRID */
  .permisos-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .p-card { padding: 22px 18px; min-height: 180px; }
  .p-name { font-size: 16px; }
  .p-badge { width: 40px; height: 40px; font-size: 13px; margin-bottom: 14px; }

  /* POR QUÉ */
  .porque-grid { grid-template-columns: 1fr; gap: 36px; }
  .porque-aside {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-left: 0;
    padding-top: 32px;
  }
  .porque-big { font-size: 64px; margin-bottom: 16px; }
  .porque-quote { font-size: clamp(17px, 4.5vw, 22px); }
  .por-h { font-size: 15px; }
  .por-p { font-size: 13px; }

  /* CONTACTO */
  .contacto-layout { grid-template-columns: 1fr; gap: 20px; }
  .c-map { min-height: 280px; }
  .c-map iframe { min-height: 280px; }
  .c-val { font-size: 18px; }

  /* NOSOTROS */
  .nosotros-grid { grid-template-columns: 1fr; gap: 36px; }
  .historia-p { font-size: 15px; line-height: 1.75; margin-bottom: 16px; }
  .valores-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .valor-card { padding: 18px; }
  .valor-num { font-size: 26px; }
  .valor-h { font-size: 13px; }
  .valor-p { font-size: 12px; }

  /* CTA BANNER */
  .cta-banner { padding: 52px 20px; }
  .cta-banner h2 { font-size: clamp(24px, 7vw, 36px); }
  .cta-banner p { font-size: 14px; margin-bottom: 28px; }
  .cta-banner .actions { flex-direction: column; gap: 10px; align-items: stretch; }
  .cta-banner .actions .btn { width: 100%; justify-content: center; font-size: 15px; }

  /* FOOTER */
  footer {
    padding: 16px 20px;
    gap: 12px;
  }
  footer img { height: 24px; }
  .footer-copy { font-size: 11px; }

  /* STICKY BAR */
  .enroll-bar { padding: 12px 16px; gap: 10px; }
  .enroll-bar-info { gap: 10px; }
  .enroll-bar-text span { display: none; }
  .enroll-bar-text strong { font-size: 13px; }
  .enroll-bar-actions .btn { font-size: 13px; padding: 10px 16px; }
}

/* ── PEQUEÑO MÓVIL ── */
@media (max-width: 480px) {
  /* NAV */
  .nav-logo img { height: 32px; }
  .nav-enroll { font-size: 0; padding: 9px 14px; gap: 0; }
  .nav-enroll::before { width: 10px; height: 10px; }
  .nav-enroll::after { content: 'Alumno'; font-size: 11px; font-weight: 700; margin-left: 5px; }

  /* HERO */
  .video-hero { height: 90vh; min-height: 500px; }
  .video-title { font-size: 32px; }

  /* SECTIONS */
  .section { padding: 44px 16px; }
  .page-hero { padding: 40px 16px 36px; }
  .cta-banner { padding: 44px 16px; }

  /* GRIDS → 1 columna */
  .permisos-grid { grid-template-columns: 1fr; gap: 10px; }
  .valores-grid { grid-template-columns: 1fr; gap: 10px; }

  /* PERMISO CARDS */
  .p-card { min-height: auto; padding: 20px 16px; }

  /* BUTTONS */
  .btn { font-size: 14px; padding: 13px 20px; }

  /* FOOTER */
  footer { padding: 20px 16px; }
  .footer-links { gap: 10px 16px; }

  /* ENROLL BAR */
  .enroll-bar { padding: 10px 14px; }
  .enroll-bar-badge { width: 30px; height: 30px; font-size: 12px; }
}

/* ── BOTONES FULL-WIDTH en móvil dentro de hero ── */
@media (max-width: 600px) {
  .video-actions { flex-direction: column; }
  .video-actions .btn { text-align: center; justify-content: center; }
}

/* ── STICKY ENROLL BAR ──────────────────────────────────────────────────── */
.enroll-bar {
  position: fixed;
  bottom: 20px; left: 20px; right: 20px;
  z-index: 400;
  background: var(--black);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  /* empieza completamente fuera de pantalla (+ margen para que no asome el shadow) */
  transform: translateY(calc(100% + 40px));
  transition: transform .4s cubic-bezier(.22,.68,0,1.2), box-shadow .4s;
  box-shadow: none;
}
.enroll-bar.visible {
  transform: translateY(0);
  box-shadow: 0 8px 48px rgba(0,0,0,.5);
}

.enroll-bar-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.enroll-bar-badge {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: var(--white);
  flex-shrink: 0;
}
.enroll-bar-text strong {
  display: block;
  font-size: 14px; font-weight: 800; color: var(--white);
  letter-spacing: -.02em;
}
.enroll-bar-text span {
  font-size: 12px; color: rgba(255,255,255,.5);
}
.enroll-bar-actions {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.enroll-bar-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: none; cursor: pointer; color: rgba(255,255,255,.5);
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.enroll-bar-close:hover { background: rgba(255,255,255,.15); color: var(--white); }

@media (max-width: 600px) {
  .enroll-bar { padding: 12px 16px; bottom: 12px; left: 12px; right: 12px; border-radius: 16px; }
  .enroll-bar-text span { display: none; }
}
@media (max-width: 400px) {
  .nav-enroll { font-size: 0; padding: 9px 13px; }
  .nav-enroll::before { width: 10px; height: 10px; margin: 0; }
}
