/*
 * Página de presentación pública de Collage App (/presentacion/). HTML y CSS estáticos, sin JavaScript.
 * Dirección visual «Álbum de formas», ajustada: uva profundo en la portada y la galería, lectura sobre papel claro.
 * Reglas (docs/presentacion.md): las formas decorativas nunca tocan ni recortan una foto; el coral es solo decoración;
 * el botón es el del editor (teal con arista inferior). Todo es del propio dominio: la política de public/_headers
 * (style-src-elem 'self', font-src 'self', img-src 'self') no cambia.
 */
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/archivo-black.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --deep: #2b1773;
  --uva: #5b34e0;
  --paper: #f7f6fb;
  --lilac: #ece8fa;
  --white: #fbf8ff;
  --ink: #14161c;
  --text-2: #3d4350;
  --on-deep-2: #ece7ff;
  --teal: #0b6e68;
  --teal-key: #064b47;
  --mint: #3dd6c6;
  --mint-key: #1b8f84;
  --sun: #ffb703;
  --coral: #ef476f;
  --tint: #e6f3f2;
  --f-brand: 'Archivo Black', system-ui, sans-serif;
  --f-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: max(clamp(16px, 5vw, 56px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 5vw, 56px), env(safe-area-inset-right, 0px));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--f-body);
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--f-brand);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.in {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

/* El máximo ancho lo da .in; el padding de las bandas es solo vertical. */
.band {
  padding-block: clamp(36px, 7vw, 76px);
}

.band > .in {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
}

.band h2 {
  font-size: clamp(26px, 4.6vw, 40px);
}

.k {
  font: 800 12px/1 var(--f-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Foco visible: blanco con halo uva sobre fondos oscuros, uva sobre claros. */
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #5b34e0;
  outline-offset: 3px;
  border-radius: 6px;
}

.top a:focus-visible,
.top summary:focus-visible,
.hero a:focus-visible,
.gal a:focus-visible,
.final a:focus-visible,
.foot a:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 6px #5b34e0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  background: #fff;
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 800;
}

.skip:focus {
  top: 12px;
}

/* Botones: el del editor, con la arista inferior como una tecla. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font: 400 16px/1.1 var(--f-brand);
  text-align: center;
  text-decoration: none;
}

.btn.sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  white-space: nowrap;
}

.btn.mint {
  background: var(--mint);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--mint-key);
}

.btn.teal {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 0 var(--teal-key);
}

.btn.line {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  box-shadow: 0 4px 0 rgba(251, 248, 255, 0.3);
}

.btn.line.dk {
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 4px 0 rgba(20, 22, 28, 0.25);
}

/* ---------- Cabecera ---------- */
.top {
  position: relative;
  z-index: 5;
  background: var(--deep);
  color: var(--white);
}

.top .in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
  min-height: 44px;
}

.brand img {
  height: 32px;
  width: auto;
}

.nav-desk {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px clamp(10px, 2vw, 22px);
  font-size: 14px;
  font-weight: 700;
}

.nav-desk a {
  padding: 8px 2px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.nav-desk a:hover {
  border-bottom-color: var(--mint);
}

.menu-m {
  display: none;
}

.menu-m summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 2px solid var(--white);
  border-radius: 10px;
  font: 800 14px/1 var(--f-body);
  list-style: none;
  cursor: pointer;
}

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

.menu-m nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  border-bottom: 4px solid var(--deep);
}

.menu-m nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 var(--gutter-r) 0 var(--gutter);
  font: 800 17px/1.2 var(--f-body);
  text-decoration: none;
  border-top: 1px solid #dcd8ee;
}

.menu-m nav a:last-child {
  background: var(--tint);
  color: var(--teal-key);
}

.menu-m nav a:focus-visible {
  outline-color: var(--uva);
  box-shadow: none;
  outline-offset: -3px;
}

/* ---------- Portada ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: var(--white);
}

.hero > .in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  padding-block: clamp(28px, 5vw, 56px) clamp(52px, 7vw, 84px);
}

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

.hero .k {
  color: var(--mint);
}

.hero h1 {
  font-size: clamp(32px, 5.3vw, 54px);
  letter-spacing: -0.005em;
}

.hero h1 em {
  font-style: normal;
  color: var(--sun);
}

.hero .lead {
  max-width: 48ch;
  font-size: clamp(16px, 1.9vw, 19px);
  color: #f1edff;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.micro {
  font-size: 14px;
  color: var(--on-deep-2);
}

.art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.fm {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 5px solid var(--white);
}

.fm.wide {
  grid-column: 1 / -1;
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--coral);
}

.fm.arch {
  border-radius: 999px 999px 14px 14px;
  box-shadow: 6px 6px 0 var(--sun);
}

.fm.soft {
  border-radius: 30px;
  box-shadow: 6px 6px 0 var(--mint);
}

.tag-ej {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--on-deep-2);
}

/* Dos formas sueltas en las esquinas de la portada y el borde festoneado: todo el confeti de la página. */
.deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.d1 {
  left: -26px;
  bottom: -26px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--coral);
}

.d2 {
  right: -18px;
  top: -18px;
  width: 0;
  height: 0;
  border-left: 44px solid transparent;
  border-right: 44px solid transparent;
  border-bottom: 76px solid var(--mint);
  transform: rotate(18deg);
}

.edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 26px;
  background: radial-gradient(circle at 13px 26px, var(--paper) 0 12px, transparent 12.5px) 0 0 / 26px 26px repeat-x;
}

/* ---------- Qué es ---------- */
.what .cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
}

.what .cols > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 4px solid var(--ink);
}

.what .cols h3 {
  font-size: 17px;
}

