/* Cotorra landing — colorido de la gráfica de tienda (loro + azul vivo).
   Solo la usa index.html. privacidad.html sigue con css/site.css. */
:root {
  --sky: #2bb3fe;
  --blue: #0c99fd;
  --royal: #006ceb;
  --deep: #0059d6;
  --navy: #0b1f5c;
  --navy-ink: #000b64;
  --red: #e53935;
  --red-soft: #ffe9e7;
  --green: #43a047;
  --green-bright: #71de37;
  --green-soft: #e8f8e0;
  --yellow: #fdbc03;
  --yellow-soft: #fff4cc;
  --orange: #f57c00;
  --purple: #7b1fa2;
  --ink: #15213d;
  --ink-soft: #46506b;
  --paper: #f6f9ff;
  --mist: #eaf3ff;
  --white: #ffffff;
  --line: #d8e2f2;
  --max: 70rem;
  --radius: 1.1rem;
  --radius-lg: 1.75rem;
  --shadow: 0 14px 34px rgba(11, 31, 92, 0.12);
  --shadow-lg: 0 24px 60px rgba(0, 11, 100, 0.28);
  --font-display: "Nunito", "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--royal);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--deep);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
}

/* i18n: show only active language (revert = default display for the tag) */
[data-lang] {
  display: none !important;
}

html[data-active-lang="es"] [data-lang="es"],
html[data-active-lang="en"] [data-lang="en"],
html:not([data-active-lang]) [data-lang="es"] {
  display: revert !important;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11, 31, 92, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.75rem;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 11, 100, 0.18);
}

.lang-switch {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  background: var(--mist);
  border: 1px solid var(--line);
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--royal);
  color: var(--white);
  box-shadow: 0 3px 8px rgba(0, 108, 235, 0.35);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(160deg, var(--sky) 0%, var(--royal) 48%, var(--deep) 100%);
  padding: 3rem 0 4.5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  /* curva blanca que recibe la siguiente sección */
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -2.2rem;
  height: 4.5rem;
  background: var(--white);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
}

.blob--red {
  width: 26rem;
  height: 26rem;
  left: -12rem;
  bottom: -12rem;
  background: radial-gradient(circle at 40% 40%, #ff6a5e, var(--red) 70%);
}

.blob--yellow {
  width: 18rem;
  height: 18rem;
  right: -6rem;
  bottom: -7rem;
  background: radial-gradient(circle at 40% 40%, #ffd84d, var(--yellow) 70%);
}

.blob--green {
  width: 14rem;
  height: 14rem;
  right: 8%;
  top: -7rem;
  background: radial-gradient(circle at 40% 40%, #9bf06a, var(--green-bright) 70%);
}

.blob--sky {
  width: 22rem;
  height: 22rem;
  left: 38%;
  top: -14rem;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 70%);
  filter: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.025em;
  max-width: 14ch;
  text-shadow: 0 4px 24px rgba(0, 11, 100, 0.3);
}

.hero__lead {
  margin: 0 0 1.5rem;
  max-width: 38ch;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.92);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(0, 11, 100, 0.2);
}

.pill::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(113, 222, 55, 0.25);
}

/* Composición: tablero detrás, loro delante */
.hero__art {
  position: relative;
  min-height: 31rem;
}

.board-wrap {
  position: absolute;
  right: 0;
  top: 0;
  width: min(58%, 17rem);
  transform: rotate(3deg);
  transform-origin: top right;
  z-index: 1;
}

.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}

.board-card {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 3px solid var(--white);
  box-shadow: 0 8px 18px rgba(0, 11, 100, 0.22);
}

.board-card.is-playing {
  border-color: var(--yellow);
  animation: pulse-play 1.8s ease-in-out infinite;
}

@keyframes pulse-play {
  0%,
  100% {
    box-shadow: 0 8px 18px rgba(0, 11, 100, 0.22), 0 0 0 3px rgba(253, 188, 3, 0.35);
  }
  50% {
    box-shadow: 0 8px 18px rgba(0, 11, 100, 0.22), 0 0 0 9px rgba(253, 188, 3, 0.18);
  }
}

.board-card__photo {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  background: var(--white);
}

.board-card__label {
  padding: 0.3rem 0.3rem 0.4rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--navy);
  background: var(--white);
}

.board-caption {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 11, 100, 0.4);
}

.hero__parrot {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(58%, 18rem);
  aspect-ratio: 372 / 500;
  object-fit: cover;
  border-radius: 46% 54% 44% 56% / 52% 46% 54% 48%;
  box-shadow: var(--shadow-lg), inset 0 0 0 6px rgba(255, 255, 255, 0.55);
  transform: rotate(-4deg);
  z-index: 2;
}

