/* Tus Persianas (demo): sitio de una empresa de persianas con cotizador. */
:root {
  --fondo: #F4F5F7; --superficie: #FFFFFF; --tinta: #1E232B; --texto-2: #515964; --tenue: #747C86;
  --linea: #E2E5EA; --acento: #41566B; --acento-hover: #33465A; --acento-suave: #E9EDF2;
  --calido: #C2743B; --calido-suave: #F5E7D8; --error: #B42318; --wa: #1F8F4E;
  --radio: 14px; --sombra: 0 1px 2px rgba(30,35,43,.06), 0 8px 28px rgba(30,35,43,.07);
  --f-titulo: "Inter Tight", system-ui, sans-serif; --f-texto: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { background: var(--fondo); color: var(--tinta); font: 16px/1.6 var(--f-texto); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--calido); outline-offset: 2px; border-radius: 6px; }
.ancho { width: min(1120px, 100% - 32px); margin-inline: auto; }
.angosto { width: min(760px, 100% - 32px); }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--tinta); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.saltar:focus { left: 8px; }
em { font-style: normal; color: var(--acento); }

/* Aviso de demo */
.aviso-demo { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 8px 16px; background: var(--tinta); color: #EEF0F3; font-size: 13.5px; text-align: center; }
.aviso-demo a { color: #fff; font-weight: 600; }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 20; background: rgba(244,245,247,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--linea); }
.cabecera-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font: 600 18px/1 var(--f-titulo); letter-spacing: -.02em; text-decoration: none; }
.logo-marca { width: 26px; height: 26px; border-radius: 7px; background: var(--acento); display: grid; grid-template-rows: repeat(3, 1fr); gap: 2px; padding: 5px 5px 7px; }
.logo-marca i { background: rgba(255,255,255,.85); border-radius: 1px; }
.cabecera nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.cabecera nav a { text-decoration: none; color: var(--texto-2); }
.cabecera nav a:hover { color: var(--tinta); }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--acento); background: var(--acento); color: #fff; font: 600 15.5px/1 var(--f-texto); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.boton:hover { background: var(--acento-hover); }
.boton:active { transform: scale(.98); }
.boton-chico { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.boton-claro { background: transparent; color: var(--acento); }
.boton-claro:hover { background: var(--acento-suave); }
.boton-wa { width: 100%; background: var(--wa); border-color: var(--wa); }
.boton-wa:hover { background: #187A41; }
.boton-wa svg { width: 20px; height: 20px; fill: currentColor; }
.boton:disabled { background: #C7CBD2; border-color: #C7CBD2; color: #fff; cursor: not-allowed; transform: none; }

/* Textos */
.etiqueta { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--calido); margin-bottom: 12px; }
h1 { font: 600 clamp(34px, 5vw, 56px)/1.05 var(--f-titulo); letter-spacing: -.035em; }
h2 { font: 600 clamp(28px, 3.6vw, 42px)/1.1 var(--f-titulo); letter-spacing: -.03em; max-width: 20ch; }
h3 { font: 600 18px/1.25 var(--f-titulo); letter-spacing: -.01em; }
.bajada { font-size: 18.5px; color: var(--texto-2); margin-top: 18px; max-width: 48ch; }
.bajada-sec { color: var(--texto-2); margin-top: 12px; font-size: 17px; }

/* Portada */
.portada { padding: 64px 0 72px; }
.portada-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.acciones { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.sellos { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: 14.5px; color: var(--texto-2); }
.sellos li { display: flex; align-items: center; gap: 7px; }
.sellos li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acento); }
.portada-arte { position: relative; display: grid; place-items: center; }
.ventana { position: relative; width: min(340px, 80vw); aspect-ratio: 4 / 5; background: #fff; border: 12px solid #fff; border-radius: 10px; box-shadow: var(--sombra), inset 0 0 0 1px var(--linea); overflow: hidden; }
.vidrio { position: absolute; inset: 0; background: linear-gradient(180deg, #CFE0EA, #EEF2F5 70%, #DDE4E9); }
.sol { position: absolute; width: 70px; height: 70px; border-radius: 50%; background: #F6D58E; top: 18%; right: 16%; box-shadow: 0 0 60px #F6D58E; }
.arbol { position: absolute; bottom: -20px; left: 12%; width: 120px; height: 140px; border-radius: 50% 50% 40% 40%; background: #9DBB92; }
.cajon { position: absolute; top: 0; left: 0; right: 0; height: 20px; background: linear-gradient(#E7E9ED, #CFD3DA); z-index: 2; box-shadow: 0 2px 4px rgba(0,0,0,.12); }
.persiana { position: absolute; top: 20px; left: 0; right: 0; height: 60%; background: repeating-linear-gradient(180deg, #9AA0A6 0 14px, rgba(0,0,0,.14) 14px 16px); box-shadow: 0 6px 12px rgba(0,0,0,.14); z-index: 1; animation: bajar 3.2s ease-in-out .6s both; }
.persiana::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 7px; background: #6E747B; border-radius: 0 0 3px 3px; }
@keyframes bajar { from { height: 6%; } to { height: 60%; } }
.ficha-precio { position: absolute; left: -6px; bottom: 22px; background: #fff; border-radius: 12px; padding: 12px 16px; box-shadow: var(--sombra); display: grid; gap: 2px; font-size: 13px; color: var(--texto-2); max-width: 230px; }
.ficha-precio b { font: 600 22px/1.1 var(--f-titulo); color: var(--tinta); letter-spacing: -.02em; }

/* Secciones */
.seccion { padding: 80px 0; border-top: 1px solid var(--linea); }
.productos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.producto { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); padding: 14px 14px 18px; display: grid; gap: 8px; align-content: start; }
.muestra { height: 120px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.producto p { color: var(--texto-2); font-size: 14.5px; line-height: 1.5; }
.desde { font-size: 14px; font-weight: 600; color: var(--acento); }

/* Cotizador */
.cotiza { background: linear-gradient(180deg, var(--fondo), #ECEEF2); }
.cotizador { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; margin-top: 32px; align-items: start; }
fieldset { border: 0; }
.item, .extras { position: relative; background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); padding: 18px; margin-bottom: 14px; box-shadow: var(--sombra); }
.item legend, .extras legend { float: left; width: 100%; font: 600 17px/1.2 var(--f-titulo); margin-bottom: 14px; }
.quitar { position: absolute; top: 14px; right: 14px; background: none; border: 0; color: var(--texto-2); font: 500 14px var(--f-texto); text-decoration: underline; cursor: pointer; min-height: 32px; padding: 0 6px; }
.item-grilla { clear: both; display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 18px; }
.campos { display: grid; gap: 12px; }
.fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fila3 { display: grid; grid-template-columns: 1fr 1fr 96px; gap: 12px; }
.campo { display: grid; gap: 6px; align-content: start; }
.campo label, .lbl { font-size: 14px; font-weight: 600; }
.campo small, .lbl small { font-weight: 400; color: var(--tenue); }
input, select { width: 100%; min-height: 46px; border: 1px solid #CFD3DA; border-radius: 10px; padding: 0 12px; font: 16px var(--f-texto); color: var(--tinta); background: #fff; }
input:focus, select:focus { border-color: var(--acento); outline: 3px solid var(--acento-suave); outline-offset: 0; }
input[aria-invalid="true"] { border-color: var(--error); }
.error { min-height: 0; font-size: 13px; color: var(--error); }
.error:empty { display: none; }
.colores { display: flex; flex-wrap: wrap; gap: 8px; }
.color { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px 0 8px; border: 1px solid #CFD3DA; border-radius: 999px; font-size: 14px; cursor: pointer; background: #fff; }
.color input { position: absolute; opacity: 0; inset: 0; min-height: 0; cursor: pointer; }
.color span { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.color:has(input:checked) { border-color: var(--acento); background: var(--acento-suave); font-weight: 600; }
.color:has(input:focus-visible) { outline: 3px solid var(--calido); outline-offset: 2px; }

/* Suplementos (varios por persiana) */
.suplementos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-supl { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 12px; border: 1px solid #CFD3DA; border-radius: 10px; background: #fff; cursor: pointer; font-size: 14px; }
.check-supl input { width: 19px; height: 19px; min-height: 0; accent-color: var(--acento); flex: none; }
.check-supl .supl-txt { line-height: 1.25; }
.check-supl small { color: var(--acento); font-weight: 600; }
.check-supl:has(input:checked) { border-color: var(--acento); background: var(--acento-suave); }
.check-supl:has(input:focus-visible) { outline: 3px solid var(--calido); outline-offset: 2px; }

/* Vista previa */
.previa { display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; padding-top: 4px; }
.hueco { width: 100%; max-height: 190px; aspect-ratio: .875; border: 6px solid #fff; border-radius: 6px; background: linear-gradient(180deg, #CFE0EA, #EEF2F5); box-shadow: 0 0 0 1px var(--linea), var(--sombra); position: relative; overflow: hidden; transition: aspect-ratio .25s; }
.lamina { position: absolute; inset: 0 0 20% 0; transition: background .2s; box-shadow: 0 4px 8px rgba(0,0,0,.1); }
.lamina::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.08), transparent 16%, transparent 84%, rgba(0,0,0,.08)); }
.lamina::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 6px; background: #80868D; border-radius: 0 0 2px 2px; }
.hueco::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 9px; background: linear-gradient(#E7E9ED, #CBD0D7); z-index: 1; }
.previa-medida { font-size: 13px; color: var(--texto-2); }
.previa-precio { font: 600 19px/1 var(--f-titulo); }
.agregar { width: 100%; border-style: dashed; margin-bottom: 14px; }

/* Resumen */
.resumen { position: sticky; top: 84px; background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); padding: 20px; box-shadow: var(--sombra); display: grid; gap: 14px; }
.resumen h3 { font-size: 19px; }
.lineas { list-style: none; display: grid; gap: 10px; font-size: 14px; }
.lineas li { display: flex; justify-content: space-between; gap: 12px; }
.lineas li span { color: var(--texto-2); }
.lineas li b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lineas li.pendiente { color: var(--tenue); }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--linea); }
.total span { font-weight: 600; }
.total b { font: 600 30px/1 var(--f-titulo); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.letra-chica { font-size: 13px; color: var(--tenue); }
.falta { font-size: 13.5px; color: var(--texto-2); text-align: center; }
.vista-wa { border-top: 1px dashed var(--linea); padding-top: 14px; display: grid; gap: 8px; }
.vista-tit { font-size: 13px; font-weight: 600; color: var(--texto-2); }
.burbuja { background: #DCF8C6; border-radius: 10px 10px 2px 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; white-space: pre-line; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.vista-nota { font-size: 12.5px; color: var(--tenue); }

/* Pasos y preguntas */
.pasos { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.pasos li { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); padding: 22px; display: grid; gap: 8px; }
.pasos li > span { width: 34px; height: 34px; border-radius: 50%; background: var(--calido-suave); color: #9A4F25; display: grid; place-items: center; font: 600 15px var(--f-titulo); }
.pasos p, details p { color: var(--texto-2); }
details { border-bottom: 1px solid var(--linea); padding: 16px 0; }
details:first-of-type { margin-top: 24px; border-top: 1px solid var(--linea); }
summary { cursor: pointer; font: 600 17px/1.35 var(--f-titulo); list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; color: var(--acento); line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; }

/* Pie */
.pie { background: var(--tinta); color: #D4D8DE; padding: 40px 0; font-size: 14.5px; }
.pie-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: end; }
.pie .logo { color: #fff; margin-bottom: 8px; }
.credito a { color: #fff; }

/* Tablet y celular */
@media (max-width: 960px) {
  .portada-in, .cotizador { grid-template-columns: 1fr; }
  .resumen { position: static; }
  .productos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portada-arte { order: -1; }
}
@media (max-width: 640px) {
  .cabecera nav { display: none; }
  .cabecera .boton-chico { margin-left: auto; }
  .portada { padding: 32px 0 48px; }
  .seccion { padding: 56px 0; }
  .productos, .pasos { grid-template-columns: 1fr; }
  .item-grilla { grid-template-columns: 1fr; }
  .suplementos { grid-template-columns: 1fr; }
  .previa { grid-template-columns: 90px 1fr; justify-items: start; align-items: center; text-align: left; }
  .previa .hueco { grid-row: span 2; }
  .ventana { width: min(260px, 70vw); }
  .ficha-precio { left: 0; }
}
