/*
 * Web pública de weddo. Mismos tokens que la aplicación (src/index.css):
 * lavanda para el acento, fosforo para los datos, grafito para el texto.
 */

:root {
  /* Marca weddo: negro, crema cálido, degradados dorados y verde fosforito */
  --tinta: #0f0f0d;
  --grafito-900: #0f0f0d;
  --grafito-800: #1c1b18;
  --grafito-700: #3b3934;
  --grafito-500: #76726a;
  --grafito-300: #b4afa5;
  --grafito-200: #e5e1d8;
  --grafito-100: #efece5;
  --nube-50: #fcfbf8;
  --nube-100: #f6f4ef;
  --nube-200: #eeebe4;
  --blanco: #ffffff;
  --acento-50: #f8f6f1;
  --acento-100: #efece5;
  --acento-200: #e2ddd2;
  --acento-300: #cfc8b9;
  --acento-400: #0f0f0d;
  --acento-600: #2a2925;
  --acento-700: #0f0f0d;
  --fosforo-100: #f1fcdc;
  --fosforo-200: #e0f8b0;
  --fosforo-300: #b8f23e;
  --fosforo-700: #3f6a00;
  --sol: radial-gradient(120% 90% at 85% 0%, #fff6d1 0%, transparent 55%),
    radial-gradient(90% 120% at 10% 100%, #f3c843 0%, transparent 62%),
    linear-gradient(135deg, #fbf0c8 0%, #f5d466 55%, #fae7a0 100%);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --titulo: "Instrument Serif", "Times New Roman", serif;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;

  --radio: 20px;
  --radio-sm: 12px;
  --ancho: 1180px;
  --sombra: 0 1px 2px rgb(15 15 13 / 0.04), 0 8px 24px rgb(15 15 13 / 0.06);
  --sombra-alta: 0 2px 4px rgb(15 15 13 / 0.04), 0 24px 60px rgb(15 15 13 / 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--nube-100);
  color: var(--grafito-900);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--tinta);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 24px;
}

.solo-lectores {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.saltar {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--tinta);
  color: var(--blanco);
  font-weight: 600;
  text-decoration: none;
}

.saltar:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--acento-400);
  outline-offset: 3px;
}

/* ---------- Botones ---------- */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.boton:hover {
  transform: translateY(-1px);
}

.boton-negro {
  background: var(--tinta);
  color: var(--blanco);
}

.boton-negro:hover {
  background: var(--grafito-700);
}

.boton-acento {
  background: var(--acento-400);
  color: var(--tinta);
}

.boton-acento:hover {
  background: var(--acento-300);
}

.boton-fosforo {
  background: var(--fosforo-300);
  color: var(--tinta);
}

.boton-fosforo:hover {
  background: var(--fosforo-200);
}

.boton-borde {
  border-color: var(--grafito-200);
  background: var(--blanco);
  color: var(--tinta);
}

.boton-borde:hover {
  border-color: var(--tinta);
}

.boton-pequeño {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.875rem;
}

/* ---------- Cabecera ---------- */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgb(246 244 239 / 0.85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: border-color 0.2s ease;
}

.cabecera.con-borde {
  border-bottom-color: var(--grafito-200);
}

.cabecera-fila {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.marca {
  display: flex;
  flex-shrink: 0;
}

.marca img {
  height: 34px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--grafito-700);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--blanco);
  color: var(--tinta);
}

.cabecera-acciones {
  display: flex;
  gap: 8px;
}

.boton-menu {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: var(--blanco);
  color: var(--tinta);
  cursor: pointer;
}

.boton-menu svg {
  margin: auto;
}

@media (max-width: 1080px) {
  .boton-menu {
    display: flex;
    margin-left: 0;
  }

  .cabecera-acciones {
    margin-left: auto;
  }

  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--grafito-200);
    background: var(--nube-100);
    box-shadow: 0 20px 40px rgb(15 15 13 / 0.08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }

  .nav a {
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: var(--radio-sm);
  }

  .menu-abierto .nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

}

@media (max-width: 520px) {

  .marca img {
    height: 30px;
  }
}

/* ---------- Bloques comunes ---------- */

.seccion {
  padding: 112px 0;
}

.seccion-blanca {
  background: var(--blanco);
}

.seccion-negra {
  background: var(--tinta);
  color: var(--grafito-300);
}

.seccion-negra h2,
.seccion-negra h3 {
  color: var(--blanco);
}

.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--acento-100);
  color: var(--acento-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.etiqueta-fosforo {
  background: var(--fosforo-100);
  color: var(--fosforo-700);
}

.seccion-negra .etiqueta {
  background: rgb(160 199 254 / 0.16);
  color: var(--acento-300);
}

.intro {
  max-width: 720px;
  margin-bottom: 56px;
}

.intro-centro {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.intro p {
  margin-top: 18px;
  color: var(--grafito-500);
  font-size: 1.12rem;
}

.seccion-negra .intro p {
  color: var(--grafito-300);
}

.rejilla {
  display: grid;
  gap: 20px;
}

.rejilla-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rejilla-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rejilla-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .rejilla-3,
  .rejilla-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .seccion {
    padding: 72px 0;
  }

  .contenedor {
    padding: 0 16px;
  }

  .rejilla-2,
  .rejilla-3,
  .rejilla-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .intro {
    margin-bottom: 36px;
  }
}

.tarjeta {
  position: relative;
  padding: 28px;
  border-radius: var(--radio);
  background: var(--blanco);
  box-shadow: var(--sombra);
}

.seccion-blanca .tarjeta {
  background: var(--nube-100);
  box-shadow: none;
}

.tarjeta p {
  margin-top: 10px;
  color: var(--grafito-500);
  font-size: 0.97rem;
}

.icono {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--acento-100);
  color: var(--acento-700);
}

.icono-fosforo {
  background: var(--fosforo-200);
  color: var(--fosforo-700);
}

.icono-negro {
  background: var(--tinta);
  color: var(--fosforo-300);
}

.lista-check {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.lista-check li {
  position: relative;
  padding-left: 30px;
  color: var(--grafito-700);
  font-size: 0.97rem;
}

.lista-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--fosforo-300) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f0f0d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.seccion-negra .lista-check li {
  color: var(--grafito-300);
}

.enlace-flecha {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--acento-700);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.enlace-flecha::after {
  content: "→";
  transition: transform 0.15s ease;
}

.enlace-flecha:hover::after {
  transform: translateX(3px);
}

.migas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--grafito-500);
  font-size: 0.88rem;
}

.migas li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--grafito-300);
}

.migas a {
  text-decoration: none;
}

.migas a:hover {
  color: var(--tinta);
}

/* ---------- Portada ---------- */

.portada {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}

.portada-texto {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.portada .subtitulo {
  max-width: 660px;
  margin: 24px auto 0;
  color: var(--grafito-500);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.portada-botones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.portada-notas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--grafito-500);
  font-size: 0.88rem;
  font-weight: 600;
}

.portada-notas li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--acento-400);
  vertical-align: 1px;
}

.portada-notas li:nth-child(2)::before {
  background: var(--fosforo-300);
}

/* ---------- Franja de cifras ---------- */

.franja {
  border-top: 1px solid var(--grafito-200);
  border-bottom: 1px solid var(--grafito-200);
}

.franja ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.franja li {
  padding: 28px 24px;
  border-left: 1px solid var(--grafito-200);
}

.franja li:first-child {
  border-left: 0;
}

