:root {
  --navy: #0e2140;
  --navy-2: #16305a;
  --navy-3: #1f3d6e;
  --gold: #c4952f;
  --gold-light: #e2b955;
  --gold-dark: #9a7220;
  --cream: #f8f3e8;
  --paper: #fffdf8;
  --ink: #1b2233;
  --muted: #5a6274;
  --line: #e6dcc6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 33, 64, .10);
  --head: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: var(--gold-dark); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--navy); }
h3 { font-size: 1.25rem; color: var(--navy); }
p { margin: 0 0 1em; }
section[id] { scroll-margin-top: 76px; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 32px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--head); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
  text-decoration: none; text-transform: uppercase;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: .55em 1.1em; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 33, 64, .97);
  border-bottom: 2px solid var(--gold);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-width: 0; }
.brand img { flex: none; }
.brand-text { display: flex; flex-direction: column; font-family: var(--head); line-height: 1.1; text-transform: uppercase; }
.brand-text strong { color: var(--gold-light); font-size: 1rem; letter-spacing: .03em; }
.brand-text span { font-size: .82rem; color: #dfe5f0; letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: #fff; text-decoration: none; font-family: var(--head); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--gold-light); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: .28; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,33,64,.96) 30%, rgba(14,33,64,.6) 70%, rgba(14,33,64,.85));
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px;
  padding: clamp(56px, 9vw, 110px) 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--navy); background: var(--gold-light); padding: .35em 1em; border-radius: 999px; font-size: .95rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #b3261e; box-shadow: 0 0 0 0 rgba(179,38,30,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(179,38,30,0); } 100% { box-shadow: 0 0 0 0 rgba(179,38,30,0); } }
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; text-transform: uppercase;
  color: var(--gold-light); margin: .45em 0 .35em; letter-spacing: .01em;
}
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #e8ecf4; max-width: 34em; }
.lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: #cfd7e6; font-size: .98rem; }
.hero-facts li::before { content: "✓"; color: var(--gold-light); font-weight: 700; margin-right: .4em; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img { width: min(360px, 100%); height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }

/* Secciones */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }
.kicker {
  font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold-dark); font-size: .9rem; margin-bottom: .6em;
  display: inline-flex; align-items: center; gap: .7em;
}
.kicker::before, .section-head .kicker::after { content: ""; width: 28px; height: 2px; background: var(--gold); }

.section-dark { background: var(--navy); color: #e3e8f1; }
.section-dark h2 { color: #fff; }
.section-dark .kicker { color: var(--gold-light); }

/* Tarjetas del curso */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.info-card p { margin: 0; color: var(--muted); }
.info-card .icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--navy); margin-bottom: 14px;
}
.info-card .icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-card-accent { background: var(--navy); border-color: var(--navy); }
.info-card-accent h3 { color: var(--gold-light); }
.info-card-accent p { color: #e3e8f1; }
.info-card-accent .icon { background: var(--gold); }
.info-card-accent .icon svg { stroke: var(--navy); }

.learn { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; margin-top: 64px; }
.learn-text h3 { font-size: 1.7rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 12px 0 12px 38px; border-bottom: 1px solid var(--line); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%230e2140' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.learn-photo { margin: 0; }
.learn-photo img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

.notice {
  display: flex; gap: 20px; align-items: flex-start;
  margin-top: 56px; padding: 26px 28px;
  background: #fff7e0; border: 1px solid #ecd28f; border-left: 6px solid var(--gold);
  border-radius: var(--radius);
}
.notice h3 { margin-bottom: .35em; }
.notice p { margin: 0; color: #3d4252; }
.notice-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; }
.notice-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-light); stroke-width: 2; stroke-linecap: round; }

/* Profesor */
.profesor { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; }
.profesor-photo { margin: 0; position: relative; }
.profesor-photo img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 4px solid var(--gold); box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.profesor-role { font-family: var(--head); color: var(--gold-light); text-transform: uppercase; letter-spacing: .05em; font-size: 1rem; margin-top: -.3em; }
.profesor-text strong { color: #fff; }
.profesor-facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profesor-facts li { background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: 10px; padding: 12px 14px; font-size: .98rem; }
.profesor-facts em { color: var(--gold-light); font-style: normal; font-weight: 600; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 12px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 12px; background: var(--navy); }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; }
.gallery img { transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .g-wide { grid-column: span 2; grid-row: span 2; }
.gallery .g-video { grid-column: span 2; grid-row: span 2; }
.gallery .g-half { grid-column: span 2; }
.gallery .g-half img { object-position: center 40%; }
.gallery .g-half img.top { object-position: center 15%; }
.gallery .g-video video { object-fit: contain; background: #000; }
.gallery figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(14,33,64,.88); color: var(--gold-light);
  font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem;
  padding: .3em .8em; border-radius: 999px;
}

/* Lema */
.motto { background: var(--navy); border-block: 2px solid var(--gold); padding: 40px 0; }
.motto img { margin: 0 auto; width: min(720px, 100%); height: auto; }

/* FAQ */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; position: relative;
  font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--gold-dark); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.phone {
  display: inline-block; font-family: var(--head); font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem); color: var(--gold-light); text-decoration: none; margin: .1em 0 0;
}
.contact address { font-style: normal; margin-top: 28px; color: #c4cde0; border-left: 3px solid var(--gold); padding-left: 14px; }
.map { border-radius: var(--radius); overflow: hidden; border: 3px solid var(--gold); min-height: 360px; background: var(--navy-2); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }

/* Footer */
.site-footer { background: #091731; color: #9aa6bd; font-size: .92rem; padding: 26px 0 90px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.footer-inner p { margin: 0; }
.powered { color: #6f7c96; }
.powered a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.powered a:hover { color: #fff; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: #25d366;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.wa-float:hover { background: #1ebe5a; }

:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }

/* Responsive */
@media (max-width: 960px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .profesor { grid-template-columns: 240px 1fr; gap: 36px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 2px solid var(--gold);
    padding: 8px 16px 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--navy-3); }
  .nav .btn { margin-top: 14px; }

  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-logo { order: -1; justify-content: flex-start; }
  .hero-logo img { width: 130px; }
  .learn, .contact { grid-template-columns: 1fr; }
  .learn-photo img { height: 320px; }
  .profesor { grid-template-columns: 1fr; }
  .profesor-photo { max-width: 260px; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand-text strong { font-size: .9rem; }
  .brand-text span { font-size: .74rem; }
  .info-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
  .gallery .g-wide, .gallery .g-video { grid-column: span 2; grid-row: span 2; }
  .gallery .g-half { grid-column: span 2; grid-row: span 1; }
  .profesor-facts { grid-template-columns: 1fr; }
  .notice { flex-direction: column; padding: 22px 20px; }
  .hero-actions .btn { width: 100%; }
  .section-head { margin-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
  .btn, .gallery img { transition: none; }
}
