:root { color-scheme: light; font-family: Inter, "Segoe UI", system-ui, sans-serif; color: #16121a; background: #fcfaf6; }
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; justify-content: space-between; align-items: center; padding: .75rem max(5vw, 1rem); background: #16121a; color: white; position: sticky; top: 0; z-index: 1; }
header a { color: inherit; font-weight: 900; text-decoration: none; letter-spacing: .05em; }
header a span { color: #f2b8d2; }
main { width: min(90%, 72rem); margin: auto; padding-block: 2rem 4rem; }
.portada { background: #f6e7ee; border-radius: 1.5rem; padding: clamp(1.5rem, 6vw, 5rem); }
h1 { font: 800 clamp(3rem, 10vw, 6.5rem)/.98 Inter, "Segoe UI", system-ui, sans-serif; letter-spacing: -.04em; margin: 0; }
h1 em, h2 em { font-family: Georgia, serif; font-style: italic; font-weight: 400; color: #863963; }
h2 { margin-top: 0; }
.portada p { margin-bottom: 0; }
button, select, input { font: inherit; min-height: 44px; }
button { cursor: pointer; border-radius: .7rem; border: 1px solid #16121a; padding: .55rem .85rem; background: #ffffff; color: #16121a; }
button[aria-pressed="true"] { background: #16121a; color: white; }
.principal, a.principal { background: #863963; border-color: #863963; color: white; }
.principal:hover { background: #70304f; }
button:disabled { cursor: default; opacity: .6; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #863963; outline-offset: 3px; }
nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1.25rem; }
#catalogo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.tarjeta, .vacio { background: #ffffff; border: 1px solid #ecdde5; border-radius: 1rem; padding: 1rem; }
.tarjeta { text-align: left; }
.tarjeta img, dialog img, .foto { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f3ece6; border-radius: .7rem; }
.foto { display: grid; place-items: center; color: #5d5169; }
.tarjeta strong, .tarjeta small { display: block; margin-top: .5rem; }
dialog { width: min(92vw, 36rem); max-height: 90dvh; border: 1px solid #ecdde5; border-radius: 1rem; background: #ffffff; color: inherit; padding: 1.25rem; }
dialog::backdrop { background: #16121acc; }
dialog img { max-height: 15rem; }
.fila { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-block: .5rem; }
fieldset { border: 1px solid #ecdde5; border-radius: .75rem; margin-block: 1rem; }
label { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-block: .5rem; }
input[type="number"] { width: 5rem; }
.aviso { position: fixed; bottom: 1rem; right: 1rem; margin: 0; color: white; background: #16121a; border-radius: .65rem; padding: .75rem; }
.aviso:empty { display: none; }
main > .portada h1 { font-size: clamp(2.5rem, 8vw, 6rem); overflow-wrap: anywhere; }
.bloque { margin-top: 1rem; padding: clamp(1rem, 3vw, 2rem); background: #ffffff; border: 1px solid #ecdde5; border-radius: 1rem; }
.bloque h1 { font-size: clamp(2rem, 6vw, 4rem); margin-bottom: 1rem; }
a { color: #863963; }
.acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.boton { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid #16121a; border-radius: .7rem; padding: .55rem .85rem; text-decoration: none; }
.bloque form { max-width: 40rem; }
.bloque label { align-items: flex-start; flex-direction: column; margin-bottom: .9rem; font-weight: 600; }
.bloque label:has(input[type="checkbox"]) { flex-direction: row; align-items: center; }
.bloque input:not([type="checkbox"]), .bloque textarea, .bloque select { width: 100%; border: 1px solid #ba899d; border-radius: .5rem; padding: .5rem; background: white; font: inherit; }
.bloque input[type="checkbox"] { min-height: auto; width: 1.25rem; height: 1.25rem; }
.bloque textarea { min-height: 5rem; }
.productos { padding: 0; }
.productos li { border-bottom: 1px solid #ecdde5; }
.productos a { padding: .75rem; }
.qr { width: 10rem; }
.miniatura { width: 6rem; max-height: 6rem; object-fit: contain; }
.url { overflow-wrap: anywhere; }

.avisos-nuevos:not([hidden]) {
  position: fixed;
  inset: auto 1rem 1rem auto;
  z-index: 10;
  max-width: min(25rem, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  background: #16121a;
  color: white;
  border-radius: 0.75rem;
}
.avisos-nuevos a { color: #fff; font-weight: bold; }
.avisos-nuevos p { margin: 0.3rem 0; }

header a { text-transform: none; letter-spacing: -.01em; font-size: 1.15rem; }
footer { text-align: center; padding: 2rem 1rem 3rem; color: #5d5169; font-size: .9rem; }
footer a { color: #863963; }
.portada.oscura { background: #16121a; color: #fcfaf6; }
.portada.oscura h1 em { color: #f2b8d2; }
.portada.oscura .boton:not(.principal) { color: #fcfaf6; border-color: #f2b8d2; }
.sobretitulo { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: #f2b8d2; margin-top: 0; }
.planes-grilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.plan { border: 2px solid #ecdde5; border-radius: 1rem; padding: 1.25rem; }
.plan h3 { margin: 0; color: #70304f; font-size: 1.4rem; }
.precio { font-size: 2rem; font-weight: 800; margin: .5rem 0; color: #16121a; }
.precio small, b.precio { font-size: 1rem; font-weight: 600; }
.beneficios { padding-left: 1.2rem; line-height: 1.6; }
.beneficios li { margin-bottom: .5rem; }
.nota { color: #5d5169; font-size: .95rem; }
.alerta { background: #fae6ee; border-left: 4px solid #863963; padding: .75rem 1rem; border-radius: .5rem; }
meter { width: 100%; height: 1.2rem; }
fieldset.planes { display: grid; gap: .75rem; border: 0; padding: 0; }
fieldset.planes legend { font-weight: 700; margin-bottom: .5rem; }
.bloque label.opcion { flex-direction: row; align-items: flex-start; border: 2px solid #ecdde5; border-radius: .8rem; padding: .8rem; font-weight: 400; }
.bloque label.opcion:has(input:checked) { border-color: #863963; background: #fdf5f9; }
.bloque label.opcion input { width: 1.25rem; min-height: auto; margin-top: .2rem; }
.enlace { display: flex; align-items: center; gap: .3rem; width: 100%; flex-wrap: wrap; }
.enlace span { color: #5d5169; font-weight: 400; overflow-wrap: anywhere; }
.enlace input { flex: 1; min-width: 10rem; }
details summary { cursor: pointer; color: #863963; }
.lista-admin { padding: 0; list-style: none; }
.admin-fila .acciones { align-items: end; margin-top: .75rem; }
.admin-fila .acciones label { margin: 0; }