.franja strong {
  display: block;
  color: var(--tinta);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.franja span {
  color: var(--grafito-500);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .franja ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .franja li:nth-child(3) {
    border-left: 0;
  }

  .franja li:nth-child(n + 3) {
    border-top: 1px solid var(--grafito-200);
  }

  .franja li {
    padding: 22px 16px;
  }
}

/* ---------- Funciones ---------- */

.funciones-grupo + .funciones-grupo {
  margin-top: 48px;
}

.funciones-grupo > h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--grafito-500);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.funciones-grupo > h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--grafito-200);
}

.funcion {
  display: flex;
  flex-direction: column;
  scroll-margin-top: 100px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.funcion:target {
  box-shadow: 0 0 0 3px var(--acento-400), var(--sombra);
}

.funcion .enlace-flecha {
  margin-top: auto;
  padding-top: 16px;
}

/* ---------- Destacados ---------- */

.destacado {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 64px;
}

.destacado + .destacado {
  margin-top: 112px;
}

.destacado.invertido .destacado-texto {
  order: 2;
}

.destacado-texto p {
  margin-top: 18px;
  color: var(--grafito-500);
  font-size: 1.08rem;
}

.destacado-visual {
  padding: 28px;
  border-radius: 28px;
  background: var(--acento-100);
}

.destacado-visual.fosforo {
  background: var(--fosforo-200);
}

.destacado-visual.oscuro {
  background: var(--grafito-900);
}

.panel {
  padding: 22px;
  border-radius: 18px;
  background: var(--blanco);
  box-shadow: var(--sombra);
  font-size: 0.85rem;
}

.panel + .panel {
  margin-top: 14px;
}

.panel-titulo {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--tinta);
  font-weight: 700;
}

.fila-dato {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--grafito-100);
  color: var(--grafito-700);
}

.fila-dato b {
  color: var(--tinta);
  font-variant-numeric: tabular-nums;
}

.total-fosforo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--fosforo-300);
  color: var(--tinta);
  font-weight: 700;
}

.total-fosforo strong {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

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

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--nube-100);
  color: var(--grafito-700);
  font-size: 0.75rem;
  font-weight: 600;
}

.chip-acento {
  background: var(--acento-100);
  color: var(--acento-700);
}

.chip-fosforo {
  background: var(--fosforo-200);
  color: var(--fosforo-700);
}

@media (max-width: 900px) {
  .destacado {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .destacado.invertido .destacado-texto {
    order: 0;
  }

  .destacado + .destacado {
    margin-top: 72px;
  }

  .destacado-visual {
    padding: 16px;
  }
}

/* ---------- Eventos ---------- */

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

.evento h3 {
  font-size: 1.35rem;
}

.evento .lista-check {
  margin-bottom: 4px;
}

.evento-cabecera {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.evento-cabecera .chip {
  flex-shrink: 0;
}

/* ---------- Para quién ---------- */

.perfil {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radio);
  background: var(--grafito-800);
}

.perfil h3 {
  font-size: 1.3rem;
}

.perfil p {
  margin-top: 10px;
  font-size: 0.97rem;
}

.perfil .icono {
  background: rgb(160 199 254 / 0.18);
  color: var(--acento-300);
}

.perfil:nth-child(2) .icono {
  background: rgb(218 254 164 / 0.16);
  color: var(--fosforo-300);
}

/* ---------- Plantillas: escaparate ---------- */

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

.escaparate a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--tinta);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.escaparate a:hover .papel {
  transform: translateY(-4px) rotate(-0.6deg);
}

