/* ==========================================================================
   FlyerAI — hoja de estilos

    1. Fuente
    2. Variables
    3. Base
    4. Utilidades
    5. Botones e íconos
    6. Encabezado y navegación
    7. Hero
    8. Flyer (componente)
    9. Abanico de flyers
   10. Secciones (estructura común)
   11. La IA genera / Tú editas
   12. Carrusel de ejemplos
   13. Cómo funciona
   14. Tu marca
   15. Para quién
   16. Llamado a la acción
   17. Pie de página
   18. Movimiento

   Puntos de quiebre: 1139px (abanico deslizable) · 900px (menú móvil)
   799px (carrusel en una columna) · 600px (teléfono) · 380px (teléfono chico)
   ========================================================================== */


/* 1. Fuente
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}


/* 2. Variables
   ========================================================================== */

:root {
  color-scheme: light;

  /* Color */
  --ink: #16161a;
  --ink-hover: #2c2c33;
  --muted: #5c5c66;
  --accent: #ff6a1a;
  --accent-text: #c2410c;
  --blue: #2f4bd8;
  --select: #2f6bff;
  --green: #1f8a4c;
  --surface: #fff;
  --surface-soft: #f6f5f2;
  --surface-orange: #fff1e8;
  --surface-blue: #eef0ff;
  --surface-green: #eaf7ef;
  --line: #efede8;
  --border: #e7e5e0;
  --border-strong: #dad7d0;

  /* Tipografía */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Espaciado y medidas. --container es el ancho útil del contenido; el
     margen lateral (--gutter) se suma aparte. */
  --gutter: 24px;
  --container: 1200px;
  --section-y: 112px;
  --header-h: 80px;
  --pill: 999px;
}

@media (max-width: 900px) {
  :root {
    --section-y: 88px;
    --header-h: 69px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
    --section-y: 64px;
  }
}

@media (max-width: 380px) {
  :root {
    --gutter: 16px;
  }
}