.brand img {
  box-shadow: none;
  border-radius: 0;
}

@media (max-width: 899px) {
  .hero {
    padding-top: 2.25rem;
  }
  .hero__art {
    min-height: 0;
    aspect-ratio: 1 / 1.25;
    max-width: 26rem;
    margin-inline: auto;
    width: 100%;
  }
}

/* ---------- Secciones ---------- */
.section {
  position: relative;
  padding: 4rem 0;
}

.section--white {
  background: var(--white);
}

.section--mist {
  background: var(--mist);
}

.section__head {
  max-width: 52ch;
  margin-bottom: 2.25rem;
}

.section__kicker {
  display: inline-block;
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--royal);
}

.section h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.section__intro {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

/* Pasos */
.steps {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem 1.7rem;
  counter-increment: step;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.step::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.45rem;
  background: var(--step-color, var(--royal));
}

.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background: var(--step-color, var(--royal));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--step-color, var(--royal)) 40%, transparent);
}

.step--red {
  --step-color: var(--red);
}
.step--green {
  --step-color: var(--green);
}
.step--yellow {
  --step-color: var(--yellow);
}
.step--yellow::before {
  color: var(--navy);
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.3rem;
  color: var(--navy);
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Features */
.features {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(11, 31, 92, 0.16);
}

.feature__icon {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 1.1rem;
  background: var(--feature-soft, var(--mist));
  color: var(--feature-color, var(--royal));
  flex-shrink: 0;
}

.feature__icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.feature--blue {
  --feature-color: var(--royal);
  --feature-soft: var(--mist);
}
.feature--urgent {
  --feature-color: var(--red);
  --feature-soft: var(--red-soft);
}
.feature--green {
  --feature-color: var(--green);
  --feature-soft: var(--green-soft);
}
.feature--yellow {
  --feature-color: #b07f00;
  --feature-soft: var(--yellow-soft);
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--navy);
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.note {
  margin: 2.25rem 0 0;
  padding: 1.15rem 1.3rem 1.15rem 1.5rem;
  border-radius: var(--radius);
  background: var(--yellow-soft);
  border-left: 6px solid var(--yellow);
  color: var(--navy);
  max-width: 56ch;
  font-size: 1.05rem;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 54rem;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: 0 6px 18px rgba(11, 31, 92, 0.06);
  transition: box-shadow 0.2s ease;
}

.faq details[open] {
  box-shadow: var(--shadow);
  border-color: #bcd3ff;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
  list-style: none;
  border-radius: var(--radius);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--mist) center / 1rem no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006ceb' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--yellow-soft);
}

.faq details p {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: 3rem 0 2.5rem;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-ink) 100%);
  color: rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  right: -8rem;
  top: -10rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 179, 254, 0.35), rgba(43, 179, 254, 0) 70%);
}

.site-footer a {
  color: #9ed0ff;
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer p {
  margin: 0 0 0.4rem;
}

.site-footer .brand {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.site-footer .small {
  font-size: 0.95rem;
  opacity: 0.85;
}

.link-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: #9ed0ff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.link-button:hover {
  color: var(--white);
}

/* ---------- Créditos (dialog) ---------- */
.credits {
  width: min(100% - 2rem, 32rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 11, 100, 0.4);
  overflow: hidden;
}

.credits::backdrop {
  background: rgba(0, 11, 100, 0.6);
  backdrop-filter: blur(4px);
}

.credits__inner {
  position: relative;
  padding: 2.25rem 1.75rem 2rem;
  text-align: center;
  background:
    radial-gradient(circle at 0% 0%, rgba(43, 179, 254, 0.18), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(253, 188, 3, 0.18), transparent 45%),
    var(--white);
}

.credits__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--mist);
  color: var(--navy);
  cursor: pointer;
}

.credits__close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.credits__close:hover {
  background: var(--line);
}

.credits__logo {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 0.75rem;
}

.credits__kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--royal);
}

.credits__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  line-height: 1.2;
  color: var(--navy);
}

.credits__list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.credits__person {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  background: var(--paper);
  border-left: 5px solid var(--person-color, var(--royal));
}

.credits__person:nth-child(1) {
  --person-color: var(--red);
}
.credits__person:nth-child(2) {
  --person-color: var(--green);
}
.credits__person:nth-child(3) {
  --person-color: var(--yellow);
}

.credits__person strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
}

.credits__role {
  color: var(--ink-soft);
  font-size: 1rem;
}

.credits__bond {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--person-color, var(--royal));
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .board-card.is-playing {
    animation: none;
  }
  .feature,
  .faq summary::after,
  .lang-switch button {
    transition: none;
  }
  .feature:hover {
    transform: none;
  }
}
