/* =====================================================================
   atlanthink — Landing Page
   Hoja de estilos principal
   Colores corporativos:
     PMS 7687 C  -> Azul   (#1C46A2)
     PMS 7427 C  -> Rojo   (#9E1B32)
   ===================================================================== */

/* ---------- Variables ---------- */
:root {
  /* Marca */
  --blue:        #1C46A2;   /* PMS 7687 C */
  --blue-dark:   #122F73;
  --blue-deep:   #0D2150;
  --blue-soft:   #eef2fb;
  --blue-tint:   #dde6f8;
  --red:         #9E1B32;   /* PMS 7427 C */
  --red-bright:  #C42440;

  /* Neutros */
  --ink:         #16203a;
  --body:        #43506b;
  --muted:       #6b7691;
  --line:        #e6eaf2;
  --bg:          #ffffff;
  --bg-soft:     #f4f6fc;

  /* UI */
  --radius:      18px;
  --radius-lg:   28px;
  --radius-pill: 999px;
  --shadow-sm:   0 4px 14px rgba(18, 47, 115, .07);
  --shadow:      0 14px 38px rgba(18, 47, 115, .12);
  --shadow-lg:   0 30px 70px rgba(13, 33, 80, .20);
  --ring:        0 0 0 4px rgba(28, 70, 162, .22);

  --maxw:        1200px;
  --header-h:    74px;

  --font-display:'Fredoka', 'Trebuchet MS', sans-serif;
  --font-body:   'Inter', 'Segoe UI', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.01em;
}

::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 820px; }

.section { padding: 92px 0; scroll-margin-top: 88px; }
.section--soft { background: var(--bg-soft); }

/* Desfase de anclas para que el header fijo no tape el contenido */
.hero, [id] { scroll-margin-top: 88px; }

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section__title {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  margin-bottom: 16px;
}
.section__text {
  color: var(--body);
  font-size: 1.05rem;
}
.section__text + .section__text { margin-top: 16px; }
.section__text--center { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.eyebrow--red  { color: var(--red); background: #fbe9ec; }
.eyebrow--light{ color: #fff; background: rgba(255,255,255,.16); }

.hl { color: var(--red); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
}
.skip-link:focus { left: 16px; }

/* =====================================================================
   LOGO
   ===================================================================== */
.logo { display: inline-flex; align-items: center; }
.logo__img { height: 34px; width: auto; display: block; }
.logo__img--footer { height: 30px; }

/* =====================================================================
   BOTONES
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(28, 70, 162, .32);
}
.btn--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(28, 70, 162, .42);
}
.btn--ghost {
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--blue-tint);
}
.btn--ghost:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.btn--white {
  background: #fff;
  color: var(--blue);
  box-shadow: var(--shadow);
}
.btn--white:hover { transform: translateY(-2px); color: var(--blue-dark); }
.btn--outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.55);
}
.btn--outline-white:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

/* =====================================================================
   BARRA SUPERIOR (marquee)
   ===================================================================== */
.topbar {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue), var(--blue-dark));
  color: #fff;
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
}
.topbar__track {
  display: flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.topbar:hover .topbar__track { animation-play-state: paused; }
.topbar__item {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .02em;
}
.topbar__dot { color: var(--red-bright); font-size: .7rem; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================================
   HEADER / NAV
   ===================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.header.is-scrolled {
  box-shadow: 0 6px 24px rgba(18, 47, 115, .09);
  border-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .97rem;
  color: var(--ink);
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  transition: color .15s ease, background .15s ease;
}
.nav__link:hover { color: var(--blue); background: var(--blue-soft); }
.nav__link.is-active { color: var(--blue); }
.nav__link--ext { color: var(--red); }
.nav__link--ext:hover { color: #fff; background: var(--red); }
.nav__link--ext svg { transition: transform .15s ease; }
.nav__link--ext:hover svg { transform: translate(1px,-1px); }

.nav__close { display: none; }
.nav__caret { transition: transform .2s ease; }

/* Dropdown */
.nav__item--has-drop { position: relative; }
.nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  width: 290px;
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav__item--has-drop:hover .nav__dropdown,
.nav__item--has-drop:focus-within .nav__dropdown,
.nav__dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__item--has-drop:hover .nav__caret { transform: rotate(180deg); }
.nav__dropdown a {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  transition: background .15s ease;
}
.nav__dropdown a:hover { background: var(--blue-soft); }
.nav__dropdown strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: .98rem;
}
.nav__dropdown span { font-size: .84rem; color: var(--muted); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border-radius: 12px;
}
.hamburger span {
  width: 24px;
  height: 2.6px;
  background: var(--ink);
  border-radius: 3px;
  transition: transform .25s ease, opacity .2s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 33, 80, .45);
  z-index: 98;
  opacity: 0;
  transition: opacity .25s ease;
}
.nav-overlay.is-visible { opacity: 1; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  padding: 70px 0 90px;
  background:
    radial-gradient(900px 500px at 88% -8%, var(--blue-soft), transparent 70%),
    radial-gradient(700px 480px at -5% 105%, #fbe9ec, transparent 70%);
  overflow: hidden;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  z-index: 0;
}
.hero__blob--1 {
  width: 320px; height: 320px;
  background: radial-gradient(circle at 35% 35%, rgba(28,70,162,.16), transparent 70%);
  top: -60px; right: -40px;
  animation: float 9s ease-in-out infinite;
}
.hero__blob--2 {
  width: 260px; height: 260px;
  background: radial-gradient(circle at 35% 35%, rgba(158,27,50,.14), transparent 70%);
  bottom: -50px; left: 10%;
  animation: float 11s ease-in-out infinite reverse;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-26px); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.3rem, 1.2rem + 4vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero__text {
  font-size: 1.13rem;
  max-width: 520px;
  margin-bottom: 30px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}
.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.hero__pills li {
  position: relative;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
  padding-left: 24px;
}
.hero__pills li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--blue-soft);
}

/* Hero media / mockup */
.hero__media { position: relative; min-height: 420px; }
.hero__video {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  border: 0;
}
.hero__mockup {
  position: relative;
  height: 100%;
  min-height: 420px;
  background: linear-gradient(150deg, var(--blue), var(--blue-deep));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__mockup-glow {
  position: absolute;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(196,36,64,.55), transparent 65%);
  top: -120px; right: -120px;
  border-radius: 50%;
}
.hero__logo-badge {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%,-50%);
  text-align: center;
  width: 86%;
}
.hero__badge-logo { width: min(320px, 78%); height: auto; filter: drop-shadow(0 10px 22px rgba(0,0,0,.28)); }
.hero__badge-tag {
  display: block;
  margin-top: 16px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .01em;
}
.hero__card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.hero__card strong { display: block; font-family: var(--font-display); font-size: .92rem; color: var(--ink); }
.hero__card small  { color: var(--muted); font-size: .78rem; }
.hero__card-ic { font-size: 1.5rem; }
.hero__card--1 { top: 8%;  left: -28px; animation-delay: .2s; }
.hero__card--2 { bottom: 16%; right: -26px; animation-delay: 1.4s; }
.hero__card--3 { bottom: 5%;  left: 6%;  animation-delay: 2.6s; }