/* 3. Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* :where() deja la especificidad en cero para que cualquier clase la supere. */
:where(ul, ol)[role="list"] {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a,
button,
input {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

svg {
  display: block;
}

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


/* 4. Utilidades
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.text-accent {
  color: var(--accent-text);
}

.eyebrow {
  color: var(--accent-text);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.eyebrow--blue {
  color: var(--blue);
}


/* 5. Botones e íconos
   ========================================================================== */

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  padding: 12px 20px;
  font-size: 0.9375rem;
}

.btn--md {
  padding: 14px 24px;
  font-size: 1rem;
}

.btn--lg {
  padding: 16px 28px;
  font-size: 1.0625rem;
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.icon-btn .icon {
  width: 20px;
  height: 20px;
}

@media (hover: hover) {
  .btn--dark:hover {
    background: var(--ink-hover);
  }

  .btn--light:hover {
    background: #ececf0;
  }

  .btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
  }

  .icon-btn:hover {
    border-color: var(--ink);
  }
}


/* 6. Encabezado y navegación
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  padding-block: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
}

.brand__dot {
  color: var(--accent);
}

.brand__name {
  font-size: 1.1875rem;
  font-weight: 700;
}

.nav__menu {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
}

.nav__links {
  display: flex;
  gap: 28px;
  margin-inline: auto;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav__links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav__login {
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav__toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
}

.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.nav__toggle-bars {
  position: relative;
}

.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__toggle-bars::before {
  transform: translateY(-6px);
}

.nav__toggle-bars::after {
  transform: translateY(6px);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bars {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before {
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after {
  transform: rotate(-45deg);
}

@media (hover: hover) {
  .nav__links a:hover {
    color: var(--ink);
  }

  .nav__login:hover {
    color: var(--muted);
  }
}

@media (max-width: 900px) {
  /* Sin JavaScript el menú queda visible como una fila que envuelve; ocupa
     varios renglones, así que el encabezado deja de quedarse fijo. */
  .site-header:has(.nav:not(.is-ready)) {
    position: static;
  }

  .nav {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .nav__cta {
    order: 2;
    margin-left: auto;
  }

  .nav__toggle {
    order: 3;
  }

  .nav__menu {
    order: 4;
    flex: 1 0 100%;
    flex-wrap: wrap;
    gap: 0 20px;
  }

  .nav__links {
    flex-wrap: wrap;
    gap: 0 20px;
    margin: 0;
  }

  .nav__links a,
  .nav__login {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
  }

  /* Con JavaScript: botón de menú y panel desplegable. */
  .nav.is-ready {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .nav.is-ready .nav__toggle {
    display: inline-grid;
  }

  .nav.is-ready .nav__menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    padding: 4px var(--gutter) 24px;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 24px 40px rgba(22, 22, 26, 0.1);
  }

  .nav.is-ready .nav__menu.is-open {
    display: flex;
  }

  .nav.is-ready .nav__links {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    font-size: 1.0625rem;
    font-weight: 600;
  }

  .nav.is-ready .nav__links a {
    display: flex;
    min-height: 54px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }

  .nav.is-ready .nav__login {
    display: flex;
    justify-content: center;
    min-height: 50px;
    margin-top: 20px;
    border: 1px solid var(--border-strong);
    border-radius: var(--pill);
    font-size: 1rem;
  }
}

@media (max-width: 380px) {
  .nav.is-ready {
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand__name {
    font-size: 1.0625rem;
  }

  .nav__cta {
    padding: 11px 14px;
    font-size: 0.875rem;
  }
}


/* 7. Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
}

/* clip recorta solo a los lados y deja ver el brillo detrás del encabezado. */
@supports (overflow: clip) {
  .hero {
    overflow: visible;
    overflow-x: clip;
  }
}

.hero__glow {
  position: absolute;
  top: -120px;
  left: 50%;
  width: clamp(620px, 160vw, 1100px);
  height: 700px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 30% 45%, rgba(255, 160, 110, 0.28), transparent),
    radial-gradient(closest-side at 70% 40%, rgba(120, 140, 255, 0.22), transparent),
    radial-gradient(closest-side at 50% 75%, rgba(255, 210, 120, 0.18), transparent);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  max-width: calc(960px + 2 * var(--gutter));
  margin-inline: auto;
  padding: 96px var(--gutter) 40px;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: #fff;
  box-shadow: 0 2px 10px rgba(22, 22, 26, 0.05);
  font-size: 0.875rem;
  font-weight: 600;
}

.pill .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.hero__title {
  font-size: clamp(2.25rem, 6.4vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Como bloque, la segunda frase reparte sus renglones por su cuenta y no
   deja una palabra sola al final en pantallas angostas. */
.hero__title .text-accent {
  display: block;
}

.hero__lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.prompt-form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 712px;
  padding: 10px 10px 10px 22px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: #fff;
  box-shadow: 0 10px 40px rgba(22, 22, 26, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prompt-form:focus-within {
  border-color: var(--ink);
  box-shadow: 0 10px 40px rgba(22, 22, 26, 0.12);
}

.prompt-form__input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 1.0625rem;
  text-overflow: ellipsis;
}

.prompt-form__input::placeholder {
  color: #74747e;
  opacity: 1;
}

.prompt-form .btn {
  flex-shrink: 0;
}

.prompt-form__status {
  max-width: 560px;
  margin-top: -10px;
  color: var(--accent-text);
  font-size: 0.875rem;
  font-weight: 600;
}

.prompt-form__status:empty {
  display: none;
}

.hero__note {
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 900px) {
  .hero__inner {
    padding-top: 72px;
  }
}

@media (max-width: 600px) {
  .hero__inner {
    gap: 20px;
    padding-top: 48px;
    padding-bottom: 24px;
  }

  .hero__title {
    line-height: 1.05;
  }

  .hero__lead {
    font-size: 1.0625rem;
  }

  /* El campo pasa a dos renglones: texto arriba, botón a todo lo ancho. */
  .prompt-form {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px;
    border-radius: 28px;
  }

  .prompt-form__input {
    padding: 12px 14px;
  }

  .prompt-form .btn {
    min-height: 52px;
  }

  .prompt-form__status {
    margin-top: -4px;
  }
}


/* 8. Flyer (componente)
   Todo se mide en cqw (porcentaje del ancho del flyer), así la misma pieza
   se ve igual de proporcionada a 170px en el teléfono que a 400px en el
   carrusel. Los colores de cada marca son variables.
   ========================================================================== */

.flyer {
  --flyer-bg: #2b1b5c;
  --flyer-ink: #fff;
  --flyer-blob: #ff8a3d;
  --flyer-blob-2: #6b4bd8;
  --flyer-tag-bg: #ffd8b8;
  --flyer-tag-ink: #2b1b5c;

  container-type: inline-size;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 22px;
  background: var(--flyer-bg);
  color: var(--flyer-ink);
  box-shadow: 0 24px 50px rgba(22, 22, 26, 0.18);
}

.flyer--ritmo {
  --flyer-bg: #0f3d2e;
  --flyer-blob: #c6ff3d;
  --flyer-blob-2: #1f7a55;
  --flyer-tag-bg: #c6ff3d;
  --flyer-tag-ink: #0f3d2e;
}

.flyer--via {
  --flyer-bg: #111827;
  --flyer-blob: #ff4d4d;
  --flyer-blob-2: #374151;
  --flyer-tag-bg: #ff4d4d;
  --flyer-tag-ink: #fff;
}

.flyer--luna {
  --flyer-bg: #fff1e0;
  --flyer-ink: #3a2412;
  --flyer-blob: #f29a3a;
  --flyer-blob-2: #ffd39a;
  --flyer-tag-bg: #3a2412;
  --flyer-tag-ink: #fff1e0;
}

.flyer--moda {
  --flyer-bg: #f4e9ff;
  --flyer-ink: #2a1747;
  --flyer-blob: #b18cff;
  --flyer-blob-2: #e3d1ff;
  --flyer-tag-bg: #2a1747;
  --flyer-tag-ink: #f4e9ff;
}

.flyer > * {
  position: absolute;
}

.flyer__blob {
  aspect-ratio: 1;
  border-radius: 50%;
}

.flyer__blob--a {
  top: -17cqw;
  right: -22cqw;
  width: 80cqw;
  background: var(--flyer-blob);
}

.flyer__blob--b {
  bottom: 15cqw;
  left: -12cqw;
  width: 40cqw;
  background: var(--flyer-blob-2);
}

.flyer__brand {
  top: 7.5cqw;
  left: 7.5cqw;
  font-size: 10px;
  font-size: max(10px, 3.3cqw);
  font-weight: 700;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.flyer__headline {
  top: 40%;
  right: 7.5cqw;
  left: 7.5cqw;
  font-size: 22px;
  font-size: 11cqw;
  font-weight: 800;
  line-height: 1;
}

.flyer__tag {
  bottom: 8cqw;
  left: 7.5cqw;
  padding: 0.5em 0.9em;
  border-radius: var(--pill);
  background: var(--flyer-tag-bg);
  color: var(--flyer-tag-ink);
  font-size: 10px;
  font-size: max(10px, 3.6cqw);
  font-weight: 700;
  white-space: nowrap;
}

.flyer__contact {
  right: 7cqw;
  bottom: 7cqw;
  left: 7cqw;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  font-size: max(10px, 3cqw);
  opacity: 0.8;
  white-space: nowrap;
}

.flyer__badge {
  top: 4.5cqw;
  right: 4.5cqw;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.58em 1em;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 10px;
  font-size: max(10px, 3cqw);
  font-weight: 700;
  white-space: nowrap;
}

.flyer__badge .icon {
  width: 1.1em;
  height: 1.1em;
  color: var(--accent-text);
  stroke-width: 2.4;
}

.flyer__badge--bottom {
  top: auto;
  right: 4.7cqw;
  bottom: 4.7cqw;
  font-size: max(10px, 3.6cqw);
}

/* Versión grande del carrusel: deja sitio al renglón de contacto. */
.flyer--full {
  max-width: 400px;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(22, 22, 26, 0.18);
}

.flyer--full .flyer__headline {
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.flyer--full .flyer__tag {
  bottom: 18cqw;
}

/* Versión “en el editor”: el título va dentro del marco de selección. */
.flyer--edited {
  --flyer-blob: #1fa463;
  --flyer-tag-bg: #fff;
}

.flyer__selection {
  top: 36%;
  right: 4.8cqw;
  left: 4.8cqw;
  padding: 6px;
  border: 2px solid var(--select);
}

.flyer__selection .flyer__headline {
  display: block;
  font-size: 10.4cqw;
  line-height: 0.98;
}

.handle {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--select);
  border-radius: 50%;
  background: #fff;
}

.handle--tl {
  top: -6px;
  left: -6px;
}

.handle--tr {
  top: -6px;
  right: -6px;
}

.handle--bl {
  bottom: -6px;
  left: -6px;
}

.handle--br {
  right: -6px;
  bottom: -6px;
}


/* 9. Abanico de flyers
   ========================================================================== */

.fan {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 20px var(--gutter) 96px;
}

.fan__item {
  flex: 0 0 200px;
  transform: translateY(var(--y, 0)) rotate(var(--r, 0deg));
  transition: transform 0.5s ease;
}

/* Los márgenes automáticos centran la fila y se anulan cuando no cabe. */
.fan__item:first-child {
  margin-left: auto;
}

.fan__item:last-child {
  margin-right: auto;
}

.fan__item:nth-child(1) {
  --r: -8deg;
  --y: 30px;
}

.fan__item:nth-child(2) {
  --r: -4deg;
  --y: 8px;
}

.fan__item:nth-child(4) {
  --r: 4deg;
  --y: 8px;
}

.fan__item:nth-child(5) {
  --r: 8deg;
  --y: 30px;
}

.fan .flyer {
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(22, 22, 26, 0.16);
}

.fan .flyer__headline {
  top: 42%;
}

@media (hover: hover) {
  .fan__item:hover {
    transform: translateY(-10px) rotate(0deg);
  }
}

/* Cuando las cinco piezas no caben, el abanico se vuelve una tira que se
   desliza con el dedo; main.js la deja centrada al cargar. */
@media (max-width: 1139px) {
  .fan {
    max-width: none;
    padding-top: 28px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .fan::-webkit-scrollbar {
    display: none;
  }

  .fan__item {
    scroll-snap-align: center;
  }
}

@media (max-width: 600px) {
  .fan {
    gap: 14px;
    padding-top: 24px;
    padding-bottom: 72px;
  }

  .fan__item {
    flex-basis: 172px;
  }

  .fan__item:nth-child(1) {
    --r: -6deg;
    --y: 18px;
  }

  .fan__item:nth-child(2) {
    --r: -3deg;
    --y: 5px;
  }

  .fan__item:nth-child(4) {
    --r: 3deg;
    --y: 5px;
  }

  .fan__item:nth-child(5) {
    --r: 6deg;
    --y: 18px;
  }

  .fan .flyer {
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(22, 22, 26, 0.16);
  }
}


/* 10. Secciones (estructura común)
   ========================================================================== */

.section {
  padding-block: var(--section-y);
}

.section--tight-top {
  padding-top: 24px;
}

.section--soft {
  background: var(--surface-soft);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-head--center {
  align-items: center;
  text-align: center;
}

.section-title {
  font-size: clamp(1.75rem, 4.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-title--wide {
  max-width: 820px;
}

.lead {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .section-title {
    line-height: 1.1;
  }

  .lead {
    font-size: 1.0625rem;
  }
}


/* 11. La IA genera / Tú editas
   ========================================================================== */

.duo {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.duo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 24px;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
  padding: 36px;
  border-radius: 32px;
}

.panel--orange {
  --bullet: var(--accent-text);
  background: var(--surface-orange);
}

.panel--blue {
  --bullet: var(--blue);
  background: var(--surface-blue);
}

.panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.panel__icon .icon {
  width: 22px;
  height: 22px;
}

.panel__icon--dark {
  background: var(--ink);
  color: var(--accent);
}

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

.panel__step {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

.panel__title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.panel__stage {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-block: 8px;
}

.panel__stage > .flyer {
  max-width: 300px;
}

.panel__stage--editor > .flyer {
  flex: 0 1 250px;
  max-width: 250px;
}

.layers {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 8px;
  min-width: 144px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(22, 22, 26, 0.1);
  font-size: 0.75rem;
}

.layers__title {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
}

.layers__item {
  padding: 6px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.layers__item.is-selected {
  background: var(--surface-blue);
  color: var(--blue);
  font-weight: 600;
}

.layers__swatches {
  display: flex;
  gap: 6px;
  padding-top: 4px;
}

.swatch {
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.swatch--green {
  background: #1fa463;
}

.swatch--orange {
  background: #ff8a3d;
}

.swatch--accent {
  background: var(--accent);
}

.swatch--blue {
  background: var(--select);
}

.swatch--ink {
  background: var(--ink);
}

.swatch--purple {
  background: #2b1b5c;
}

.swatch--peach {
  background: #ffd8b8;
}

.swatch--white {
  border: 1px solid var(--border-strong);
  background: #fff;
}

.dot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.5;
}

.dot-list li {
  display: flex;
  gap: 10px;
}

.dot-list li::before {
  content: "·";
  color: var(--bullet, var(--accent-text));
  font-weight: 800;
}

@media (max-width: 600px) {
  .duo {
    gap: 32px;
  }

  .duo__grid {
    gap: 16px;
  }

  .panel {
    gap: 22px;
    padding: 24px;
    border-radius: 26px;
  }

  .panel__stage > .flyer {
    max-width: 260px;
  }
}

/* En pantallas angostas el panel de capas baja y se acomoda en renglones. */
@media (max-width: 480px) {
  .panel__stage--editor {
    flex-direction: column;
    gap: 16px;
  }

  .panel__stage--editor > .flyer {
    flex: none;
    max-width: 230px;
  }

  .layers {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 290px;
  }

  .layers__title {
    flex-basis: 100%;
  }

  .layers__swatches {
    margin-left: auto;
    padding: 0 4px 0 0;
  }
}


/* 12. Carrusel de ejemplos
   Sin JavaScript los ejemplos quedan uno debajo del otro. main.js agrega
   .is-ready y entonces se apilan en la misma celda y se alternan.
   ========================================================================== */

.examples {
  overflow: hidden;
}

.carousel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "head  arrows"
    "track track"
    "dots  dots";
  align-items: end;
  gap: 44px 24px;
}

.carousel__head {
  grid-area: head;
  max-width: 640px;
}

.carousel__arrows {
  grid-area: arrows;
  display: flex;
  gap: 10px;
}

.carousel__track {
  grid-area: track;
  display: grid;
  gap: 64px;
  min-width: 0;
  touch-action: pan-y;
}

.carousel__dots {
  grid-area: dots;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel:not(.is-ready) .carousel__arrows,
.carousel:not(.is-ready) .carousel__dots {
  display: none;
}

.slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "chat flyer"
    "edit flyer";
  align-items: center;
  gap: 24px 40px;
  min-width: 0;
}

.slide__chat {
  grid-area: chat;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.slide__flyer {
  grid-area: flyer;
  display: flex;
  justify-content: center;
}

.slide__edit {
  grid-area: edit;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  align-self: flex-end;
  max-width: 484px;
  padding: 18px 22px;
  border-radius: 22px 22px 6px 22px;
  background: var(--ink);
  color: #fff;
  font-size: 1.125rem;
  line-height: 1.5;
}

.reply {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.reply__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
}

.reply__avatar .icon {
  width: 18px;
  height: 18px;
}

.slide__edit-label {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Estados con JavaScript */
.carousel.is-ready .carousel__track {
  gap: 0;
}

.carousel.is-ready .slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateX(60px);
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0s linear 0.7s;
}

.carousel.is-ready .slide.is-before {
  transform: translateX(-60px);
}

.carousel.is-ready .slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

/* Indicadores: el botón es más grande que el punto para que se toque fácil. */
.carousel__dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  transition: width 0.4s ease;
}

.carousel__dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: var(--pill);
  background: #cfccc4;
  transition: width 0.4s ease, background-color 0.4s ease;
}

.carousel__dot.is-active {
  width: 48px;
}

.carousel__dot.is-active::before {
  width: 34px;
  background: var(--ink);
}

.carousel__pause {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.carousel__pause .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.carousel__pause .icon--play,
.carousel__pause[data-state="paused"] .icon--pause {
  display: none;
}

.carousel__pause[data-state="paused"] .icon--play {
  display: block;
}

@media (hover: hover) {
  .carousel__pause:hover {
    background: #eae8e2;
    color: var(--ink);
  }
}

/* Una columna: se lee en orden — lo que pides, lo que recibes, lo que editas.
   Las flechas bajan junto a los indicadores, al alcance del pulgar. */
@media (max-width: 799px) {
  .carousel {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "head  head  head"
      "track track track"
      "prev  dots  next";
    align-items: center;
    gap: 32px 8px;
  }

  .carousel__arrows {
    display: contents;
  }

  .carousel__arrow--prev {
    grid-area: prev;
  }

  .carousel__arrow--next {
    grid-area: next;
  }

  .carousel__track {
    gap: 56px;
  }

  .slide {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "chat"
      "flyer"
      "edit";
    align-content: start;
    gap: 24px;
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
  }

  .slide__chat,
  .slide__edit {
    align-self: auto;
  }

  .slide__edit {
    align-items: center;
  }

  .chips {
    justify-content: center;
  }

  .flyer--full {
    max-width: 360px;
  }
}

@media (max-width: 600px) {
  .carousel {
    row-gap: 28px;
  }

  .bubble {
    padding: 16px 20px;
    font-size: 1.0625rem;
  }

  .reply {
    align-items: flex-start;
    font-size: 0.9375rem;
  }

  .reply__avatar {
    margin-top: -6px;
  }

  .flyer--full {
    max-width: 320px;
    border-radius: 24px;
    box-shadow: 0 22px 48px rgba(22, 22, 26, 0.18);
  }

  .icon-btn.carousel__arrow {
    width: 44px;
    height: 44px;
  }
}


/* 13. Cómo funciona
   ========================================================================== */

.steps {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.step__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px;
}

.step__art--orange {
  background: var(--surface-orange);
}

.step__art--blue {
  background: var(--surface-blue);
}

.step__art--green {
  gap: 18px;
  background: var(--surface-green);
}

.step__title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
}

.step__text {
  color: var(--muted);
  line-height: 1.6;
}

/* Ilustración 1: describir */
.art-prompt {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 78%;
}

.art-prompt__field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--pill);
  background: #fff;
  box-shadow: 0 6px 20px rgba(22, 22, 26, 0.08);
  color: var(--muted);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.art-prompt__send {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
}

.art-prompt__options {
  display: flex;
  gap: 10px;
}

.art-prompt__option {
  flex: 1;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
}

.art-prompt__option--forest {
  background: #0f3d2e;
}

.art-prompt__option--accent {
  background: var(--accent);
}

.art-prompt__option--cobalt {
  background: #2f4bff;
}

/* Ilustración 2: editar */
.art-edit__flyer {
  position: relative;
  width: 46%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  background: #2b1b5c;
  box-shadow: 0 12px 30px rgba(22, 22, 26, 0.15);
}

.art-edit__selection {
  position: absolute;
  top: 36%;
  right: 12%;
  left: 12%;
  height: 26%;
  border: 2px solid var(--select);
}

.art-edit__palette {
  position: absolute;
  top: 22%;
  right: 9%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 22, 26, 0.1);
}

.art-edit__palette .swatch {
  width: 22px;
  height: 22px;
}

/* Ilustración 3: publicar */
.phone {
  width: 30%;
  aspect-ratio: 9 / 18;
  padding: 6px;
  border-radius: 22px;
  background: var(--ink);
  box-shadow: 0 12px 30px rgba(22, 22, 26, 0.18);
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 17px;
  background: #0f3d2e;
}

.phone__blob {
  position: absolute;
  top: -12%;
  right: -30%;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #c6ff3d;
}

.phone__line {
  position: absolute;
  top: 45%;
  right: 10%;
  left: 10%;
  height: 8px;
  border-radius: 4px;
  background: #fff;
}

.phone__line--short {
  top: calc(45% + 14px);
  right: auto;
  width: 50%;
}

.formats {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.format {
  padding: 8px 12px;
  border-radius: var(--pill);
  background: #fff;
  box-shadow: 0 4px 14px rgba(22, 22, 26, 0.08);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Tableta: ilustración a la izquierda, texto a la derecha. */
@media (max-width: 900px) {
  .steps__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .step {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    align-items: center;
    gap: 10px 32px;
  }

  .step__art {
    grid-row: 1 / span 2;
  }

  .step__title {
    align-self: end;
  }

  .step__text {
    align-self: start;
  }
}

@media (max-width: 600px) {
  .steps {
    gap: 36px;
  }

  .steps__grid {
    gap: 40px;
  }

  .step {
    display: flex;
    gap: 14px;
  }

  .step__art {
    margin-bottom: 6px;
  }

  .step__title {
    align-self: auto;
    font-size: 1.25rem;
  }

  .step__text {
    align-self: auto;
  }
}


/* 14. Tu marca
   ========================================================================== */

.brand-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  align-items: center;
  gap: 56px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-list .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--green);
  stroke-width: 2.4;
}

.brand-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 572px;
  padding: 32px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(22, 22, 26, 0.08);
}

.brand-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #2b1b5c;
  color: #fff;
  font-size: 1.375rem;
  font-weight: 800;
}

.brand-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.brand-card__meta {
  color: var(--muted);
  font-size: 0.875rem;
}

.brand-card__label {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.brand-card__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-card__group--tight {
  gap: 8px;
}

.brand-card__colors {
  display: flex;
  gap: 10px;
}

.brand-card__colors .swatch {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.brand-card__colors .swatch--white {
  border-color: var(--border);
}

.brand-card__traits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trait {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-soft);
}

.trait__value {
  font-weight: 600;
}

.trait__value--type {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.2;
}

.catalog {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catalog__item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.9375rem;
}

.catalog__price {
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 1031px) {
  .brand-section {
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .brand-section {
    gap: 32px;
  }

  .brand-card {
    gap: 20px;
    padding: 22px;
    border-radius: 24px;
  }

  .trait {
    padding: 14px;
  }
}


/* 15. Para quién
   ========================================================================== */

.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 24px;
}

.audience-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px;
  border-radius: 28px;
}

.audience-card--orange {
  background: var(--surface-orange);
}

.audience-card--blue {
  background: var(--surface-blue);
}

.audience-card__title {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.audience-card__text {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .audience {
    gap: 16px;
  }

  .audience-card {
    padding: 28px 24px;
    border-radius: 24px;
  }

  .audience-card__title {
    font-size: 1.5rem;
    line-height: 1.15;
  }

  .audience-card__text {
    font-size: 1rem;
  }
}


/* 16. Llamado a la acción
   ========================================================================== */

/* El recuadro es un poco más ancho que el resto del contenido, como en el
   diseño original. */
.cta.container {
  max-width: calc(var(--container) + 64px + 2 * var(--gutter));
  padding-bottom: var(--section-y);
}

.cta__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 96px 32px;
  overflow: hidden;
  border-radius: 36px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.cta__box > * {
  position: relative;
}

.cta__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
}

.cta__glow--orange {
  bottom: -300px;
  left: -160px;
  background: radial-gradient(closest-side, rgba(255, 138, 61, 0.45), transparent);
}

.cta__glow--blue {
  top: -300px;
  right: -160px;
  background: radial-gradient(closest-side, rgba(120, 140, 255, 0.4), transparent);
}

.cta__title {
  max-width: 760px;
  font-size: clamp(2.125rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cta__text {
  max-width: 560px;
  color: #c9c9d2;
  font-size: 1.1875rem;
  line-height: 1.55;
  text-wrap: balance;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 600px) {
  .cta__box {
    gap: 18px;
    padding: 64px 24px;
    border-radius: 28px;
  }

  .cta__glow {
    width: 380px;
    height: 380px;
  }

  .cta__glow--orange {
    bottom: -220px;
    left: -140px;
  }

  .cta__glow--blue {
    top: -220px;
    right: -140px;
  }

  .cta__text {
    font-size: 1.0625rem;
  }

  .cta__actions {
    flex-direction: column;
    align-self: stretch;
    width: 100%;
    max-width: 340px;
    margin: 6px auto 0;
  }

  .cta__actions .btn {
    min-height: 54px;
  }
}


/* 17. Pie de página
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 22px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .site-footer__links a:hover {
    color: var(--ink);
  }
}


/* 18. Movimiento
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .carousel.is-ready .slide,
  .carousel.is-ready .slide.is-before {
    transform: none;
  }

  .fan__item:hover {
    transform: translateY(var(--y, 0)) rotate(var(--r, 0deg));
  }
}