.what .cols p,
.how li p {
  color: var(--text-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.adv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 99px;
  font-size: 14.5px;
  font-weight: 700;
}

.adv::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.adv:nth-child(2)::before {
  background: var(--sun);
}

.adv:nth-child(3)::before {
  background: var(--coral);
}

.adv:nth-child(4)::before {
  background: var(--uva);
}

/* ---------- Cómo funciona ---------- */
.how {
  background: var(--lilac);
}

.how .row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(20px, 5vw, 64px);
  align-items: center;
}

.how ol {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.how li > b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--uva);
  color: #fff;
  font: 400 18px/1 var(--f-brand);
}

.how li h3 {
  margin-bottom: 4px;
  font-size: 20px;
}

.how li.more {
  display: block;
}

.shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.phone {
  max-width: 280px;
  overflow: hidden;
  background: #fff;
  border: 6px solid var(--ink);
  border-radius: 30px;
  box-shadow: 8px 8px 0 var(--sun);
}

.shot figcaption {
  max-width: 30ch;
  font-size: 13px;
  text-align: center;
  color: var(--text-2);
}

/* ---------- Galería ---------- */
.gal {
  background: var(--deep);
  color: var(--white);
}

.gal .k {
  color: var(--mint);
}

.gal h2 {
  margin-top: 10px;
}

.cols-g {
  column-gap: clamp(14px, 2.4vw, 24px);
  columns: 3 220px;
}

.card-g {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 clamp(14px, 2.4vw, 24px);
  break-inside: avoid;
}

.card-g.span {
  column-span: all;
}

.card-g.span .fm {
  max-width: 760px;
}

.card-g .fm {
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--mint);
}

.card-g:nth-child(3n + 2) .fm {
  box-shadow: 5px 5px 0 var(--sun);
}

.card-g:nth-child(3n) .fm {
  box-shadow: 5px 5px 0 var(--coral);
}

.card-g figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  color: #f1edff;
}

.card-g figcaption b {
  color: #fff;
}

.gal .note {
  max-width: 70ch;
  padding-left: 12px;
  border-left: 5px solid var(--sun);
  font-size: 14.5px;
  color: #f1edff;
}

/* ---------- Funciones ---------- */
.fgroup {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fgroup > h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 19px;
}

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

.fc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
}

.fc h3 {
  font-size: 17px;
}

.fc p {
  font-size: 14.5px;
  color: var(--text-2);
}

.st {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 99px;
  font: 800 12px/1 var(--f-body);
  white-space: nowrap;
}

.st.ok {
  background: #d3ece9;
  color: #064b47;
}

.st.dev {
  background: #fff0c2;
  color: #6b4500;
}

.st.fut {
  background: #e8e2fb;
  color: #3a1fa8;
}

/* ---------- Gratis y Premium ---------- */
.plan {
  background: var(--lilac);
}

.pcols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
}

.pbox {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 3px solid var(--ink);
  border-radius: 18px;
}

.pbox.free {
  background: var(--tint);
  box-shadow: 7px 7px 0 var(--teal);
}

.pbox.prem {
  background: #fff;
  border-style: dashed;
  box-shadow: 7px 7px 0 var(--uva);
}

.pbox h3 {
  font-size: 24px;
}

.pbox ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pbox li {
  position: relative;
  padding-left: 26px;
}

.pbox li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--teal);
}

.pbox.prem li::before {
  border-radius: 50%;
  background: var(--uva);
}

.pbox .small {
  font-size: 14px;
  color: var(--text-2);
}

/* ---------- Acerca y preguntas ---------- */
.acols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 5vw, 60px);
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-text p {
  max-width: 60ch;
  color: var(--text-2);
}

.faq {
  display: flex;
  flex-direction: column;
}

.faq h2 {
  margin-bottom: 12px;
  font-size: clamp(22px, 3.4vw, 30px);
}

details.q {
  padding: 14px 0;
  border-top: 2px solid var(--ink);
}

details.q:last-of-type {
  border-bottom: 2px solid var(--ink);
}

details.q summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  font: 800 17px/1.35 var(--f-body);
  list-style: none;
  cursor: pointer;
}

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

details.q summary::after {
  content: '+';
  flex: none;
  font: 400 26px/1 var(--f-brand);
  color: var(--uva);
}

details.q[open] summary::after {
  content: '–';
}

details.q p {
  max-width: 60ch;
  padding-top: 8px;
  color: var(--text-2);
}

/* ---------- Cierre y pie ---------- */
.final {
  background: var(--deep);
  color: var(--white);
  text-align: center;
  padding-block: clamp(28px, 5vw, 48px);
}

.final > .in {
  align-items: center;
}

.final h2 {
  max-width: 20ch;
}

.foot {
  background: var(--ink);
  color: #e1e4ea;
  font-size: 13.5px;
}

.foot .in {
  padding-block: 20px;
}

/* ---------- Móvil ---------- */
@media (max-width: 720px) {
  html {
    scroll-padding-top: 68px;
  }

  .nav-desk {
    display: none;
  }

  .menu-m {
    display: block;
  }

  .top .in {
    gap: 10px;
  }

  .brand img {
    height: 26px;
  }

  .top .btn.sm {
    margin-left: auto;
    padding: 0 12px;
    font-size: 13px;
  }

  .top .menu-m summary {
    padding: 0 10px;
  }

  .hero > .in,
  .what .cols,
  .fgrid,
  .pcols,
  .acols,
  .how .row {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(32px, 9.4vw, 44px);
  }

  .d1 {
    left: -24px;
    bottom: -24px;
    width: 80px;
    height: 80px;
  }

  .d2 {
    display: none;
  }

  .cta .btn {
    flex: 1 1 auto;
  }

  .cols-g {
    columns: 2 150px;
  }
}

@media print {
  .top,
  .hero,
  .gal,
  .final,
  .foot,
  .how,
  .plan {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