@media (max-width: 900px) {
  .escaparate {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Papelería: cada plantilla se dibuja con HTML para que sea indexable */

.papel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 7;
  padding: 10% 9%;
  border-radius: 6px;
  background: #fffdf8;
  color: #2c2a26;
  font-family: var(--serif);
  text-align: center;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 14px 30px rgb(15 15 13 / 0.1);
  overflow: hidden;
  transition: transform 0.25s ease;
  container-type: inline-size;
}

.papel.apaisado {
  aspect-ratio: 7 / 5;
}

.papel.cuadrado {
  aspect-ratio: 1;
}

.papel.alto {
  aspect-ratio: 1 / 1.45;
}

.papel.tarjeta-mesa {
  aspect-ratio: 4 / 3;
}

.papel.estrecho {
  aspect-ratio: 3 / 1.4;
  padding: 6%;
}

.papel .guion {
  font-family: var(--script);
  font-size: 15cqi;
  line-height: 1.05;
}

.papel .titulo-serif {
  font-size: 11cqi;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.papel .mayus {
  font-family: var(--sans);
  font-size: 3.4cqi;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.papel .pequeño {
  font-size: 5cqi;
  line-height: 1.35;
}

.papel .linea {
  width: 22%;
  height: 1px;
  margin: 6% auto;
  background: currentColor;
  opacity: 0.4;
}

.papel .numero {
  font-size: 46cqi;
  font-weight: 400;
  line-height: 0.9;
}

.papel .plato {
  margin-top: 4%;
  font-size: 5.2cqi;
  line-height: 1.3;
}

.papel .plato b {
  display: block;
  font-family: var(--sans);
  font-size: 2.8cqi;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* Estilo clásico: crema, serif y doble filete */
.estilo-clasico {
  background: #fbf7ef;
  color: #3b342b;
}

.estilo-clasico::before {
  content: "";
  position: absolute;
  inset: 4.5%;
  border: 1px solid rgb(59 52 43 / 0.35);
  outline: 1px solid rgb(59 52 43 / 0.2);
  outline-offset: -6px;
  pointer-events: none;
}

/* Estilo minimal: blanco y negro, sans */
.estilo-minimal {
  background: #ffffff;
  color: #111;
  font-family: var(--sans);
}

.estilo-minimal .titulo-serif {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.estilo-minimal .numero {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.06em;
}

/* Estilo weddo: lavanda y fosforo */
.estilo-weddo {
  background: var(--acento-400);
  color: var(--tinta);
  font-family: var(--sans);
}

.estilo-weddo .titulo-serif,
.estilo-weddo .numero {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.estilo-weddo::after {
  content: "";
  position: absolute;
  right: -9%;
  bottom: -7%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 24%;
  background: var(--fosforo-300);
}

/* Estilo botánico: verde salvia y hojas */
.estilo-botanico {
  background: #f1f3ec;
  color: #34442f;
}

.estilo-botanico::before,
.estilo-botanico::after {
  content: "";
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%237b9168' stroke-width='1.4'%3E%3Cpath d='M8 92C30 70 52 46 92 8'/%3E%3Cpath d='M30 70c-10-2-16-10-16-20 10 0 17 8 16 20zM30 70c2-10 10-16 20-16 0 10-8 17-20 16zM50 48c-10-2-16-10-16-20 10 0 17 8 16 20zM50 48c2-10 10-16 20-16 0 10-8 17-20 16zM70 28c-9-2-14-9-14-18 9 0 15 7 14 18zM70 28c2-9 9-14 18-14 0 9-7 15-18 14z' fill='%23a9bd96' fill-opacity='.35'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}

.estilo-botanico::before {
  top: -6%;
  left: -8%;
  transform: rotate(180deg) scaleX(-1);
}

.estilo-botanico::after {
  right: -8%;
  bottom: -6%;
}

.apaisado.estilo-botanico::before,
.apaisado.estilo-botanico::after,
.estrecho.estilo-botanico::before,
.estrecho.estilo-botanico::after {
  width: 24%;
}

.estilo-botanico .numero + .guion {
  margin-bottom: 8%;
}

/* Estilo terracota: mediterráneo */
.estilo-terracota {
  background: #f6ebe1;
  color: #8a3f22;
}

.estilo-terracota::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e9c9ae;
  transform: translateX(-50%);
  opacity: 0.6;
}

.papel > * {
  position: relative;
  z-index: 1;
}

/* Plan de mesas en miniatura */
.mini-plan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5cqi 4cqi;
  width: 100%;
  margin-top: 6%;
  text-align: left;
}

.mini-plan div {
  font-size: 3.2cqi;
  line-height: 1.45;
}

.mini-plan b {
  display: block;
  margin-bottom: 1cqi;
  font-family: var(--sans);
  font-size: 2.6cqi;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Plantillas: catálogo ---------- */

.filtros {
  position: sticky;
  top: 72px;
  z-index: 20;
  margin-bottom: 48px;
  padding: 12px 0;
  background: rgb(246 244 239 / 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.filtros ul {
  display: flex;
  scroll-padding: 0 16px;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.filtros ul::-webkit-scrollbar {
  display: none;
}

.filtros a {
  display: block;
  padding: 9px 16px;
  border: 1.5px solid var(--grafito-200);
  border-radius: 999px;
  background: var(--blanco);
  color: var(--grafito-700);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.filtros a:hover {
  border-color: var(--tinta);
  color: var(--tinta);
}

.filtros a.activo {
  border-color: var(--tinta);
  background: var(--tinta);
  color: var(--blanco);
}

.categoria {
  scroll-margin-top: 72px;
}

.categoria + .categoria {
  margin-top: 96px;
}

.categoria-cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: 28px;
}

.categoria-cabecera > div {
  max-width: 660px;
}

.categoria-cabecera p {
  margin-top: 10px;
  color: var(--grafito-500);
}

.categoria-cabecera h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

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

.plantillas.cuatro {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plantilla {
  margin: 0;
}

.plantilla-escena {
  display: grid;
  place-items: center;
  padding: 28px;
  border-radius: var(--radio);
  background: var(--nube-200);
}

.plantilla-escena .papel {
  width: 100%;
}

.plantilla-escena .papel.estrecho,
.plantilla-escena .papel.tarjeta-mesa {
  width: 82%;
}

.plantilla figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.plantilla figcaption strong {
  display: block;
  color: var(--tinta);
  font-size: 0.97rem;
}

.plantilla figcaption span {
  color: var(--grafito-500);
  font-size: 0.85rem;
}

@media (max-width: 980px) {
  .plantillas,
  .plantillas.cuatro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .plantillas,
  .plantillas.cuatro {
    grid-template-columns: minmax(0, 1fr);
  }

  .plantilla-escena {
    padding: 24px 40px;
  }
}

/* ---------- Web de boda ---------- */

.navegador {
  border-radius: 16px;
  background: var(--blanco);
  box-shadow: var(--sombra-alta);
  overflow: hidden;
}

.navegador-barra {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: var(--nube-200);
}

.navegador-barra i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grafito-300);
}

.navegador-barra span {
  margin-left: 10px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--blanco);
  color: var(--grafito-500);
  font-size: 0.7rem;
  font-weight: 600;
}

.sitio {
  container-type: inline-size;
  font-family: var(--serif);
}

.sitio-nav {
  display: flex;
  justify-content: center;
  gap: 4.5cqi;
  padding: 3cqi 0;
  font-family: var(--sans);
  font-size: 1.8cqi;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sitio-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 46cqi;
  padding: 6cqi;
  text-align: center;
}

.sitio-hero .guion {
  font-family: var(--script);
  font-size: 11cqi;
  line-height: 1;
}

.sitio-hero .titulo-serif {
  font-size: 9cqi;
  font-weight: 500;
  line-height: 1;
}

.sitio-hero .mayus {
  margin-top: 2.5cqi;
  font-family: var(--sans);
  font-size: 1.9cqi;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.sitio-cuenta {
  display: flex;
  justify-content: center;
  gap: 3cqi;
  margin-top: 4cqi;
  font-family: var(--sans);
}

.sitio-cuenta div {
  min-width: 9cqi;
  font-size: 1.5cqi;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sitio-cuenta b {
  display: block;
  font-size: 4.4cqi;
  letter-spacing: -0.02em;
}

.sitio-bloques {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2cqi;
  padding: 0 5cqi 5cqi;
}

.sitio-bloques div {
  padding: 3cqi;
  border-radius: 1.4cqi;
  font-size: 1.9cqi;
  line-height: 1.4;
}

.sitio-bloques b {
  display: block;
  margin-bottom: 0.8cqi;
  font-family: var(--sans);
  font-size: 1.5cqi;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sitio-boton {
  display: inline-block;
  margin-top: 3.5cqi;
  padding: 1.6cqi 4cqi;
  border-radius: 99px;
  font-family: var(--sans);
  font-size: 1.7cqi;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sitio-clasico {
  background: #fbf7ef;
  color: #3b342b;
}

.sitio-clasico .sitio-bloques div {
  border: 1px solid rgb(59 52 43 / 0.2);
}

.sitio-clasico .sitio-boton {
  background: #3b342b;
  color: #fbf7ef;
}

.sitio-minimal {
  background: #fff;
  color: #111;
  font-family: var(--sans);
}

.sitio-minimal .titulo-serif {
  font-family: var(--sans);
  font-size: 10cqi;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.sitio-minimal .sitio-hero {
  align-items: flex-start;
  text-align: left;
}

.sitio-minimal .sitio-cuenta {
  justify-content: flex-start;
}

.sitio-minimal .sitio-bloques div {
  background: #f2f2f2;
}

.sitio-minimal .sitio-boton {
  background: #111;
  color: #fff;
}

.sitio-weddo {
  background: var(--acento-400);
  color: var(--tinta);
  font-family: var(--sans);
}

.sitio-weddo .titulo-serif {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.sitio-weddo .sitio-bloques div {
  background: rgb(255 255 255 / 0.55);
}

.sitio-weddo .sitio-bloques div:nth-child(2) {
  background: var(--fosforo-300);
}

.sitio-weddo .sitio-boton {
  background: var(--tinta);
  color: var(--fosforo-300);
}

.sitio-botanico {
  background: #f1f3ec;
  color: #34442f;
}

.sitio-botanico .sitio-hero {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%237b9168' stroke-width='1.2'%3E%3Cpath d='M8 92C30 70 52 46 92 8'/%3E%3Cpath d='M30 70c-10-2-16-10-16-20 10 0 17 8 16 20zM30 70c2-10 10-16 20-16 0 10-8 17-20 16zM50 48c-10-2-16-10-16-20 10 0 17 8 16 20zM50 48c2-10 10-16 20-16 0 10-8 17-20 16zM70 28c-9-2-14-9-14-18 9 0 15 7 14 18zM70 28c2-9 9-14 18-14 0 9-7 15-18 14z' fill='%23a9bd96' fill-opacity='.35'/%3E%3C/svg%3E") left -4cqi bottom -4cqi / 22cqi no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%237b9168' stroke-width='1.2'%3E%3Cpath d='M8 92C30 70 52 46 92 8'/%3E%3Cpath d='M30 70c-10-2-16-10-16-20 10 0 17 8 16 20zM30 70c2-10 10-16 20-16 0 10-8 17-20 16zM50 48c-10-2-16-10-16-20 10 0 17 8 16 20zM50 48c2-10 10-16 20-16 0 10-8 17-20 16zM70 28c-9-2-14-9-14-18 9 0 15 7 14 18zM70 28c2-9 9-14 18-14 0 9-7 15-18 14z' fill='%23a9bd96' fill-opacity='.35'/%3E%3C/svg%3E") right -4cqi top -4cqi / 22cqi no-repeat;
}

.sitio-botanico .sitio-bloques div {
  background: #e3e8db;
}

.sitio-botanico .sitio-boton {
  background: #34442f;
  color: #f1f3ec;
}

.sitio-terracota {
  background: #f6ebe1;
  color: #8a3f22;
}

.sitio-terracota .sitio-hero {
  background: radial-gradient(circle at 50% 120%, #e9c9ae 0 34cqi, transparent 34.2cqi);
}

.sitio-terracota .sitio-bloques div {
  background: #efd9c6;
}

.sitio-terracota .sitio-boton {
  background: #8a3f22;
  color: #f6ebe1;
}

.web-plantilla h3 {
  margin-top: 20px;
}

.web-plantilla p {
  margin-top: 6px;
  color: var(--grafito-500);
  font-size: 0.95rem;
}

.web-plantilla .chips {
  margin-top: 12px;
}

/* Bloques de la web de boda */

.bloque-web {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.bloque-web .icono {
  flex-shrink: 0;
  margin: 0;
}

.bloque-web h3 {
  font-size: 1.05rem;
}

.bloque-web p {
  margin-top: 4px;
}

/* ---------- Pasos ---------- */

.pasos {
  counter-reset: paso;
}

.paso {
  counter-increment: paso;
}

.paso::before {
  content: counter(paso, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  color: var(--acento-600);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* ---------- Preguntas frecuentes ---------- */

.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--grafito-200);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  color: var(--tinta);
  font-size: 1.1rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "+";
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--acento-100);
  color: var(--acento-700);
  font-size: 1.3rem;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding-bottom: 24px;
  color: var(--grafito-500);
}

/* ---------- Llamada final ---------- */

.llamada {
  position: relative;
  padding: 80px 48px;
  border-radius: 32px;
  background: var(--acento-400);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.llamada h2 {
  max-width: 760px;
  margin: 0 auto;
}

.llamada p {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--grafito-900);
  font-size: 1.1rem;
}

.llamada .portada-botones {
  margin-top: 32px;
}

@media (max-width: 640px) {
  .llamada {
    padding: 56px 20px;
    border-radius: 24px;
  }
}

/* ---------- Pie ---------- */

.pie {
  padding: 72px 0 40px;
  background: var(--tinta);
  color: var(--grafito-300);
  font-size: 0.93rem;
}

.pie-rejilla {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}

.pie-marca img {
  height: 34px;
  width: auto;
}

.pie-marca p {
  max-width: 300px;
  margin-top: 16px;
}

.pie h2 {
  margin-bottom: 14px;
  color: var(--blanco);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pie ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pie a {
  text-decoration: none;
}

.pie a:hover {
  color: var(--fosforo-300);
}

.pie-final {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .pie-rejilla {
    grid-template-columns: 1fr 1fr;
  }

  .pie-marca {
    grid-column: 1 / -1;
  }
}

/* ---------- Aparición suave ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .aparecer {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .js .aparecer.visible {
    opacity: 1;
    transform: none;
  }
}

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

  * {
    transition: none !important;
  }
}

.web-plantilla .chip {
  background: var(--blanco);
}

/* Tarjetas de la portada que llevan a cada página */
.area {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.area:hover {
  transform: translateY(-3px);
  box-shadow: var(--sombra-alta);
}

.area h3 {
  font-size: 1.3rem;
}

.area .enlace-flecha {
  margin-top: auto;
  padding-top: 18px;
}

/* ---------- Tour guiado ---------- */

.etiqueta-corchete {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  color: var(--grafito-300);
  font-size: 0.8rem;
  font-weight: 500;
}

.titulo-ligero {
  font-weight: 400;
}

.tour .intro {
  margin-bottom: 64px;
}

.tour-escena {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}

.portatil-marco {
  padding: 1.6%;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background: #0c1600;
  box-shadow: 0 40px 120px rgb(160 199 254 / 0.12);
}

.portatil-pantalla {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: var(--nube-100);
  overflow: hidden;
  container-type: inline-size;
}

.portatil-base {
  position: relative;
  width: 112%;
  height: 16px;
  margin-left: -6%;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(#2c3b20, #0c1600);
}

.portatil-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 14%;
  height: 7px;
  border-radius: 0 0 10px 10px;
  background: #0c1600;
  transform: translateX(-50%);
}

/* La maqueta escala como una imagen: todo va en em sobre el ancho de la pantalla */
.app {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--nube-100);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 1.05cqi;
  line-height: 1.35;
  text-align: left;
}

.app-barra {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5em;
  height: 2.6em;
  padding: 0 1.2em;
  background: var(--tinta);
  color: var(--grafito-300);
  font-size: 0.85em;
}

.app-barra i {
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.25);
}

.app-barra span {
  margin: 0 auto;
  padding: 0.2em 1.4em;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.1);
}

.app-cuerpo {
  display: grid;
  flex: 1;
  grid-template-columns: 15em 1fr;
  min-height: 0;
}

.app-lateral {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  padding: 1.2em 0.8em;
  border-right: 1px solid var(--grafito-100);
  background: var(--blanco);
  overflow: hidden;
}

.app-lateral img {
  width: auto;
  height: 2em;
  margin: 0 0.6em 0.8em;
}

.app-lateral b {
  margin: 0.9em 0.7em 0.3em;
  color: var(--grafito-300);
  font-size: 0.72em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.5em 0.6em;
  border: 0;
  border-radius: 0.6em;
  background: none;
  color: var(--grafito-700);
  font: inherit;
  font-size: 0.92em;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.app-menu-item::before {
  content: "";
  width: 0.9em;
  height: 0.9em;
  border: 0.14em solid currentColor;
  border-radius: 0.3em;
  opacity: 0.45;
}

.app-menu-item:hover {
  background: var(--nube-100);
}

.app-menu-item.activo {
  background: var(--acento-100);
  color: var(--acento-700);
}

.app-menu-item.activo::before {
  opacity: 1;
}

.app-principal {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.app-cabecera {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1.2em;
  padding: 1em 1.6em;
  border-bottom: 1px solid var(--grafito-100);
  background: var(--blanco);
}

.app-cabecera strong {
  margin-right: auto;
  font-size: 1.25em;
}

.app-grupo {
  display: flex;
  gap: 0.5em;
}

.app-pastilla {
  padding: 0.35em 0.9em;
  border-radius: 99px;
  background: var(--acento-100);
  color: var(--acento-700);
  font-size: 0.9em;
  font-weight: 700;
}

.app-pastilla.fosforo {
  background: var(--fosforo-300);
  color: var(--tinta);
}

.app-boton {
  padding: 0.35em 0.9em;
  border: 1px solid var(--grafito-200);
  border-radius: 99px;
  font-size: 0.9em;
  font-weight: 700;
}

.app-panel {
  flex: 1;
  padding: 1.6em;
  overflow: hidden;
  animation: aparecer-panel 0.35s ease;
}

.app-panel[hidden] {
  display: none;
}

@keyframes aparecer-panel {
  from {
    opacity: 0;
    transform: translateY(0.6em);
  }
}

.app-titulo {
  margin-bottom: 0.9em;
  font-size: 1.6em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-tarjeta {
  padding: 1.1em 1.3em;
  border-radius: 0.9em;
  background: var(--blanco);
  box-shadow: 0 1px 2px rgb(15 15 13 / 0.05);
}

.app-rejilla {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9em;
}

.app-dos {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
  gap: 1em;
}

.app-hueco {
  margin-top: 1em;
}

.app-etq {
  color: var(--grafito-500);
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-valor {
  margin-top: 0.3em;
  font-size: 1.15em;
  font-weight: 700;
}

.app-contador {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.7em;
  margin-top: 0.9em;
}

.app-contador div {
  padding: 0.8em;
  border-radius: 0.7em;
  background: var(--nube-100);
  color: var(--grafito-500);
  font-size: 0.9em;
}

.app-contador b {
  display: block;
  color: var(--tinta);
  font-size: 2em;
  letter-spacing: -0.03em;
}

.app-contador .total {
  background: var(--fosforo-300);
  color: var(--tinta);
}

.app-buscador {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1em;
}

.app-buscador > span:first-child {
  flex: 1;
  padding: 0.55em 0.9em;
  border: 1px solid var(--grafito-200);
  border-radius: 0.6em;
  background: var(--blanco);
  color: var(--grafito-500);
}

.app-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.app-tabla.app-tarjeta {
  padding: 0;
  overflow: hidden;
}

table.app-tabla[data-foco="tabla-invitados"] {
  background: var(--blanco);
  border-radius: 0.9em;
}

.app-tabla th {
  padding: 0.7em 0.9em;
  border-bottom: 1px solid var(--grafito-100);
  color: var(--grafito-500);
  font-size: 0.75em;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.app-tabla td {
  padding: 0.6em 0.9em;
  border-bottom: 1px solid var(--grafito-100);
}

.app-tabla tr:last-child td {
  border-bottom: 0;
}

.app-chip {
  display: inline-block;
  padding: 0.15em 0.7em;
  border-radius: 99px;
  background: var(--nube-200);
  color: var(--grafito-700);
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
}

.app-chip.acento {
  background: var(--acento-100);
  color: var(--acento-700);
}

.app-chip.fosforo {
  background: var(--fosforo-200);
  color: var(--fosforo-700);
}

.app-chip.rojo {
  background: #ffe2dc;
  color: #b0301c;
}

.app-plano {
  padding: 1em;
  border-radius: 0.9em;
  background:
    radial-gradient(circle, var(--grafito-200) 1px, transparent 1px) 0 0 / 1.6em 1.6em,
    var(--blanco);
}

.app-plano svg {
  width: 92%;
  margin: 0 auto;
}

.app-plato {
  display: flex;
  gap: 1em;
  padding: 0.75em 0;
  border-top: 1px solid var(--grafito-100);
  font-weight: 600;
}

.app-tarjeta .app-etq + .app-plato {
  margin-top: 0.8em;
}

.app-plato span {
  width: 6em;
  color: var(--grafito-500);
  font-weight: 500;
}

.app-tarjeta .app-tabla {
  margin-top: 0.6em;
}

.app-timing {
  display: grid;
  gap: 0.4em;
}

.app-timing div {
  display: grid;
  grid-template-columns: 4em 16em 1fr;
  align-items: center;
  gap: 1em;
  padding: 0.7em 0;
  border-bottom: 1px solid var(--grafito-100);
}

.app-timing div:last-child {
  border-bottom: 0;
}

.app-timing i {
  display: block;
  height: 1.4em;
  border-radius: 99px;
  background: var(--acento-300);
}

.app-timing div:nth-child(even) i {
  background: var(--fosforo-300);
}

.app-fila {
  display: flex;
  justify-content: space-between;
  padding: 0.75em 0;
  border-bottom: 1px solid var(--grafito-100);
}

.app-fila:last-child {
  border-bottom: 0;
}

.app-total {
  background: var(--fosforo-300);
}

.app-total b {
  display: block;
  margin: 0.3em 0 0.2em;
  font-size: 3em;
  letter-spacing: -0.04em;
}

/* Foco: un recorte iluminado sobre la maqueta */
.tour-foco {
  position: absolute;
  z-index: 2;
  border-radius: 12px;
  box-shadow:
    0 0 0 3px var(--acento-400),
    0 0 0 9999px rgb(15 15 13 / 0.5);
  pointer-events: none;
  transition: top 0.4s ease, left 0.4s ease, width 0.4s ease, height 0.4s ease;
}

.tour-portada {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgb(15 15 13 / 0.35);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

.js .tour-portada {
  display: grid;
}

.js .tour-portada[hidden] {
  display: none;
}

.tour-portada-caja {
  max-width: 380px;
  padding: 28px 36px;
  border-radius: 18px;
  background: var(--blanco);
  color: var(--tinta);
  text-align: center;
  box-shadow: var(--sombra-alta);
}

.tour-portada-caja h3 {
  font-size: 1.45rem;
  font-weight: 600;
}

.tour-portada-caja p {
  margin: 8px 0 20px;
  color: var(--grafito-500);
  font-size: 0.95rem;
}

.tour-portada-fin,
.tour-portada.fin .tour-portada-inicio {
  display: none;
}

.tour-portada.fin .tour-portada-fin {
  display: block;
}

.tour-portada-botones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.tour-repetir,
.tour-anterior {
  border: 0;
  background: none;
  color: var(--grafito-500);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.tour-repetir:hover,
.tour-anterior:hover {
  color: var(--tinta);
}

/* Botón con flecha en un cuadrado, como en la referencia */
.boton-flecha {
  display: inline-flex;
  align-items: stretch;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tinta);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.boton-flecha span,
.boton-flecha i {
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--acento-400);
  transition: background 0.15s ease, transform 0.15s ease;
}

.boton-flecha span {
  padding: 10px 18px;
}

.boton-flecha i {
  width: 40px;
  font-style: normal;
  font-size: 1.05rem;
}

.boton-flecha:hover span,
.boton-flecha:hover i {
  background: var(--acento-300);
}

.boton-flecha:hover i {
  transform: translateX(2px);
}

/* Globo con la explicación de cada paso */
.tour-globo {
  position: absolute;
  z-index: 5;
  width: 320px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--blanco);
  color: var(--tinta);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.35);
  transition: top 0.4s ease, left 0.4s ease;
}

.tour-globo[hidden] {
  display: none;
}

.tour-globo-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tour-contador {
  color: var(--acento-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tour-cerrar {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--nube-100);
  color: var(--grafito-700);
  cursor: pointer;
}

.tour-titulo {
  color: var(--tinta);
  font-size: 1.2rem;
}

.tour-texto {
  margin-top: 6px;
  color: var(--grafito-500);
  font-size: 0.93rem;
  line-height: 1.5;
}

.tour-acciones {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.tour-puntos {
  display: flex;
  gap: 5px;
  margin-right: auto;
}

.tour-puntos button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: var(--grafito-200);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.tour-puntos button.activo {
  width: 18px;
  background: var(--acento-400);
}

.tour-anterior:disabled {
  visibility: hidden;
}

/* Sin JavaScript, los pasos se leen como lista */
.tour-pasos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.tour-pasos li {
  padding: 20px;
  border-radius: var(--radio-sm);
  background: rgb(255 255 255 / 0.05);
}

.tour-pasos p {
  margin-top: 6px;
  font-size: 0.93rem;
}

.js .tour-pasos {
  display: none;
}

@media (max-width: 760px) {
  .portatil-marco {
    border-radius: 14px 14px 0 0;
  }

  .portatil-base {
    width: 106%;
    height: 10px;
    margin-left: -3%;
  }

  .tour-portada-caja {
    padding: 16px 18px;
  }

  .tour-portada-caja h3 {
    font-size: 1.05rem;
  }

  .tour-portada-caja p {
    margin: 4px 0 12px;
    font-size: 0.82rem;
  }

  .tour-foco {
    border-radius: 6px;
  }

  /* En móvil el globo va debajo del portátil */
  .tour-globo {
    position: relative;
    width: auto;
    margin-top: 20px;
    left: auto !important;
    top: auto !important;
  }

  .tour-pasos {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tour .tour-portada-caja h3,
.tour .tour-globo h3 {
  color: var(--tinta);
}

/* ==========================================================
   Marca: negro, títulos en serif, dorados y verde fosforito
   ========================================================== */

body {
  font-size: 16.5px;
}

h1,
h2,
h3 {
  font-family: var(--titulo);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(3rem, 7.2vw, 6rem);
}

h2 {
  font-size: clamp(2.4rem, 4.8vw, 4rem);
}

h3 {
  font-size: 1.65rem;
  line-height: 1.08;
}

h1 em,
h2 em {
  font-style: italic;
}

.funciones-grupo > h3,
.pie h2 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.titulo-ligero {
  font-weight: 400;
}

/* Etiquetas entre corchetes */
.etiqueta,
.etiqueta-fosforo {
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--grafito-200);
  background: transparent;
  color: var(--grafito-700);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.etiqueta::before {
  content: "[";
}

.etiqueta::after {
  content: "]";
}

.seccion-negra .etiqueta {
  border-color: rgb(255 255 255 / 0.18);
  background: transparent;
  color: var(--grafito-300);
}

/* Botones */
.boton-borde {
  border-color: rgb(15 15 13 / 0.14);
  background: rgb(255 255 255 / 0.6);
}

.boton-flecha span,
.boton-flecha i {
  border-radius: 999px;
  background: var(--tinta);
  color: var(--blanco);
}

.boton-flecha span {
  padding: 0 22px;
  min-height: 48px;
}

.boton-flecha i {
  width: 48px;
  color: var(--fosforo-300);
}

.boton-flecha:hover span,
.boton-flecha:hover i {
  background: var(--grafito-700);
}

/* Tarjetas e iconos sobrios */
.tarjeta {
  border: 1px solid var(--grafito-100);
  border-radius: 24px;
  box-shadow: none;
}

.seccion-blanca .tarjeta {
  border-color: transparent;
}

.icono {
  border: 1px solid var(--grafito-200);
  border-radius: 50%;
  background: transparent;
  color: var(--tinta);
}

.icono-fosforo {
  border-color: transparent;
  background: var(--fosforo-300);
  color: var(--tinta);
}

.icono-negro {
  border-color: transparent;
  background: var(--tinta);
  color: var(--fosforo-300);
}

.perfil .icono,
.perfil:nth-child(2) .icono {
  border: 1px solid rgb(255 255 255 / 0.16);
  background: transparent;
  color: var(--fosforo-300);
}

.perfil h3,
.evento h3,
.area h3 {
  font-size: 1.9rem;
}

.destacado-texto h3 {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
}

.franja strong {
  font-family: var(--titulo);
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.destacado-visual {
  background: var(--sol);
}

.destacado-visual.fosforo {
  background: var(--nube-200);
}

.destacado-visual.oscuro {
  background: var(--tinta);
}

.llamada {
  background: var(--sol);
}

.llamada p {
  color: var(--grafito-700);
}

.paso::before {
  color: var(--grafito-500);
}

/* Plantillas de estilo weddo: dorado y fosforito */
.estilo-weddo,
.sitio-weddo {
  background: var(--sol);
  color: var(--tinta);
}

.estilo-weddo::after {
  background: var(--fosforo-300);
}

/* ---------- Portada con la pantalla del software ---------- */

.hero {
  padding: 8px 16px 0;
}

.hero-tarjeta {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 88px;
  border-radius: 36px;
  background:
    radial-gradient(60% 55% at 50% 100%, #f1c444 0%, rgb(241 196 68 / 0) 72%),
    radial-gradient(45% 45% at 88% 78%, #f7dc85 0%, rgb(247 220 133 / 0) 70%),
    radial-gradient(40% 40% at 8% 70%, #f6e3a6 0%, rgb(246 227 166 / 0) 70%),
    linear-gradient(180deg, #f3f0ea 0%, #f5edd8 42%, #f3d779 100%);
  overflow: hidden;
}

.hero-texto {
  max-width: 920px;
  text-align: center;
}

.hero .migas {
  justify-content: center;
}

.hero .subtitulo {
  max-width: 620px;
  margin: 24px auto 0;
  color: var(--grafito-700);
  font-size: 1.12rem;
}

.hero .portada-botones {
  margin-top: 34px;
}

.hero-escena {
  margin-top: 64px;
  padding: 0 4%;
  perspective: 2200px;
}

.hero-pantalla {
  --avance: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 10px 0;
  border: 1px solid rgb(255 255 255 / 0.75);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: rgb(255 255 255 / 0.45);
  box-shadow: 0 50px 100px rgb(110 70 0 / 0.2);
  transform: rotateX(calc((1 - var(--avance)) * 24deg)) scale(calc(0.86 + var(--avance) * 0.14));
  transform-origin: 50% 0;
  will-change: transform;
  container-type: inline-size;
}

.pv {
  display: grid;
  grid-template-columns: 20em 1fr;
  aspect-ratio: 16 / 10;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, #f3efe7, #ebe5d8);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 1cqi;
  line-height: 1.3;
  text-align: left;
  overflow: hidden;
}

.pv-lateral {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  min-height: 0;
  padding: 2.2em 1.4em 1.6em;
}

.pv-lateral img {
  width: auto;
  height: 2.6em;
  margin: 0 0.7em 1.4em;
}

.pv-lateral b {
  margin: 1em 0.9em 0.3em;
  color: var(--grafito-500);
  font-size: 0.95em;
  font-weight: 500;
}

.pv-item {
  display: flex;
  align-items: center;
  gap: 0.9em;
  padding: 0.7em 0.9em;
  border-radius: 0.9em;
  color: var(--grafito-700);
  font-size: 1.1em;
}

.pv-item svg {
  flex-shrink: 0;
  width: 1.35em;
  height: 1.35em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pv-item.activo {
  background: var(--blanco);
  color: var(--tinta);
  font-weight: 600;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 20px rgb(80 50 0 / 0.07);
}

.pv-aviso {
  display: grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  margin-left: auto;
  border-radius: 50%;
  background: var(--tinta);
  color: var(--blanco);
  font-size: 0.8em;
  font-style: normal;
  font-weight: 700;
}

.pv-usuario {
  display: flex;
  align-items: center;
  gap: 0.9em;
  margin-top: auto;
  padding: 0.9em;
  border: 1px solid rgb(255 255 255 / 0.85);
  border-radius: 1.2em;
  background: rgb(255 255 255 / 0.55);
}

.pv-avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2.8em;
  height: 2.8em;
  border-radius: 50%;
  background: var(--sol);
  font-family: var(--titulo);
  font-size: 1.1em;
}

.pv-usuario strong {
  display: block;
  font-size: 1.05em;
}

.pv-usuario small {
  display: block;
  color: var(--grafito-500);
  font-size: 0.9em;
}

.pv-principal {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-top: 0.9em;
  padding: 1.8em 2.4em 0;
  border-radius: 2.2em 0 0 0;
  background: var(--blanco);
  overflow: hidden;
}

.pv-buscar {
  display: flex;
  align-items: center;
  gap: 0.8em;
  max-width: 46em;
  padding: 0.9em 1.2em;
  border-radius: 99px;
  background: var(--nube-100);
  color: var(--grafito-500);
  font-size: 1.1em;
}

.pv-buscar svg {
  width: 1.3em;
  height: 1.3em;
  fill: none;
  stroke: var(--tinta);
  stroke-width: 2;
  stroke-linecap: round;
}

.pv-buscar kbd {
  margin-left: auto;
  padding: 0.3em 0.8em;
  border-radius: 99px;
  background: var(--grafito-200);
  color: var(--grafito-700);
  font: inherit;
  font-size: 0.85em;
}

.pv-titulo {
  margin-top: 1.3em;
  font-family: var(--titulo);
  font-size: 3.2em;
  line-height: 1;
}

.pv-sub {
  margin-top: 0.35em;
  color: var(--grafito-500);
  font-size: 1.15em;
}

.pv-fila {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1.2em;
  margin-top: 1.6em;
}

.pv-sol {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 20em;
  padding: 1.6em 1.9em;
  border-radius: 1.8em;
  background: var(--sol);
  overflow: hidden;
}

.pv-ondas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pv-chips,
.pv-sol-titulo,
.pv-sol-sub {
  position: relative;
}

.pv-chips {
  display: flex;
  align-items: center;
  gap: 0.6em;
  color: var(--grafito-700);
  font-size: 1.05em;
}

.pv-chips i {
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  background: var(--tinta);
}

.pv-chips i + i {
  margin-left: -1.1em;
  border: 0.2em solid #f7dd80;
}

.pv-sol-titulo {
  margin-top: auto;
  font-family: var(--titulo);
  font-size: 4.6em;
  line-height: 0.95;
}

.pv-sol-titulo em {
  font-style: italic;
}

.pv-sol-sub {
  margin-top: 0.7em;
  color: var(--grafito-700);
  font-size: 1.1em;
}

.pv-datos {
  display: grid;
  gap: 1.2em;
}

.pv-dato {
  display: flex;
  flex-direction: column;
  padding: 1.4em 1.6em;
  border-radius: 1.8em;
  background: var(--nube-100);
}

.pv-dato small {
  color: var(--grafito-500);
  font-size: 1em;
}

.pv-dato strong {
  margin-top: 0.2em;
  font-family: var(--titulo);
  font-size: 3.3em;
  font-weight: 400;
  line-height: 1;
}

.pv-dato strong span {
  color: var(--grafito-500);
  font-size: 0.5em;
}

.pv-dato em {
  margin-top: 0.5em;
  color: var(--grafito-500);
  font-size: 0.95em;
  font-style: normal;
}

.pv-dato .pv-sube {
  align-self: flex-start;
  padding: 0.25em 0.8em;
  border-radius: 99px;
  background: var(--fosforo-300);
  color: var(--tinta);
  font-weight: 600;
}

.pv-tabla {
  margin-top: 1.4em;
  padding: 1.3em 1.5em;
  border: 1px solid var(--grafito-100);
  border-bottom: 0;
  border-radius: 1.8em 1.8em 0 0;
}

.pv-tabla-cab,
.pv-fila-inv {
  display: grid;
  grid-template-columns: 2.4em 2.4fr 1fr 1.4fr 1.1fr;
  align-items: center;
  gap: 1em;
}

.pv-tabla-cab {
  padding-bottom: 0.9em;
  color: var(--grafito-500);
}

.pv-tabla-titulo {
  grid-column: 1 / 3;
  color: var(--tinta);
  font-family: var(--titulo);
  font-size: 2em;
}

.pv-fila-inv {
  padding: 0.85em 0;
  border-top: 1px solid var(--grafito-100);
  color: var(--grafito-700);
  font-size: 1.05em;
}

.pv-check {
  width: 1.5em;
  height: 1.5em;
  border: 0.12em solid var(--grafito-300);
  border-radius: 0.45em;
}

.pv-check.si {
  border-color: var(--fosforo-300);
  background: var(--fosforo-300) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f0f0d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 72% no-repeat;
}

.pv-persona {
  display: flex;
  align-items: center;
  gap: 0.9em;
  color: var(--tinta);
  font-weight: 600;
}

.pv-persona b {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  border-radius: 0.8em;
  background: var(--tinta);
  color: var(--blanco);
  font-size: 0.85em;
  font-weight: 600;
}

.pv-persona small {
  display: block;
  color: var(--grafito-500);
  font-size: 0.88em;
  font-weight: 400;
}

.pv-estado {
  justify-self: start;
  padding: 0.3em 0.9em;
  border-radius: 99px;
  background: var(--nube-200);
  font-size: 0.9em;
  font-weight: 600;
}

.pv-estado.si {
  background: var(--fosforo-200);
  color: var(--fosforo-700);
}

@media (max-width: 640px) {
  .hero {
    padding: 4px 8px 0;
  }

  .hero-tarjeta {
    padding-top: 56px;
    border-radius: 26px;
  }

  .hero-escena {
    margin-top: 44px;
    padding: 0 3%;
  }

  .hero-pantalla {
    padding: 5px 5px 0;
    border-radius: 16px 16px 0 0;
  }

  .pv {
    border-radius: 12px 12px 0 0;
  }
}

/* ---------- Tour con la nueva marca ---------- */

.portatil-marco {
  background: #161513;
  box-shadow: 0 40px 120px rgb(241 196 68 / 0.16);
}

.portatil-base {
  background: linear-gradient(#2c2b28, #121110);
}

.portatil-base::before {
  background: #121110;
}

.tour-foco {
  box-shadow:
    0 0 0 3px var(--fosforo-300),
    0 0 0 9999px rgb(15 15 13 / 0.5);
}

.tour-portada {
  background: rgb(15 15 13 / 0.35);
}

.tour-portada-caja h3 {
  font-size: 2rem;
}

.tour-titulo {
  font-size: 1.75rem;
}

.app-barra {
  background: #ebe7df;
  color: var(--grafito-500);
}

.app-barra i {
  background: #d4cfc4;
}

.app-barra span {
  background: var(--blanco);
}

.app-lateral {
  background: #f3efe7;
}

.app-menu-item.activo {
  background: var(--blanco);
  color: var(--tinta);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 6px 16px rgb(80 50 0 / 0.06);
}

.app-titulo {
  font-family: var(--titulo);
  font-size: 2.6em;
  font-weight: 400;
  letter-spacing: 0;
}

.app-pastilla {
  background: var(--nube-200);
  color: var(--tinta);
}

.app-chip.acento {
  background: var(--nube-200);
  color: var(--tinta);
}

.app-timing i {
  background: #efcd5c;
}

.app-total b,
.app-contador b {
  font-family: var(--titulo);
  font-weight: 400;
}

@media (max-width: 760px) {
  .tour-portada-caja h3 {
    font-size: 1.35rem;
  }
}

.categoria-cabecera h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

/* ---------- Texto más compacto ---------- */

body,
p,
.lista-check li {
  line-height: 1.45;
}

.intro p,
.destacado-texto p {
  line-height: 1.42;
}

/* ---------- Menú con la tipografía de los títulos ---------- */

.nav a {
  padding: 6px 14px;
  color: var(--tinta);
  font-family: var(--titulo);
  font-size: 1.28rem;
  font-weight: 400;
  letter-spacing: 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: rgb(255 255 255 / 0.8);
}

.nav a[aria-current="page"] {
  font-style: italic;
}

@media (max-width: 1080px) {
  .nav a {
    font-size: 1.6rem;
  }
}

/* ---------- Qué es weddo ---------- */

.que-es {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}

.que-es-entrada {
  margin-top: 22px;
  color: var(--grafito-500);
  font-size: 1.15rem;
}

.que-es-puntos {
  display: grid;
  gap: 28px;
}

.que-es-puntos > div {
  padding-top: 24px;
  border-top: 1px solid var(--grafito-200);
}

.que-es-puntos p {
  margin-top: 8px;
  color: var(--grafito-500);
}

/* ---------- Módulos en detalle ---------- */

.modulos {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}

.modulos-indice {
  position: sticky;
  top: 100px;
}

.modulos-indice ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: modulo;
}

.modulos-indice a {
  display: flex;
  gap: 12px;
  padding: 9px 14px;
  border-radius: 12px;
  color: var(--grafito-700);
  font-size: 0.95rem;
  text-decoration: none;
  counter-increment: modulo;
}

.modulos-indice a::before {
  content: counter(modulo, decimal-leading-zero);
  color: var(--grafito-300);
  font-variant-numeric: tabular-nums;
}

.modulos-indice a:hover {
  background: var(--nube-100);
  color: var(--tinta);
}

.modulo {
  padding: 36px 0;
  border-top: 1px solid var(--grafito-200);
  scroll-margin-top: 100px;
}

.modulo:first-child {
  padding-top: 0;
  border-top: 0;
}

.modulo h3 {
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
}

.modulo p {
  max-width: 680px;
  margin-top: 12px;
  color: var(--grafito-500);
}

.modulo .lista-check {
  margin-top: 16px;
}

/* ---------- Comparativa con Excel ---------- */

.comparativa {
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--grafito-200);
  border-radius: 24px;
  background: var(--blanco);
  overflow-x: auto;
}

.comparativa table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.comparativa th,
.comparativa td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--grafito-100);
  text-align: left;
  vertical-align: top;
}

.comparativa tbody tr:last-child th,
.comparativa tbody tr:last-child td {
  border-bottom: 0;
}

.comparativa thead th {
  color: var(--grafito-500);
  font-size: 0.85rem;
  font-weight: 600;
}

.comparativa thead th:last-child {
  color: var(--tinta);
}

.comparativa tbody th {
  color: var(--tinta);
  font-weight: 600;
}

.comparativa td {
  color: var(--grafito-500);
}

.comparativa td.si {
  position: relative;
  padding-left: 54px;
  background: var(--fosforo-100);
  color: var(--tinta);
  font-weight: 500;
}

.comparativa td.si::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 20px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--fosforo-300) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f0f0d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

@media (max-width: 900px) {
  .que-es,
  .modulos {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  /* En pantallas estrechas el índice se vuelve una fila deslizable */
  .modulos-indice {
    position: static;
  }

  .modulos-indice ol {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .modulos-indice a {
    border: 1px solid var(--grafito-200);
    border-radius: 999px;
    white-space: nowrap;
  }
}

/* ---------- Mockups de papelería ---------- */

.plantilla-mockup {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radio);
  background: #e9e2d6;
  overflow: hidden;
}

.plantilla-mockup img,
.escaparate-mockup {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.plantilla-mockup:hover img {
  transform: scale(1.04);
}

.escaparate-mockup {
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: var(--radio);
}

.escaparate a:hover .escaparate-mockup {
  transform: translateY(-4px);
}

/* ---------- Diseños de web de boda ---------- */

.web-vista-enlace {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.web-vista-enlace:hover {
  transform: translateY(-4px);
}

.web-vista {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--nube-200);
}

.web-vista iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 1600px;
  border: 0;
  transform: scale(var(--escala-vista, 0.3));
  transform-origin: 0 0;
  pointer-events: none;
}

.web-plantilla-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

/* ---------- Ventanas de pedido (web de boda y diseño personalizado) ---------- */

.pedido .campo {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.pedido .campo label,
.pedido .campo > span {
  color: var(--grafito-700);
  font-size: 0.82rem;
  font-weight: 600;
}

.pedido .campo input,
.pedido .campo textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--grafito-200);
  border-radius: 12px;
  background: var(--nube-50);
  color: var(--tinta);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.4;
  resize: vertical;
}

.pedido .campo input:focus,
.pedido .campo textarea:focus {
  border-color: var(--tinta);
  outline: none;
  box-shadow: 0 0 0 3px rgb(184 242 62 / 0.45);
  background: var(--blanco);
}

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

.pedido-opciones label {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--grafito-200);
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
}

.pedido-opciones input {
  accent-color: var(--tinta);
}

.pedido-precio {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--fosforo-100);
}

.pedido-precio strong {
  font-family: var(--titulo);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
}

.pedido-precio span {
  color: var(--grafito-700);
  font-size: 0.85rem;
}

/* Ventana para pedir la web */
.pedido {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--blanco);
  color: var(--tinta);
  box-shadow: 0 40px 100px rgb(15 15 13 / 0.35);
}

.pedido::backdrop {
  background: rgb(15 15 13 / 0.45);
  backdrop-filter: blur(4px);
}

.pedido-form {
  position: relative;
  padding: 36px;
}

.pedido-cerrar {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--nube-100);
  cursor: pointer;
}

.pedido-etiqueta {
  color: var(--grafito-500);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pedido h2 {
  margin: 8px 0 10px;
  font-size: 2.4rem;
}

.pedido-texto {
  margin-bottom: 22px;
  color: var(--grafito-500);
  font-size: 0.95rem;
}

.pedido-fila {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pedido .campo label small {
  color: var(--grafito-500);
  font-weight: 400;
}

.pedido-direccion {
  display: flex;
  align-items: center;
  border: 1px solid var(--grafito-200);
  border-radius: 12px;
  background: var(--nube-50);
  overflow: hidden;
}

.pedido-direccion input {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.pedido-direccion span {
  padding-right: 12px;
  color: var(--grafito-500);
  font-size: 0.92rem;
}

.pedido-acepto {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 18px;
  color: var(--grafito-700);
  font-size: 0.85rem;
}

.pedido-acepto input {
  margin-top: 3px;
  accent-color: var(--tinta);
}

.pedido-trampa {
  position: absolute;
  left: -9999px;
}

.pedido-error {
  margin-bottom: 14px;
  color: #b0301c;
  font-size: 0.88rem;
  font-weight: 600;
}

.pedido-enviar {
  width: 100%;
}

.pedido-enviar span {
  flex: 1;
}


@media (max-width: 560px) {
  .pedido-form {
    padding: 28px 20px;
  }

  .pedido-fila {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

/* ---------- Diseño personalizado y precio ---------- */

.personalizado {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 56px;
  border-radius: 32px;
  background: var(--sol);
}

.personalizado h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.personalizado p {
  margin-top: 16px;
  color: var(--grafito-700);
  font-size: 1.05rem;
}

.personalizado .etiqueta {
  border-color: rgb(15 15 13 / 0.2);
}

.personalizado-accion {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.personalizado-accion small {
  color: var(--grafito-700);
  font-size: 0.85rem;
}

.aviso-precio {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto 56px;
  padding: 22px 28px;
  border: 1px solid var(--grafito-200);
  border-radius: 24px;
  background: var(--blanco);
}

.aviso-precio strong {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 16px;
  background: var(--fosforo-300);
  font-family: var(--titulo);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
}

.aviso-precio p {
  color: var(--grafito-700);
}

.aviso-precio b {
  color: var(--tinta);
}

@media (max-width: 820px) {
  .personalizado {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 24px;
  }

  .aviso-precio {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* ---------- Web de boda en vivo en la portada ---------- */

.web-muestra {
  display: grid;
  gap: 14px;
}

.web-muestra-disenos {
  display: flex;
  justify-self: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--nube-200);
}

.web-muestra-disenos button {
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--grafito-700);
  font-family: var(--titulo);
  font-size: 1.1rem;
  cursor: pointer;
}

.web-muestra-disenos button.activo {
  background: var(--blanco);
  color: var(--tinta);
  box-shadow: 0 1px 3px rgb(15 15 13 / 0.08);
}

.web-vista--viva iframe {
  pointer-events: auto;
}

.web-muestra-nota {
  color: var(--grafito-500);
  font-size: 0.82rem;
  text-align: center;
}
