/* PlanificAR Fiestas 2026 · estilo */
:root {
  --rojo: #12296b; --rojo-osc: #000b2a; --dorado: #d9a21f; --dorado-cl: #f3d58f; --verde: #1e5b3f; --verde-cl: #e4efe8;
  --crema: #fbf3e6; --papel: #fffaf2; --tinta: #0f1b3d; --gris: #5f6780; --linea: #ecdcc4;
  --sombra: 0 6px 18px rgba(0, 11, 42, .12); --radio: 18px;
  --titulo: "Fraunces", Georgia, serif; --texto: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--crema); color: var(--tinta); font-family: var(--texto); font-size: 16px; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--titulo); line-height: 1.15; margin: 0 0 .5em; color: var(--rojo-osc); }
h1 { font-size: 1.7rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.08rem; }
p { margin: 0 0 .8em; }
a { color: var(--rojo); }
img { max-width: 100%; }
.oculto { display: none !important; }
button, .boton { font: 600 1rem var(--texto); border: 0; border-radius: 14px; padding: 13px 18px; background: var(--rojo); color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; }
button:disabled { opacity: .55; }
button.sec, .boton.sec { background: #fff; color: var(--rojo); border: 2px solid var(--rojo); }
button.suave { background: var(--verde-cl); color: var(--verde); }
button.chico { min-height: 38px; padding: 7px 12px; font-size: .92rem; border-radius: 11px; }
.ancho { width: 100%; }
input, select, textarea { font: 1rem var(--texto); width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--linea); background: #fff; color: var(--tinta); min-height: 48px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--dorado); border-color: var(--dorado); }
label { display: block; font-weight: 600; margin: 12px 0 5px; font-size: .95rem; }
.ayuda { color: var(--gris); font-size: .9rem; }
.error { background: #fde7ea; color: #8a0f22; border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.ok { background: var(--verde-cl); color: var(--verde); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.tarjeta { background: var(--papel); border-radius: var(--radio); padding: 18px; box-shadow: var(--sombra); margin: 14px 0; border: 1px solid #f1e3cc; }

/* ---------- páginas públicas ---------- */
body.publico { background: radial-gradient(circle at 50% -10%, #1f3f94 0%, var(--rojo) 35%, var(--rojo-osc) 100%) fixed; min-height: 100vh; }
.caja { max-width: 440px; margin: 0 auto; padding: 28px 16px 40px; text-align: center; color: #fff6e8; }
.caja .tarjeta { text-align: left; color: var(--tinta); }
.caja h1 { color: #fff6e8; }
.sello-logo { width: 230px; height: 230px; border-radius: 28px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.logo { font-family: var(--titulo); font-size: 1.55rem; font-weight: 700; margin: 10px 0 0; letter-spacing: .3px; }
.logo b { color: var(--dorado-cl); }
.clave { font: 700 1.4rem ui-monospace, monospace; background: var(--crema); padding: 12px; border-radius: 12px; text-align: center; }
.pasos { padding-left: 20px; } .pasos li { margin-bottom: 10px; }

/* ---------- app ---------- */
.barra { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--rojo); color: #fff6e8; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.barra .marca { display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.barra .marca img { width: 34px; height: 34px; border-radius: 9px; }
.barra .logo { font-size: 1.12rem; margin: 0; }
.barra button { min-height: 36px; padding: 6px 12px; background: var(--dorado-cl); color: var(--rojo-osc); font-size: .9rem; }
.contenido { max-width: 760px; margin: 0 auto; padding: 14px 16px 110px; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--linea); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; font-size: .74rem; font-weight: 600; color: var(--gris); text-decoration: none; }
.tabs a .ic { font-size: 1.35rem; line-height: 1; filter: grayscale(.6); }
.tabs a.activo { color: var(--rojo); } .tabs a.activo .ic { filter: none; }
.volver { display: inline-flex; align-items: center; gap: 4px; color: var(--rojo); font-weight: 600; text-decoration: none; margin-bottom: 8px; }
.vacio { color: var(--gris); text-align: center; padding: 30px 10px; }

/* inicio */
.cuenta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 14px; }
.cuenta div { background: linear-gradient(160deg, var(--rojo), var(--rojo-osc)); color: #fff6e8; border-radius: var(--radio); padding: 14px 12px; text-align: center; box-shadow: var(--sombra); }
.cuenta div.verde { background: linear-gradient(160deg, #2a7a54, var(--verde)); }
.cuenta b { display: block; font: 800 2.1rem var(--titulo); color: var(--dorado-cl); line-height: 1.05; }
.cuenta span { font-size: .86rem; }
.grilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.modulo { background: var(--papel); border: 1px solid #f1e3cc; border-radius: var(--radio); padding: 14px 8px 12px; text-align: center; text-decoration: none; color: var(--tinta); box-shadow: var(--sombra); display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; line-height: 1.2; }
.modulo .ic { font-size: 2rem; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--crema); }
.saludo { font-family: var(--titulo); font-size: 1.35rem; color: var(--rojo-osc); margin: 6px 0 10px; }

/* chips y filtros */
.chips { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--linea); background: #fff; color: var(--tinta); border-radius: 999px; padding: 7px 13px; font-size: .88rem; font-weight: 600; min-height: 0; }
.chip.on { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.segmento { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1.5px solid var(--linea); border-radius: 14px; padding: 4px; margin: 6px 0 12px; }
.segmento button { background: transparent; color: var(--gris); min-height: 42px; border-radius: 10px; }
.segmento button.on { background: var(--rojo); color: #fff; }

/* recetas */
.recetas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 620px) { .recetas { grid-template-columns: repeat(3, 1fr); } }
.rc { background: var(--papel); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); text-decoration: none; color: var(--tinta); border: 1px solid #f1e3cc; display: flex; flex-direction: column; }
.foto { aspect-ratio: 4/5; background: linear-gradient(150deg, #f6e3c3, #efc9a0); display: grid; place-items: center; font-size: 3rem; position: relative; overflow: hidden; }
.foto img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.rc .foto { aspect-ratio: 1/1; }
.rc .t { padding: 9px 10px 11px; font-weight: 700; font-size: .93rem; line-height: 1.25; }
.rc .m { display: flex; gap: 4px; flex-wrap: wrap; padding: 0 10px 10px; }
.tag { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: var(--crema); color: var(--rojo-osc); white-space: nowrap; }
.tag.v { background: var(--verde-cl); color: var(--verde); } .tag.d { background: #fbefd5; color: #8a5a12; }
.receta-cab .foto { border-radius: var(--radio); aspect-ratio: 4/5; max-height: 62vh; width: 100%; }
.datos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.datos div { background: var(--papel); border-radius: 14px; padding: 9px 6px; text-align: center; font-size: .8rem; color: var(--gris); border: 1px solid #f1e3cc; }
.datos b { display: block; color: var(--tinta); font-size: .95rem; }
.porciones { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--papel); border: 1px solid #f1e3cc; border-radius: 14px; padding: 8px 10px; margin: 10px 0; }
.porciones b { font-size: 1.2rem; }
.mas-menos { display: flex; align-items: center; gap: 10px; }
.mas-menos button { width: 44px; min-height: 44px; padding: 0; font-size: 1.4rem; border-radius: 12px; }
ul.ingr { list-style: none; padding: 0; margin: 0; }
ul.ingr li { padding: 9px 0; border-bottom: 1px dashed var(--linea); display: flex; gap: 10px; }
ul.ingr li b { min-width: 86px; color: var(--rojo-osc); }
ol.pasos-r { padding-left: 0; list-style: none; counter-reset: p; margin: 0; }
ol.pasos-r li { counter-increment: p; position: relative; padding: 0 0 14px 42px; }
ol.pasos-r li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--rojo); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.nota { border-left: 4px solid var(--dorado); background: #fff7e6; border-radius: 12px; padding: 11px 13px; margin: 10px 0; }
.nota.verde { border-color: var(--verde); background: var(--verde-cl); }
.acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }

/* listas, menú, compras */
.fila { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.fila:last-child { border-bottom: 0; }
.fila .mini { width: 52px; height: 52px; border-radius: 12px; flex: none; font-size: 1.6rem; aspect-ratio: auto; }
.fila .txt { flex: 1; min-width: 0; }
.fila .txt small { display: block; color: var(--gris); }
.check { display: flex; align-items: flex-start; gap: 12px; padding: 11px 2px; border-bottom: 1px dashed var(--linea); cursor: pointer; }
.check input { width: 24px; height: 24px; min-height: 0; flex: none; accent-color: var(--verde); margin-top: 1px; }
.check.hecho span { text-decoration: line-through; color: var(--gris); }
.seccion-t { font: 700 .95rem var(--texto); color: var(--verde); text-transform: uppercase; letter-spacing: .6px; margin: 16px 0 2px; }
.contador { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; margin: 8px 0; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.total { font: 800 1.9rem var(--titulo); color: var(--rojo); }
.persona { display: grid; grid-template-columns: 1fr 120px 40px; gap: 6px; margin-bottom: 6px; }
.persona button { min-height: 48px; padding: 0; background: #fff; color: var(--gris); border: 1.5px solid var(--linea); }
.deuda { background: #fff; border-radius: 12px; padding: 11px 12px; margin: 6px 0; border: 1px solid var(--linea); }
.galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.item-c { background: var(--papel); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); border: 1px solid #f1e3cc; }
.item-c .foto { aspect-ratio: 4/3; font-size: 2.4rem; }
.item-c .cu { padding: 12px 13px; }
.colores { display: flex; gap: 6px; margin: 6px 0; } .colores i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--linea); }
details { background: var(--papel); border-radius: 14px; border: 1px solid #f1e3cc; margin: 8px 0; padding: 0 14px; }
details summary { padding: 13px 0; font-weight: 700; cursor: pointer; list-style: none; }
details summary::after { content: "+"; float: right; color: var(--rojo); font-size: 1.2rem; }
details[open] summary::after { content: "–"; }
details > div { padding-bottom: 12px; }
.fuente { font-size: .82rem; color: var(--gris); }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 50; font-size: .92rem; box-shadow: var(--sombra); max-width: 90vw; }
.barra-prog { height: 10px; border-radius: 99px; background: var(--linea); overflow: hidden; } .barra-prog i { display: block; height: 100%; background: var(--verde); }
.revela { text-align: center; padding: 24px 14px; } .revela .nombre { font: 800 2.2rem var(--titulo); color: var(--rojo); margin: 8px 0; }
