/* Landing de invitaciones.estudiovidriera.com. Fuentes del sistema; sin recursos externos (CSP estricta). */
:root {
  --fondo: #fbf8f4; --alt: #f3ede4; --caja: #ffffff; --tinta: #1f1a24; --suave: #5b5363; --linea: #ddd3c6; --borde-campo: #857a8c;
  --acento: #b4235a; --acento-osc: #8f1846; --acento-tinta: #ffffff; --foco: #0b57d0; --ok: #1d6b3a;
  --radio: 14px; --sombra: 0 1px 2px rgb(31 26 36 / 6%), 0 8px 24px rgb(31 26 36 / 8%);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--fondo); color: var(--tinta); font: 1.0625rem/1.6 var(--sans); overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acento-osc); text-underline-offset: 0.15em; }
a:hover { color: var(--tinta); }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 3.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--suave); max-width: 40rem; }
.chico { font-size: 0.92rem; color: var(--suave); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ancho { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }
.angosto { width: min(42rem, 100% - 2.5rem); margin-inline: auto; }
.contenido { padding-block: 2.5rem 4rem; }

/* saltar al contenido */
.saltar { position: absolute; left: 0.75rem; top: -4rem; background: var(--tinta); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; z-index: 20; }
.saltar:focus { top: 0.75rem; color: #fff; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4em; min-height: 2.875rem; padding: 0.6rem 1.25rem; border-radius: 999px;
  background: var(--acento); color: var(--acento-tinta); border: 2px solid var(--acento); font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer; }
.btn:hover { background: var(--acento-osc); border-color: var(--acento-osc); color: var(--acento-tinta); }
.btn-2 { background: transparent; color: var(--tinta); border-color: var(--tinta); }
.btn-2:hover { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.btn-chico { min-height: 2.75rem; padding: 0.45rem 1rem; font-size: 0.95rem; white-space: nowrap; flex: none; }
.btn-grande { min-height: 3.25rem; padding-inline: 1.75rem; font-size: 1.08rem; width: 100%; max-width: 24rem; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* barra de arriba */
.arriba { position: sticky; top: 0; z-index: 10; background: rgb(251 248 244 / 94%); border-bottom: 1px solid var(--linea); }
@supports (backdrop-filter: blur(8px)) { .arriba { background: rgb(251 248 244 / 82%); backdrop-filter: blur(8px); } }
.barra { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.marca { display: flex; align-items: center; gap: 0.5rem; color: var(--tinta); text-decoration: none; font-weight: 700; line-height: 1.1; margin-right: auto; }
.marca img { flex: none; }
.marca-sub { color: var(--suave); font-weight: 500; border-left: 1px solid var(--linea); padding-left: 0.5rem; }
.nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.7rem; color: var(--tinta); text-decoration: none; border-radius: 8px; }
.nav a:hover { background: var(--alt); }
@media (max-width: 47.99rem) { .nav { display: none; } }
@media (max-width: 26rem) { .marca-sub { display: none; } }

/* hero */
.hero { padding-block: 2.5rem 3rem; background: radial-gradient(60rem 30rem at 85% 0%, #f6dfe6 0%, transparent 60%), radial-gradient(40rem 24rem at 0% 100%, #efe6d4 0%, transparent 65%); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } .hero { padding-block: 4rem 4.5rem; } }
.kicker { text-wrap: balance; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; font-weight: 700; color: var(--acento-osc); margin-bottom: 0.75rem; }
.precio-hero { font-size: 1.05rem; color: var(--suave); }
.precio-hero strong { font-size: 1.6rem; color: var(--tinta); margin-right: 0.25rem; }
.acciones { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-fotos { position: relative; display: flex; justify-content: center; align-items: flex-start; padding-bottom: 2.5rem; }
.celu { width: min(15rem, 46vw); border-radius: 2rem; padding: 0.55rem; background: #17131b; box-shadow: 0 20px 50px rgb(31 26 36 / 25%); }
.celu img { border-radius: 1.5rem; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; width: 100%; }
.celu-1 { transform: rotate(-4deg); z-index: 1; }
.celu-2 { transform: rotate(5deg) translate(-1.5rem, 2rem); margin-left: -2.5rem; }

/* secciones */
.seccion { padding-block: 3.5rem; }
.seccion-alt { background: var(--alt); }
.demos { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.demo-card { background: var(--caja); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1rem 1rem 1.25rem; box-shadow: var(--sombra); display: flex; flex-direction: column; }
.demo-card p { color: var(--suave); }
.demo-img { border-radius: 10px; overflow: hidden; margin-bottom: 1rem; aspect-ratio: 4 / 5; background: var(--alt); }
.demo-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.demo-ph { display: block; width: 100%; height: 100%; }
.demo-card[data-estilo="infantil"] .demo-ph { background: linear-gradient(160deg, #ffe9bd, #ffb3a1 60%, #9ad3ff); }
.demo-card[data-estilo="elegante"] .demo-ph { background: linear-gradient(160deg, #f9f6ef, #e9e2d3 60%, #b8c7b5); }
.demo-card[data-estilo="egresados"] .demo-ph { background: linear-gradient(160deg, #0d1330, #283a8f 70%, #c6ff3d); }
.demo-card[data-estilo="empresa"] .demo-ph { background: linear-gradient(160deg, #1b1611, #3a2c1a 60%, #e5bd6a); }
.demo-links { margin-top: auto; margin-bottom: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.demo-links .btn { flex: 1 1 auto; }
.incluye { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.9rem 2rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.incluye li { position: relative; padding-left: 2rem; }
.incluye li::before, .check li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.pasos { list-style: none; counter-reset: paso; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.pasos li { counter-increment: paso; background: var(--caja); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.3rem; }
.pasos li::before { content: counter(paso); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--tinta); color: #fff; font-weight: 700; margin-bottom: 0.4rem; }
.pasos span { color: var(--suave); }

/* precio */
.caja-precio { background: var(--caja); border: 2px solid var(--tinta); border-radius: calc(var(--radio) + 6px); padding: 2rem 1.5rem; text-align: center; box-shadow: var(--sombra); }
.monto { font-family: var(--serif); font-size: clamp(2.6rem, 2rem + 3vw, 3.6rem); font-weight: 700; line-height: 1; margin: 0.25rem 0 0.75rem; }
.check { list-style: none; padding: 0; margin: 1.5rem auto; text-align: left; max-width: 26rem; }
.check li { position: relative; padding-left: 2rem; margin-bottom: 0.6rem; }
.caja-precio .chico { margin-top: 0.75rem; }

/* preguntas */
.faq { border-top: 1px solid var(--linea); margin-top: 1.5rem; }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.25rem; padding: 0.6rem 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--acento-osc); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--suave); padding-bottom: 0.5rem; }
.cta-final { margin-top: 2rem; text-align: center; }

/* formularios */
.form { margin-top: 1.5rem; display: grid; gap: 1.1rem; }
.campo { display: grid; gap: 0.35rem; margin: 0; }
fieldset.campo { border: 1px solid var(--linea); border-radius: var(--radio); padding: 1rem; background: var(--caja); }
legend { font-weight: 700; padding: 0 0.35rem; }
label { font-weight: 600; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea { width: 100%; min-height: 2.875rem; padding: 0.55rem 0.75rem; font: inherit; color: var(--tinta);
  background: var(--caja); border: 1.5px solid var(--borde-campo); border-radius: 10px; }
textarea { resize: vertical; min-height: 6rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--foco); outline-offset: 1px; border-color: var(--foco); }
input[type="radio"], input[type="checkbox"] { width: 1.25rem; height: 1.25rem; accent-color: var(--acento); margin: 0; flex: none; }
.ayuda { font-size: 0.9rem; color: var(--suave); font-weight: 400; }
.dos { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.estilos { display: grid; gap: 0.5rem; }
.estilo-op { display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0.4rem 0.75rem; border: 1.5px solid var(--linea); border-radius: 10px; cursor: pointer; font-weight: 500; }
.estilo-op:has(input:checked) { border-color: var(--acento); background: #fbeef3; }
.muestra { width: 2rem; height: 2rem; border-radius: 8px; flex: none; border: 1px solid rgb(0 0 0 / 15%); }
.estilo-op[data-estilo="infantil"] .muestra { background: linear-gradient(135deg, #ffb703 0 33%, #e85d75 33% 66%, #3a86ff 66%); }
.estilo-op[data-estilo="elegante"] .muestra { background: linear-gradient(135deg, #f9f6ef 0 50%, #2f4a3e 50%); }
.estilo-op[data-estilo="quince"] .muestra { background: linear-gradient(135deg, #fdf7f6 0 50%, #8a3556 50%); }
.estilo-op[data-estilo="egresados"] .muestra { background: linear-gradient(135deg, #0d1330 0 55%, #c6ff3d 55%); }
.estilo-op[data-estilo="empresa"] .muestra { background: linear-gradient(135deg, #1b1611 0 55%, #e5bd6a 55%); }
.check-acepto label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 500; }
.check-acepto input { margin-top: 0.15rem; width: 1.35rem; height: 1.35rem; flex: none; accent-color: var(--acento); }
.codigo { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.2em; letter-spacing: 0.04em; color: var(--tinta); background: var(--alt); padding: 0.1em 0.4em; border-radius: 6px; }
.texto-legal h2 { font-size: 1.35rem; margin-top: 1.75rem; }
.texto-legal ul { padding-left: 1.25rem; }
.texto-legal li { margin-bottom: 0.5rem; }

/* panel del anfitrión */
.aviso { background: #fff4d6; border: 1px solid #e3c463; border-radius: 10px; padding: 0.75rem 1rem; }
.totales { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); margin: 1.5rem 0; }
.totales div { background: var(--caja); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1rem; }
.totales dt { color: var(--suave); font-size: 0.92rem; }
.totales dd { margin: 0.2rem 0 0; font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1.1; display: inline-block; margin-right: 0.35rem; }
.p-csv { margin-bottom: 1.5rem; }
.tabla-env { overflow-x: auto; border: 1px solid var(--linea); border-radius: var(--radio); background: var(--caja); margin-bottom: 1rem; }
.tabla { border-collapse: collapse; width: 100%; font-size: 0.97rem; overflow-wrap: normal; }
.tabla-tit { font-family: var(--sans); font-size: 1rem; color: var(--suave); font-weight: 600; margin: 1.5rem 0 0.5rem; }
.tabla th, .tabla td { text-align: left; padding: 0.6rem 1rem; border-top: 1px solid var(--linea); vertical-align: top; }
.tabla th { background: var(--alt); font-weight: 700; }
.tabla td.num { text-align: right; }
.tabla th { white-space: nowrap; }
/* En el celular cada respuesta es una tarjeta (la etiqueta sale de data-l, que pone app.js). */
@media (max-width: 40rem) {
  .totales { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabla thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tabla tr { display: block; padding: 0.6rem 0; border-top: 1px solid var(--linea); }
  .tabla tr:first-child { border-top: 0; }
  .tabla td { display: flex; gap: 1rem; justify-content: space-between; border: 0; padding: 0.2rem 1rem; text-align: right; overflow-wrap: anywhere; }
  .tabla td.num { text-align: right; }
  .tabla td::before { content: attr(data-l); flex: none; font-weight: 700; color: var(--suave); text-align: left; }
  .tabla td:empty { display: none; }
}

/* pie */
.pie { background: var(--tinta); color: #eee8f0; padding-block: 2.5rem; font-size: 0.95rem; }
.pie a { color: #fff; }
.pie a:hover { color: #ffd6e4; }
.pie :focus-visible { outline-color: #8ab4ff; }
.pie .chico { color: #c9c0cf; }
.pie-links { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.pie-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.vende { margin-bottom: 0.75rem; }

@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight; }
  .btn { border: 2px solid ButtonText; }
  .incluye li::before, .check li::before { forced-color-adjust: none; }
}
@media print { .arriba, .pie, .acciones, .demo-links, .cta-final { display: none; } body { background: #fff; } }
