:root {
  --rojo: #b3122e;
  --rojo-osc: #7d0b1f;
  --verde: #0f5b3a;
  --verde-osc: #0a3f28;
  --oro: #e8b44a;
  --crema: #fff7ec;
  --tinta: #2b1a14;
  --gris: #6f5f58;
  --linea: #ead9c6;
  --radio: 18px;
  --sombra: 0 6px 20px rgba(60, 20, 10, .14);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { touch-action: pan-x pan-y; }
body {
  margin: 0; font-family: 'Nunito', system-ui, sans-serif; font-size: 18px; line-height: 1.45;
  color: var(--tinta); background: var(--crema); font-weight: 600;
}
h1, h2, h3, .titulo { font-family: 'Fraunces', Georgia, serif; font-weight: 800; line-height: 1.12; margin: 0 0 .4em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 .8em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.contenedor { max-width: 560px; margin: 0 auto; padding: 0 18px; }
.oculto { display: none !important; }
.centro { text-align: center; }
.suave { color: var(--gris); font-weight: 600; }
.peq { font-size: .88rem; }

/* Cabecera */
.cabecera { display: flex; align-items: center; justify-content: center; padding: 14px 18px; }
.logo { font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.45rem; text-decoration: none; color: var(--rojo); letter-spacing: -.01em; }
.logo span { color: var(--verde); }

/* Botones */
.boton {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border: 0; border-radius: 999px; padding: 16px 22px; font: inherit; font-weight: 800; font-size: 1.08rem;
  text-decoration: none; cursor: pointer; transition: transform .12s, filter .12s;
  background: var(--rojo); color: #fff; box-shadow: 0 4px 0 var(--rojo-osc);
}
.boton:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--rojo-osc); }
.boton[disabled] { filter: grayscale(.6) opacity(.6); pointer-events: none; }
.boton--verde { background: var(--verde); box-shadow: 0 4px 0 var(--verde-osc); }
.boton--verde:active { box-shadow: 0 2px 0 var(--verde-osc); }
.boton--wsp { background: #1f9d55; box-shadow: 0 4px 0 #157a40; }
.boton--borde { background: #fff; color: var(--tinta); box-shadow: inset 0 0 0 2px var(--linea); }
.boton--borde:active { box-shadow: inset 0 0 0 2px var(--linea); }
.boton--chico { width: auto; padding: 10px 16px; font-size: .95rem; }
.fila { display: flex; gap: 10px; }
.fila > * { flex: 1; }

/* Tarjetas */
.tarjeta { background: #fff; border-radius: var(--radio); padding: 20px; box-shadow: var(--sombra); margin-bottom: 16px; }
.tarjeta--oro { background: #fff4d9; box-shadow: inset 0 0 0 2px var(--oro); }
.tarjeta--verde { background: #e9f5ee; box-shadow: inset 0 0 0 2px #9ccfb0; }

/* Formularios */
label { display: block; font-weight: 800; margin: 14px 0 6px; }
input, textarea {
  width: 100%; font: inherit; font-weight: 600; font-size: 1.05rem; padding: 14px 16px; border-radius: 14px;
  border: 2px solid var(--linea); background: #fff; color: var(--tinta);
}
input:focus, textarea:focus { outline: none; border-color: var(--rojo); }
textarea { resize: vertical; min-height: 130px; }
.ayuda { font-size: .88rem; color: var(--gris); margin-top: 4px; }
.error { color: var(--rojo); font-weight: 800; margin: 10px 0 0; }

/* Portada (landing) */
.hero { background: radial-gradient(120% 90% at 50% 0%, #c81e3a 0%, var(--rojo) 45%, var(--rojo-osc) 100%); color: #fff; padding: 26px 0 34px; position: relative; overflow: hidden; }
.hero h1 { font-size: 2.35rem; }
.hero p { font-size: 1.12rem; opacity: .95; }
.hero .logo { color: #fff; }
.hero .logo span { color: var(--oro); }
.nieve { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(#fff 1.2px, transparent 1.6px), radial-gradient(#fff 1px, transparent 1.4px);
  background-size: 46px 46px, 31px 31px; background-position: 0 0, 15px 20px; animation: caer 14s linear infinite; }
@keyframes caer { to { background-position: 0 460px, 15px 330px; } }
.mini-cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 22px 0 24px; }
.mini-cal div { aspect-ratio: 1; border-radius: 12px; background: rgba(255,255,255,.14); display: grid; place-items: center;
  font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.15rem; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.mini-cal div.on { background: var(--oro); color: var(--rojo-osc); animation: latir 2.4s ease-in-out infinite; }
@keyframes latir { 50% { transform: scale(1.08); } }
.seccion { padding: 30px 0 8px; }
.pasos { counter-reset: p; list-style: none; padding: 0; margin: 0; }
.pasos li { position: relative; padding: 0 0 18px 54px; }
.pasos li::before { counter-increment: p; content: counter(p); position: absolute; left: 0; top: 0; width: 40px; height: 40px;
  border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center; font-weight: 900; }
.pasos b { display: block; font-size: 1.1rem; }
.incluye { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.incluye div { background: #fff; border-radius: 14px; padding: 14px; box-shadow: var(--sombra); font-weight: 800; }
.incluye div i { font-style: normal; font-size: 1.6rem; display: block; }
.plan { position: relative; }
.plan .precio { font-family: 'Fraunces', serif; font-size: 2.3rem; font-weight: 800; color: var(--rojo); margin: 4px 0; }
.plan ul { padding-left: 20px; margin: 8px 0 16px; }
.plan .sello { position: absolute; top: -12px; right: 16px; background: var(--verde); color: #fff; font-size: .8rem; font-weight: 900; padding: 4px 12px; border-radius: 999px; }
details { background: #fff; border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--sombra); }
summary { font-weight: 800; cursor: pointer; }
details p { margin: 10px 0 0; }
.pie { text-align: center; padding: 30px 18px 40px; color: var(--gris); font-size: .9rem; }

/* Rejilla de puertas */
.puertas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 24px; }
.puerta {
  position: relative; aspect-ratio: 1 / 1.12; border: 0; border-radius: 14px; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff;
  font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.6rem; padding: 0;
  background: var(--verde); box-shadow: 0 4px 0 var(--verde-osc), inset 0 0 0 3px rgba(255,255,255,.12);
}
.puerta:nth-child(3n+2) { background: var(--rojo); box-shadow: 0 4px 0 var(--rojo-osc), inset 0 0 0 3px rgba(255,255,255,.12); }
.puerta:nth-child(5n+4) { background: #c7892a; box-shadow: 0 4px 0 #8f6018, inset 0 0 0 3px rgba(255,255,255,.12); }
.puerta small { font-family: 'Nunito', sans-serif; font-size: .62rem; font-weight: 800; opacity: .9; margin-top: 2px; }
.puerta .lazo { position: absolute; top: 6px; right: 7px; font-size: .8rem; }
.puerta--vacia { opacity: .55; }
.puerta--hoy { animation: latir 1.8s ease-in-out infinite; outline: 3px solid var(--oro); outline-offset: 2px; }
.puerta--cerrada { filter: saturate(.75); }
.puerta--vista { background: #fff !important; color: var(--tinta); box-shadow: 0 4px 0 var(--linea), inset 0 0 0 2px var(--linea) !important; }
.puerta--final { grid-column: 1 / -1; aspect-ratio: auto; min-height: 86px; background: var(--oro) !important; color: var(--rojo-osc); box-shadow: 0 4px 0 #a97a20 !important; }
.puerta--final.puerta--vista { background: #fff !important; }
.temblar { animation: temblar .4s; }
@keyframes temblar { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* Hoja inferior (modal) */
.velo { position: fixed; inset: 0; background: rgba(30, 10, 5, .55); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: aparecer .2s; }
@keyframes aparecer { from { opacity: 0; } }
.hoja { background: var(--crema); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 18px 18px 26px; animation: subir .28s cubic-bezier(.2,.9,.3,1.1); }
@keyframes subir { from { transform: translateY(100%); } }
.hoja-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cerrar { border: 0; background: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; box-shadow: var(--sombra); }

/* Editor */
.miniaturas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.miniatura { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #eee; }
.miniatura img { width: 100%; height: 100%; object-fit: cover; }
.miniatura button { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 1rem; cursor: pointer; }
.agregar-foto { aspect-ratio: 1; border-radius: 12px; border: 2px dashed var(--linea); background: #fff; display: grid; place-items: center; font-weight: 800; color: var(--gris); cursor: pointer; text-align: center; font-size: .9rem; }
.agregar-foto input { display: none; }
.voz { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.voz audio { width: 100%; }
.grabando { color: var(--rojo); font-weight: 900; animation: parpadeo 1s infinite; }
@keyframes parpadeo { 50% { opacity: .35; } }
.progreso { height: 12px; background: #fff; border-radius: 99px; overflow: hidden; box-shadow: inset 0 0 0 2px var(--linea); margin: 8px 0 4px; }
.progreso div { height: 100%; background: var(--verde); border-radius: 99px; transition: width .4s; }
.aviso { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--tinta); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 800; z-index: 90; max-width: 90vw; text-align: center; animation: aparecer .2s; }
.enlace { word-break: break-all; background: #fff; border-radius: 12px; padding: 10px 12px; font-size: .9rem; border: 2px dashed var(--linea); margin: 8px 0 12px; }

/* Vista de regalo */
.regalo-cab { background: radial-gradient(120% 100% at 50% 0%, #c81e3a, var(--rojo-osc)); color: #fff; text-align: center; padding: 26px 18px 30px; position: relative; overflow: hidden; }
.regalo-cab h1 { font-size: 2rem; margin-bottom: .2em; }
.regalo-cab p { margin: 0; opacity: .95; }
.contenido-puerta .fotos { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; overflow-y: hidden; margin: 0 -18px 14px; padding: 0 18px; }
.contenido-puerta .fotos img { flex: 0 0 88%; scroll-snap-align: center; border-radius: 16px; max-height: 62vh; object-fit: cover; box-shadow: var(--sombra); }
.contenido-puerta .fotos img:only-child { flex-basis: 100%; }
.carta { background: #fff; border-radius: 16px; padding: 18px; font-size: 1.12rem; white-space: pre-wrap; box-shadow: var(--sombra); margin-bottom: 14px; }
.vale { border: 3px dashed var(--rojo); background: #fff; border-radius: 16px; padding: 16px; text-align: center; margin-bottom: 14px; }
.vale b { display: block; font-size: .8rem; letter-spacing: .12em; color: var(--rojo); }
.vale span { font-family: 'Fraunces', serif; font-size: 1.35rem; font-weight: 800; }
.boton-voz { margin-bottom: 14px; }
.numero-grande { font-family: 'Fraunces', serif; font-size: 3.2rem; color: var(--rojo); font-weight: 800; line-height: 1; }
canvas.confeti { position: fixed; inset: 0; pointer-events: none; z-index: 100; }

/* Admin */
.cal-admin { display: grid; gap: 6px; }
.cal-admin .fila { flex-wrap: wrap; }
.estado { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 900; }
.estado--si { background: #d6f0df; color: var(--verde); }
.estado--no { background: #fde2e2; color: var(--rojo); }
