/* Números al Alcance — styles.css (Stable, Mobile-first) */
/* Brand */
:root{
  --dock-gap: 0px;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --brand: #32afb4;
  --brand-2: #1e696c;
  --brand-strong: #237a7e;
  --ring: #94e2e5;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(2,6,23,.08);
  --radius: 16px;
  --grad: linear-gradient(90deg, var(--brand), var(--brand-2));
}

*{ box-sizing:border-box }
html,body{ height:100%; max-width: 100%; overflow-x: hidden; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at -10% -20%, rgba(50,175,180,.06), transparent 50%),
    radial-gradient(1200px 800px at 120% -10%, rgba(30,105,108,.06), transparent 50%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.grad-text{ background: var(--grad); -webkit-background-clip:text; background-clip:text; color: transparent; }
.subtle-note{ color: var(--muted); display:block; margin-top: 6px; }

/* Layout */
.container{ width:min(1100px, 92%); margin-inline:auto; }
.section{ padding: 20px 0; }
.section.alt{ background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head{ margin-bottom: 12px; }
.section-head h2{ margin: 0 0 6px 0; font-size: clamp(24px, 3.8vw, 34px); position: relative; }
.section-head h2::after{ content: ""; display:block; width: 84px; height: 4px; border-radius: 999px; margin-top: 8px; background: var(--grad); }
.section-head p{ margin:0; color: var(--muted) }

/* Header */
.site-header{ position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding: 10px 0; }
.brand{ display:flex; align-items:center; gap:10px; font-weight: 800; color: var(--text); text-decoration: none; font-size: 18px; letter-spacing:.2px; }
.site-nav ul{ list-style:none; display:flex; gap: 14px; padding:0; margin:0; }
.site-nav a{ color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 10px; display:flex; align-items:center; gap:8px; position: relative; }
.site-nav a:hover{ background: rgba(2,6,23,.06); }
.site-nav a.active{ background: rgba(50,175,180,.14); color: #0a3f41; }
.nav-ic{ width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Nav móvil */
.nav-toggle{ display:none; background:none; border:0; padding:6px; margin:0 0 0 auto; cursor:pointer; }
.nav-toggle:focus{ outline: 3px solid var(--ring); border-radius: 10px; }
.nav-toggle-bar{ display:block; width: 26px; height: 2px; background: var(--text); margin: 6px 0; border-radius: 2px; }

/* Hero */
.hero{ position: relative; overflow: hidden; padding: 24px 0 24px; }
.bg-orbs{ position:absolute; inset: 0; pointer-events:none; }
.orb{ position:absolute; width: 480px; height: 480px; border-radius: 50%; filter: blur(50px); opacity:.35; }
.orb-a{ background: radial-gradient(circle at 30% 30%, #93c5fd33, transparent 60%); top:-120px; left:-140px; }
.orb-b{ background: radial-gradient(circle at 70% 30%, #a5f3fc33, transparent 60%); top:-160px; right:-160px; }
.orb-c{ background: radial-gradient(circle at 50% 80%, #bfdbfe33, transparent 60%); bottom:-220px; left: 20%; }
.accent-sep{ height: 1px; background: linear-gradient(90deg, transparent, rgba(50,175,180,.35), transparent); margin-top: 16px; }
.hero-inner{ display:grid; gap: 20px; }
.hero h1{ margin:0 0 8px; font-size: clamp(28px, 6vw, 46px); line-height: 1.1; }
.hero p{ color: var(--muted); margin: 0 0 10px; }
.hero-cta{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 6px; }

/* Chips */
.chips{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom: 8px; }
.chip{ font-size: 12px; font-weight: 700; letter-spacing:.2px; border-radius: 999px; padding: 6px 10px; background: linear-gradient(180deg, rgba(15,23,42,.04), rgba(15,23,42,.02)), var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow); }

/* Hero cover */
.hero-cover{ margin-top: 30px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.hero-cover img{ display:block; width: 100%; height: auto; object-fit: cover; }

/* Cards */
.cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card{ background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover{ transform: translateY(-2px); box-shadow: 0 14px 40px rgba(2,6,23,.12); border-color: transparent; }
.card h3{ margin:0 }
.card-head{ display:flex; align-items:center; justify-content:space-between; gap: 10px; margin-bottom: 6px; }
.badge{ font-size: 11px; padding: 4px 8px; border-radius: 999px; font-weight: 700; background: var(--bg-alt); border: 1px solid var(--border); }

/* Buttons (fallback friendly) */
.btn{ --b: var(--brand-strong); display:inline-block; border: 1px solid rgba(0,0,0,.12); color: white; background: var(--b); padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 700; letter-spacing:.2px; box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: transform .06s ease, box-shadow .2s ease, filter .2s ease; }
@supports (background: color-mix(in oklab, white, black)){
  .btn{ border: 1px solid color-mix(in oklab, var(--b), #000 12%); background: linear-gradient(180deg, color-mix(in oklab, var(--b), #fff 8%), color-mix(in oklab, var(--b), #000 6%)); box-shadow: 0 6px 18px color-mix(in oklab, var(--b), #000 84% / .18); }
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.03); }
.btn:focus{ outline: 3px solid var(--ring); }
.btn-primary{ --b: var(--brand-strong); }
.btn-ghost{ --b: var(--brand-2); }
.btn-link{ --b: var(--brand-2); font-weight: 600; padding: 8px 10px; border-radius: 10px; color: var(--text); background: transparent; border: 0; text-decoration: underline; text-underline-offset: 4px; }

/* Bullets */
.bullets{ margin: 12px 0 0; padding: 0 0 0 16px; color: var(--muted); }

/* Horarios y Precios */
.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.schedule{ display:grid; gap: 8px; }
.schedule-row{ background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.price-cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.price{ background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); text-align:center; }
.price-title{ color: var(--muted) }
.price-amount{
  font-size: clamp(22px, 4.2vw, 32px);
  font-weight: 800;
  margin-top: 2px;
  background: var(--grad);
  -webkit-background-clip: text; /* WebKit/Blink */
  background-clip: text;         /* Estándar */
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Fallback si no soporta background-clip:text */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .price-amount{ color: #1e696c; background: none; }
}

/* Incluye */
.features{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feature{ background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); }

/* Aula - Timeline steps */
.steps{ margin: 0; padding-left: 0; list-style: none; position: relative; counter-reset: step; }
.steps li{ position: relative; padding-left: 36px; margin: 8px 0; min-height: 28px; }
.steps li::before{ content: counter(step); counter-increment: step; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display:flex; align-items:center; justify-content:center; font-size: 12px; font-weight: 800; color: white; background: var(--grad); box-shadow: var(--shadow); }
.callout{ margin-top: 8px; background: rgba(50,175,180,.10); border: 1px solid rgba(50,175,180,.30); border-radius: 12px; padding: 12px 14px; color: #0b1b54; }

/* FAQ (Accordion) */
.accordion{ display:grid; gap: 8px; }
.accordion-item{ border: 1px solid var(--border); background: var(--card); border-radius: 14px; box-shadow: var(--shadow); }
.accordion-title{ margin:0; padding: 12px 14px; font-size: 16px; position: relative; cursor: pointer; }
.accordion-title::after{ content:""; position:absolute; right: 16px; top:50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-50%) rotate(45deg); transition: transform .2s ease; }
.accordion-item.open .accordion-title::after{ transform: translateY(-50%) rotate(-135deg); }
.accordion-title:focus{ outline: 3px solid var(--ring) }
.accordion-panel{ display:none; padding: 0 14px 12px; color: var(--muted); border-top: 1px solid var(--border); }
.accordion-item.open .accordion-panel{ display:block }

/* Contacto */
.contact-cta{ display:flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
.site-footer{ border-top: 1px solid var(--border); margin-top: 26px; background: var(--bg);   margin-bottom: var(--dock-gap, 0px);
}
.footer-inner{ display:flex; align-items:center; justify-content:space-between; padding: 14px 0 22px; }
.footer-inner a{ color: var(--muted); text-decoration:none; }
.footer-inner a:hover{ color: var(--text) }

/* Anchor offset for sticky header */
main section[id]{ scroll-margin-top: 72px; }

/* WhatsApp FAB */
/* WhatsApp FAB (safe-area aware, no overflow) */
.wa-fab{
  position: fixed;
  right: calc(20px + env(safe-area-inset-right));
  bottom: calc(30px + env(safe-area-inset-bottom));
  width: clamp(44px, 12vw, 56px);
  height: clamp(44px, 12vw, 56px);
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: white;
  background: #25D366;
  box-shadow: 0 12px 30px rgba(2,6,23,.18);
  opacity: 1;
  pointer-events: auto;
  transform: translateZ(0);
  transition: box-shadow .2s ease, filter .2s ease, bottom .25s ease;
  z-index: 1300;
}
.wa-fab:where(:hover,:focus-visible){ filter: brightness(1.04); box-shadow: 0 14px 34px rgba(2,6,23,.22); }
.wa-ic{ width: 24px; height: 24px; fill: currentColor; }


.wa-fab:where(:hover,:focus-visible)::after{ opacity: 1; transform: translateY(50%) scale(1); }

/* On very narrow screens, hide the tooltip to avoid any chance of overflow */
@media (max-width: 400px){
  .wa-fab::after{ display: none; }
}
@media (hover: none){
  .wa-fab::after{ display: none; }
}

/* Mobile CTA Dock (PRI/SEC/PRE) */
.cta-dock{
  max-width: calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right));
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(6px);
  display: none;
  gap: 8px;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(120%) blur(12px);
  backdrop-filter: saturate(120%) blur(12px);
  border: 1px solid rgba(30,105,108,.22);
  box-shadow: 0 10px 24px rgba(2,6,23,.12);
  border-radius: 999px;
  padding: 8px;
  z-index: 1150;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.cta-dock .dock-btn{
  display:inline-block;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  background: var(--grad);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 22px rgba(2,6,23,.12);
}
.cta-dock .dock-btn:where(:hover,:focus-visible){ filter: brightness(1.05); box-shadow: 0 10px 26px rgba(2,6,23,.18); }
@media (max-width: 900px){
  .cta-dock{
  max-width: calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)); display: none; }
  .cta-dock.show{ display: flex; }
}

/* Header shrink */
.site-header.shrink .header-inner{ padding: 6px 0; }
.site-header.shrink{ background: rgba(255,255,255,.97); backdrop-filter: blur(12px) saturate(120%); border-bottom-color: rgba(30,105,108,.25); }
.site-header.shrink .brand{ color: var(--brand-strong); }
.site-header.shrink .site-nav a{ color: var(--brand-strong); }
.site-header.shrink .site-nav a.active{ background: rgba(50,175,180,.18); color: #0a3f41; }
.site-header.shrink .nav-toggle-bar{ background: var(--brand-strong); }

/* Responsivo */
@media (max-width: 900px){
  .cards{ grid-template-columns: 1fr 1fr; }
  .features{ grid-template-columns: 1fr 1fr; }
  .price-cards{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; gap: 14px; }
  .site-nav{ display:none; position: absolute; top: 58px; left: 0; right: 0; background: var(--bg); padding: 10px 0; border-bottom: 1px solid var(--border); }
  .site-nav.open{ display: block; }
  .site-nav ul{ flex-direction: column; gap: 0 }
  .site-nav a{ display:block; padding: 12px 20px; }
  .nav-toggle{ display:block }
}
@media (max-width: 560px){
  .cards{ grid-template-columns: 1fr; }
  .features{ grid-template-columns: 1fr; }
}

.cta-dock.show{ opacity: 1; transform: translateX(-50%) translateY(0); }

/* Center hero title and CTA */
.hero-inner{ justify-items: center; }
.hero .hero-copy{ text-align: center; margin: 0 auto; }
.hero .chips{ justify-content: center; }
.hero .hero-cta{ justify-content: center; }


/* Brand logo slot (top-left, always visible) */
.brand-logo{
  width: 28px;
  height: 28px;
  background-image: var(--logo-url, none); /* set --logo-url: url('mi-logo.PNG') en :root para mostrarlo */
    background-repeat: no-repeat;

  background-size: contain;
  background-position: center;
  flex: 0 0 28px;
}
.brand-text{ display:inline-block; }


/* Skip link for accessibility */
.skip-link{
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus{
  position: fixed;
  left: 16px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #000;
  color: #fff;
  z-index: 2000;
  border-radius: 8px;
}


/* Lock scroll when the mobile menu is open */
body.menu-open{ overflow: hidden; }

/* Header height variable to stabilize dropdown position */
:root{ --header-height: 58px; }
@media (min-width: 901px){
  :root{ --header-height: 64px; } /* can be tuned; keeps things steady on desktop */
}
@media (max-width: 900px){
  .site-nav{ top: var(--header-height, 58px); } /* stabilize against shrink toggles */
}


/* === WOW Effects Pack === */

/* Smooth animated gradient for highlighted text */
.grad-text{
  background-size: 200% 200%;
  animation: gradShift 8s ease infinite;
}
@keyframes gradShift{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

/* Reveal on scroll */
.wow{ opacity: 0; transform: translateY(14px); will-change: transform, opacity; }
.wow.in-view{ opacity: 1; transform: none;
  transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--stagger, 0ms);
}

/* Button micro-interactions */
.button, .btn, .cta, button, a[role="button"]{
  position: relative; overflow: hidden; transform: translateZ(0);
}
.button::after, .btn::after, .cta::after, button::after, a[role="button"]::after{
  content:""; position: absolute; inset: -1px;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.18) 30%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .6s ease;
  pointer-events: none;
}
.button:hover::after, .btn:hover::after, .cta:hover::after, button:hover::after, a[role="button"]:hover::after{
  transform: translateX(120%);
}
.button:hover, .btn:hover, .cta:hover, button:hover, a[role="button"]:hover{
  transform: translateY(-1px);
}
.button:active, .btn:active, .cta:active, button:active, a[role="button"]:active{
  transform: translateY(0);
}

/* Tilt-ready cards */
[data-tilt]{
  transition: transform .2s ease, box-shadow .2s ease;
  will-change: transform;
  perspective: 600px;
}
[data-tilt].tilting{
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* Parallax subtle layer (optional decorative) */
.parallax-sway{
  animation: sway 6s ease-in-out infinite;
}
@keyframes sway{
  0%{ transform: translateY(0px) }
  50%{ transform: translateY(-4px) }
  100%{ transform: translateY(0px) }
}

/* Scroll progress bar */
.scroll-progress{
  position: fixed;
  left: 0; top: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2, #6C63FF));
  z-index: 1600;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

/* Mobile menu animation */
.site-nav{
  transition: transform .35s ease, opacity .35s ease, visibility .35s ease;
}
.site-nav.open{ opacity: 1; visibility: visible; transform: translateY(0); }
@media (max-width: 900px){
  .site-nav{ transform: translateY(-10px); }
}

/* Reduced motion: prefer calm UI */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .wow{ opacity: 1 !important; transform: none !important; }
}


/* === Glassmorphism Header & Magnetic CTA === */
:root{
  --glass-bg: rgba(255,255,255,.60);
  --glass-bg-dark: rgba(18,18,18,.55);
  --glass-border: rgba(0,0,0,.06);
}
header.glass{
  position: sticky;
  top: 0; left: 0; right: 0;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 6px 30px rgba(0,0,0,.06);
  z-index: 1500;
  transform: translateZ(0);
}
header.glass.shrink{
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
}
@media (prefers-color-scheme: dark){
  header.glass{ background: var(--glass-bg-dark); border-bottom-color: rgba(255,255,255,.1); }
}

/* Fallback when backdrop-filter not supported */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){
  header.glass{ background: rgba(255,255,255,.92); }
  header.glass.shrink{ background: rgba(255,255,255,.96); }
}

/* Magnetic CTA base */
.magnetic{
  will-change: transform;
  transition: transform .15s ease;
}

/* === Glass Cards & Spotlight === */
/* Glassmorphism for cards and program blocks */
:root{
  --glass-surface: rgba(255,255,255,.55);
  --glass-border-2: rgba(0,0,0,.06);
  --glass-shadow: 0 10px 30px rgba(0,0,0,.06);
}
@media (prefers-color-scheme: dark){
  :root{ --glass-surface: rgba(20,20,22,.5); --glass-border-2: rgba(255,255,255,.08); }
}

:where(.card, .program, .program-card){
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border, #e9e9e9);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
  overflow: hidden;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){
  :where(.card, .program, .program-card){
    background: var(--glass-surface);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    backdrop-filter: blur(12px) saturate(1.15);
    border-color: var(--glass-border-2);
    box-shadow: var(--glass-shadow);
  }
}
:where(.card, .program, .program-card):hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
}

/* Spotlight hover on hero */
.hero{
  position: relative;
  isolation: isolate;
}
.hero::before{
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  opacity: var(--spotlight, 0);
  transition: opacity .4s ease;
  background: radial-gradient(
    circle 240px at var(--mx, 50%) var(--my, 50%),
    color-mix(in oklab, var(--accent), transparent 70%) 0%,
    transparent 40%
  );
  mix-blend-mode: screen;
  z-index: -1;
}

@media (prefers-reduced-motion: reduce){
  .hero::before{ display: none; }
}


/* === Extended Spotlight, Comet Cursor, Neon CTA === */

/* Spotlight reusable area */
.spotlight-area{
  position: relative;
  isolation: isolate;
}
.spotlight-area::before{
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  opacity: var(--spotlight, 0);
  transition: opacity .4s ease;
  background: radial-gradient(
    circle 260px at var(--mx, 50%) var(--my, 50%),
    color-mix(in oklab, var(--accent), transparent 72%) 0%,
    transparent 42%
  );
  mix-blend-mode: screen;
  z-index: -1;
}

/* Neon CTA */
.neon-cta{
  position: relative;
  border-radius: 14px;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.neon-cta:hover{
  box-shadow:
    0 0 12px color-mix(in oklab, var(--accent), transparent 35%),
    0 0 24px color-mix(in oklab, var(--accent), transparent 50%),
    0 0 48px color-mix(in oklab, var(--accent), transparent 70%);
  transform: translateY(-1px);
}

/* Comet canvas sits above content but ignores pointer events */
#comet-canvas{
  position: fixed; inset: 0;
  z-index: 1400;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce){
  .spotlight-area::before{ display:none; }
  #comet-canvas{ display:none; }
}

/* === Full-bleed hero cover on small screens (wider mobile cover) === */
@media (max-width: 600px){
  .hero-cover{
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    border-radius: 0; /* edge-to-edge look */
  }
  .hero-cover img{
    aspect-ratio: 16 / 9; /* slightly taller than 21:9 to feel wider/impactful on phones */
  }
}
:root{ --mobile-gutter: clamp(12px, 4vw, 20px); }

/* === Wide hero on mobile with gutters (not edge-to-edge) === */
@media (max-width: 600px){
  .hero-cover{
    margin-left: var(--mobile-gutter);
    margin-right: var(--mobile-gutter);
    width: auto;
    border-radius: 14px;
  }
  .hero-cover img{
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: inherit;
  }
}

/* === Logo swap helper ===
   Reemplaza el archivo logo.PNG por el tuyo (o cambia a logo.PNG) y se actualizará:
   - El cuadrito del logo en la esquina superior izquierda.
   - El favicon del sitio (index.html ya apunta a logo.PNG).
*/
:root{ --logo-url: url('/logo.PNG'); }

/* === Resaltar título de temarios === */
#temarios .section-head h2 {
  font-size: clamp(28px, 7vw, 42px);
  font-weight: 900;
  text-transform: uppercase;
  background: var(--grad);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 6s ease infinite;
  text-shadow: 0 2px 6px rgba(50,175,180,0.25);
}

/* === Botón para Temario === */
.btn-temario {
  display: inline-block;
  background: var(--grad);
  color: #fff !important;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(2,6,23,.12);
  white-space: nowrap;
  text-decoration: none;
}
.btn-temario:hover {
  filter: brightness(1.05);
}

/* === Compactar sección temarios en móvil === */
@media (max-width: 600px) {
  #temarios.section {
    padding: 10px 0; /* menos alto */
  }
  #temarios .cards {
    gap: 6px; /* menos separación entre tarjetas */
  }
  #temarios .card {
    padding: 10px;
  }
  #temarios .card h3 {
    font-size: 16px;
    margin-bottom: 2px;
  }
  #temarios .card p {
    font-size: 13px;
    margin-bottom: 6px;
  }
  #temarios .card-actions {
    margin-top: 4px;
  }
  .btn-temario {
    padding: 6px 10px;
    font-size: 12px;
  }
}