/* =====================================================================
   TIRA DE VALOR (dolores)
   ===================================================================== */
.painband {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  color: #fff;
  padding: 46px 0;
}
.painband__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 26px;
  text-align: center;
}
.painband__lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  opacity: .85;
}
.painband__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.painband__chips li {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
}
.painband__solve {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  width: 100%;
}
.painband__solve span { color: #ffd2da; font-weight: 500; }

/* =====================================================================
   GRID 2 COLUMNAS (Nosotros)
   ===================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
}
.grid-2--center { align-items: center; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.05rem;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}
.stat:nth-child(even) .stat__num { color: var(--red); }
.stat__label { font-size: .88rem; color: var(--muted); }

/* =====================================================================
   CARDS — Soluciones
   ===================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  scroll-margin-top: 100px;
}
.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: var(--blue-tint);
}
.card__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  margin-bottom: 18px;
  color: #fff;
}
.card__icon--blue { background: linear-gradient(150deg, var(--blue), var(--blue-dark)); }
.card__icon--red  { background: linear-gradient(150deg, var(--red-bright), var(--red)); }
.card__title { font-size: 1.32rem; margin-bottom: 10px; }
.card__text  { font-size: .98rem; margin-bottom: 16px; }
.card__list { display: grid; gap: 8px; }
.card__list li {
  position: relative;
  padding-left: 24px;
  font-size: .9rem;
  color: var(--body);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .5em;
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
}
.card--feature {
  background: linear-gradient(155deg, var(--blue-soft), #fff 60%);
  border-color: var(--blue-tint);
  display: flex;
  flex-direction: column;
}
.card--feature .card__text { margin-bottom: auto; }
.card--feature .btn { margin-top: 20px; align-self: flex-start; }

/* =====================================================================
   CATEGORÍAS / PRODUCTOS
   ===================================================================== */
.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 44px;
}
.cat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.cat:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.cat__art {
  height: 150px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.cat__art span { font-size: 3.6rem; filter: drop-shadow(0 8px 14px rgba(0,0,0,.18)); }
.cat__art--1 { background: linear-gradient(150deg, #dde6f8, #b7c8ee); }
.cat__art--2 { background: linear-gradient(150deg, #d9efe2, #aedcc4); }
.cat__art--3 { background: linear-gradient(150deg, #fbe1e6, #f0b9c4); }
.cat__title { font-size: 1.25rem; margin-bottom: 6px; }
.cat__text  { font-size: .93rem; }

.store-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  border-radius: var(--radius-lg);
  padding: 38px 44px;
  color: #fff;
}
.store-cta h3 { color: #fff; font-size: 1.4rem; margin-bottom: 6px; }
.store-cta p  { opacity: .85; font-size: .98rem; }

/* =====================================================================
   ESCUELA — cursos
   ===================================================================== */
.courses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.course {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course:nth-child(4),
.course:nth-child(5) { grid-column: span 1; }
.course__ic {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 16px;
}
.course:nth-child(even) .course__ic { background: #fbe9ec; color: var(--red); }
.course__title { font-size: 1.1rem; margin-bottom: 7px; }
.course__text  { font-size: .92rem; }

/* =====================================================================
   COMUNIDAD
   ===================================================================== */
.community {
  position: relative;
  background: linear-gradient(135deg, var(--red), #6f1322);
  border-radius: var(--radius-lg);
  padding: 70px 60px;
  overflow: hidden;
  text-align: center;
}
.community__blob {
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(28,70,162,.5), transparent 65%);
  border-radius: 50%;
  top: -160px; right: -120px;
}
.community__content { position: relative; z-index: 1; max-width: 660px; margin: 0 auto; }
.community__title {
  color: #fff;
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.8rem);
  margin-bottom: 14px;
}
.community__text { color: rgba(255,255,255,.9); font-size: 1.06rem; margin-bottom: 28px; }
.community__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* =====================================================================
   FAQ
   ===================================================================== */
.faq { display: grid; gap: 14px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 20px 56px 20px 24px;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--blue);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 24px 22px; font-size: .98rem; }
.faq__item a { color: var(--blue); font-weight: 600; }

/* =====================================================================
   CTA FINAL
   ===================================================================== */
.finalcta {
  background:
    radial-gradient(700px 380px at 80% 0%, rgba(196,36,64,.4), transparent 70%),
    linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  padding: 88px 0;
  scroll-margin-top: 80px;
}
.finalcta__inner { text-align: center; max-width: 680px; margin: 0 auto; }
.finalcta__title {
  color: #fff;
  font-size: clamp(2rem, 1.2rem + 3vw, 3rem);
  margin-bottom: 14px;
}
.finalcta__text { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 30px; }
.finalcta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--blue-deep); color: rgba(255,255,255,.7); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 64px 24px 48px;
}
.footer__tag { margin: 18px 0; font-size: .95rem; max-width: 260px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  transition: background .18s ease, transform .18s ease;
}
.footer__social a:hover { background: var(--red); transform: translateY(-3px); }
.footer__col h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.footer__col a, .footer__addr {
  display: block;
  font-size: .93rem;
  color: rgba(255,255,255,.7);
  padding: 5px 0;
  transition: color .15s ease;
}
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 22px 24px;
  font-size: .84rem;
}

/* =====================================================================
   BOTÓN VOLVER ARRIBA
   ===================================================================== */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(28,70,162,.4);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .18s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue-dark); }

/* =====================================================================
   ANIMACIONES DE APARICIÓN (scroll reveal)
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(360px, 86vw);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 84px 26px 32px;
    box-shadow: -20px 0 50px rgba(13,33,80,.18);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    z-index: 99;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { width: 100%; font-size: 1.05rem; padding: 13px 14px; }
  .nav__drop-toggle { width: 100%; justify-content: space-between; }
  .nav__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    width: 100%;
    box-shadow: none;
    border: none;
    background: var(--bg-soft);
    margin: 4px 0 8px;
    padding: 6px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav__dropdown.is-open { max-height: 420px; }
  .nav__cta { margin-top: 18px; justify-content: center; }
  .nav__close {
    display: block;
    position: absolute;
    top: 20px; right: 22px;
    font-size: 2rem;
    line-height: 1;
    color: var(--ink);
  }
  .hamburger { display: flex; }
}

@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__text { max-width: 100%; }
  .hero__media { max-width: 460px; margin: 0 auto; width: 100%; }
  .grid-2 { grid-template-columns: 1fr; gap: 38px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .courses { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 66px 0; }
  .container { padding: 0 18px; }
  .hero { padding: 44px 0 64px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .cards,
  .cats,
  .courses,
  .stats { grid-template-columns: 1fr; }
  .store-cta { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
  .community { padding: 52px 26px; }
  .painband__solve { font-size: 1.05rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer__brand { grid-column: 1 / -1; }
  .finalcta__actions .btn,
  .community__actions .btn { flex: 1 1 auto; justify-content: center; }
  .to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 460px) {
  .footer__inner { grid-template-columns: 1fr; }
  .hero__card--1 { left: -8px; }
  .hero__card--2 { right: -6px; }
}

/* ---------- Accesibilidad: reducir movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
