/* Página de la línea Barandales (/barandales/): portada, diseño en 3D, obras, cotización guiada y preguntas.
   Reutiliza inicio.css (cabecera, menú, catálogo, proceso y pie) y obras.css (galería y visor). */
.pagina-linea { background: var(--papel); }
.pagina-linea .wa-flotante { z-index: 60; }

/* ---------- Portada ---------- */
.bh { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 72px); min-height: 100vh; min-height: 100svh; padding: clamp(110px, 14vh, 150px) clamp(20px, 5vw, 80px) clamp(48px, 8vh, 90px); overflow: hidden; }
.bh-texto { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 22px; }
.bh h1 { margin: 0; font-size: clamp(52px, 6.6vw, 112px); line-height: .88; color: var(--marino); }
.bh h1 em { font-style: normal; color: var(--azul); }
.bh h1 .k { display: block; }
.bh-texto > p { margin: 0; font-size: clamp(17px, 1.3vw, 20px); color: var(--texto-2); max-width: 30em; }
.bh-acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.bh-datos { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 34px; }
.bh-datos li { display: flex; align-items: baseline; gap: 10px; }
.bh-datos b { font-family: var(--f-display); font-weight: 400; font-size: 44px; line-height: 1; color: var(--azul); }
.bh-datos span { font-family: var(--f-tecnica); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-2); max-width: 11em; }
.bh-fotos { position: relative; aspect-ratio: 1; width: 100%; max-width: 640px; justify-self: center; }
.bh-fotos img { position: absolute; display: block; object-fit: cover; aspect-ratio: 1; box-shadow: 0 40px 70px -36px rgba(8,21,52,.55); }
.bh-f1 { left: 8%; top: 4%; width: 78%; height: auto; border-radius: 28px; animation: bh-entra 1.1s .15s cubic-bezier(.2,.8,.2,1) both; }
.bh-f2 { left: -4%; bottom: 2%; width: 36%; height: auto; border-radius: 20px; border: 6px solid var(--papel); animation: bh-entra 1.1s .35s cubic-bezier(.2,.8,.2,1) both, bh-flota 7s 1.5s ease-in-out infinite alternate; }
.bh-f3 { right: -2%; top: 0; width: 30%; height: auto; border-radius: 18px; border: 6px solid var(--papel); animation: bh-entra 1.1s .5s cubic-bezier(.2,.8,.2,1) both, bh-flota 8s 1.8s ease-in-out infinite alternate-reverse; }
.bh-arco { position: absolute; z-index: -1; left: 50%; top: 50%; width: 140%; aspect-ratio: 1; border-radius: 50%; transform: translate(-46%, -50%); background: radial-gradient(circle at 40% 45%, rgba(79,176,230,.28), rgba(0,124,186,.08) 55%, transparent 70%); }
@keyframes bh-entra { from { opacity: 0; transform: translateY(40px) scale(.94); } }
@keyframes bh-flota { to { transform: translateY(-14px); } }

/* ---------- Diseño en 3D: reel en un teléfono y propuesta / obra ---------- */
.d3 { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 110px); padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 80px); background: #fff; }
.d3-telefono { justify-self: center; width: 100%; max-width: 340px; }
.d3-marco { position: relative; aspect-ratio: 9 / 19.2; border-radius: 46px; padding: 12px; background: linear-gradient(145deg, #1b2a4f, #081534 60%); box-shadow: 0 60px 90px -40px rgba(8,21,52,.55), inset 0 0 0 2px rgba(255,255,255,.08); }
.d3-marco::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 20px; width: 64px; height: 18px; border-radius: 10px; transform: translateX(-50%); background: #050b1d; }
.d3-marco video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 36px; background: #10204a; }
.d3-play { position: absolute; z-index: 3; right: 26px; bottom: 26px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--marino); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.d3-play svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.d3-play .ic-play { display: none; fill: currentColor; stroke: none; }
.d3-play.pausado .ic-play { display: block; } .d3-play.pausado .ic-pausa { display: none; }
.d3-texto { display: flex; flex-direction: column; gap: 22px; }
.d3 h2 { margin: 0; font-size: clamp(44px, 5.2vw, 88px); line-height: .9; color: var(--marino); }
.d3 h2 em { font-style: normal; color: var(--azul); }
.d3-texto > p { margin: 0; font-size: 18px; color: var(--texto-2); max-width: 34em; }
.ad { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 8px; }
.ad-carta { margin: 0; position: relative; border-radius: 20px; overflow: hidden; background: var(--papel); box-shadow: 0 30px 50px -34px rgba(8,21,52,.5); }
.ad-carta img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.ad-carta figcaption { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255,255,255,.92); font-weight: 600; font-size: 14px; color: var(--marino); }
.ad-carta figcaption b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--azul); color: #fff; font: 400 14px var(--f-display); }
.ad-flecha { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--marino); color: #fff; }

/* ---------- Obras instaladas ---------- */
.obras { padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 80px); background: var(--papel); }
.obras-cabeza { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 14px 48px; margin-bottom: 30px; }
.obras-cabeza .eyebrow { grid-column: 1 / -1; }
.obras-cabeza h2 { margin: 0; font-size: clamp(48px, 6vw, 100px); line-height: .88; color: var(--marino); }
.obras-cabeza h2 em { font-style: normal; color: var(--azul); }
.obras-cabeza p { margin: 0 0 .5em; font-size: 17px; color: var(--texto-2); max-width: 30em; }

/* ---------- Cotización guiada ---------- */
.cz { padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 80px); background: var(--marino); color: #fff; }
.cz-cabeza { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 14px 48px; max-width: 1180px; margin: 0 auto 34px; }
.cz-cabeza .eyebrow { grid-column: 1 / -1; color: var(--azul-cielo); }
.cz-cabeza h2 { margin: 0; font-size: clamp(48px, 6vw, 100px); line-height: .88; }
.cz-cabeza h2 em { font-style: normal; color: var(--azul-cielo); }
.cz-cabeza p { margin: 0 0 .5em; font-size: 17px; color: var(--texto-inv-2); max-width: 30em; }
.cz-caja { max-width: 1180px; margin: 0 auto; padding: clamp(20px, 3vw, 40px); border-radius: 28px; background: #fff; color: var(--marino); box-shadow: 0 50px 90px -50px rgba(0,0,0,.6); }
.cz-pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cz-pasos li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--texto-2); }
.cz-pasos b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--linea); font: 400 18px var(--f-display); transition: background .3s, color .3s, border-color .3s; }
.cz-pasos li.on { color: var(--marino); }
.cz-pasos li.on b { background: var(--azul); border-color: var(--azul); color: #fff; }
.cz-barra { height: 3px; margin: 16px 0 26px; border-radius: 3px; background: var(--linea); overflow: hidden; }
.cz-barra i { display: block; width: 0; height: 100%; background: var(--azul); transition: width .6s cubic-bezier(.22,.8,.2,1); }
.cz-paso { display: none; margin: 0; padding: 0; border: 0; min-width: 0; }
.cz-paso.on { display: block; }
.cz-paso legend { padding: 0; margin-bottom: 18px; font-family: var(--f-display); font-size: clamp(28px, 2.6vw, 40px); line-height: 1; text-transform: uppercase; }
.cz-modelos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cz-modelo { position: relative; display: flex; flex-direction: column; border-radius: 16px; border: 1.5px solid var(--linea); background: var(--papel); cursor: pointer; overflow: hidden; transition: border-color .25s, box-shadow .25s, transform .25s; }
.cz-modelo:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -22px rgba(8,21,52,.5); }
.cz-modelo input { position: absolute; opacity: 0; pointer-events: none; }
.cz-modelo-img { display: block; aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 60%, #fff, #e3eef7); }
.cz-modelo-img img { width: 100%; height: 100%; object-fit: contain; }
.cz-modelo-txt { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 12px; }
.cz-modelo-txt b { font: 400 22px var(--f-display); color: var(--azul-profundo); line-height: 1; }
.cz-modelo-txt span { font-size: 13px; color: var(--texto-2); line-height: 1.3; }
.cz-modelo:has(input:checked) { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(0,124,186,.18); }
.cz-modelo:has(input:focus-visible) { outline: 2px solid var(--azul); outline-offset: 2px; }
.cz-ayuda { margin: 14px 0 0; font-size: 14px; color: var(--texto-2); }
.cz-version { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center; }
.cz-vista { position: relative; border-radius: 20px; background: radial-gradient(70% 70% at 50% 60%, #fff 0%, #e8f2fa 70%, #d6e8f5 100%); aspect-ratio: 4 / 3; overflow: hidden; }
.cz-vista img { width: 100%; height: 100%; object-fit: contain; }
.cz-vista span { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92); font: 600 12px var(--f-tecnica); letter-spacing: .12em; text-transform: uppercase; }
.cz-opciones { display: grid; gap: 16px; }
.cz-op > span, .cz-etq { display: block; margin-bottom: 8px; font: 600 12px var(--f-tecnica); letter-spacing: .14em; text-transform: uppercase; color: var(--texto-2); }
.cz .chip { position: relative; cursor: pointer; padding: 0 14px; }
.cz .chip:has(i) { padding-left: 8px; }
.cz .chip input { position: absolute; opacity: 0; pointer-events: none; }
.cz .chip small { font-size: 11px; color: var(--texto-2); margin-left: 2px; }
.cz .chip:has(input:checked) { border-color: var(--marino); box-shadow: inset 0 0 0 1px var(--marino); background: #fff; }
.cz .chip:has(input:focus-visible) { outline: 2px solid var(--azul); outline-offset: 2px; }
.cz-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.cz-campo { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cz-campo > label { font: 600 12px var(--f-tecnica); letter-spacing: .14em; text-transform: uppercase; color: var(--texto-2); }
.cz-campo small { text-transform: none; letter-spacing: 0; font-family: var(--f-texto); font-weight: 400; }
.cz-ancho { grid-column: 1 / -1; }
.cz-campo input[type="text"], .cz-campo textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--linea); background: var(--papel); color: var(--marino); font: 16px var(--f-texto); }
.cz-campo textarea { resize: vertical; }
.cz-campo input:focus, .cz-campo textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(0,124,186,.15); background: #fff; }
.cz-num { display: flex; align-items: center; gap: 8px; }
.cz-num button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--linea); background: #fff; color: var(--marino); font-size: 22px; cursor: pointer; }
.cz-num input { width: 96px; height: 50px; border-radius: 14px; border: 1.5px solid var(--linea); text-align: center; font: 400 28px var(--f-display); color: var(--marino); background: var(--papel); }
.cz-num span { font: 400 22px var(--f-display); color: var(--texto-2); }
.cz-metros input[type="range"] { width: 100%; accent-color: var(--azul); }
.cz-resumen { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 14px; border-radius: 18px; background: var(--papel); }
.cz-resumen:empty { display: none; }
.cz-resumen img { width: 120px; height: 90px; object-fit: contain; border-radius: 12px; background: #fff; flex: none; }
.cz-resumen dl { margin: 0; display: grid; gap: 4px; font-size: 14px; }
.cz-resumen dl div { display: flex; gap: 10px; }
.cz-resumen dt { min-width: 64px; font: 600 11px var(--f-tecnica); letter-spacing: .14em; text-transform: uppercase; color: var(--texto-2); padding-top: 3px; }
.cz-resumen dd { margin: 0; }
.cz-nav { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.cz-nav [data-cz-siguiente], .cz-nav .cz-enviar { margin-left: auto; }
.cz-nav [hidden] { display: none; }
.cz-atras-ico { transform: rotate(180deg); }
.cz-error { margin: 0; color: #c0392b; font-size: 14px; font-weight: 600; }
.cz-enviar { background: #25d366; }
.cz-enviar:hover { background: #1ebe5b; }
.cz-privado { margin: 14px 0 0; font-size: 13px; color: var(--texto-2); }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 80px); background: #fff; }
.faq-cabeza h2 { margin: 16px 0 0; font-size: clamp(44px, 5vw, 84px); line-height: .9; color: var(--marino); }
.faq-cabeza h2 em { font-style: normal; color: var(--azul); }
.faq-lista { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--linea); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: clamp(17px, 1.3vw, 20px); color: var(--marino); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--papel); transition: background .3s, transform .4s cubic-bezier(.2,1.2,.4,1); }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; margin: -.9px 0 0 -6px; background: var(--marino); border-radius: 2px; }
.faq-item summary i::after { transform: rotate(90deg); transition: transform .3s; }
.faq-item[open] summary i { background: var(--azul); transform: rotate(180deg); }
.faq-item[open] summary i::before, .faq-item[open] summary i::after { background: #fff; }
.faq-item[open] summary i::after { transform: rotate(0); }
.faq-item summary:hover { color: var(--azul); }
.faq-item p { margin: 0; padding: 0 50px 24px 0; color: var(--texto-2); font-size: 16px; line-height: 1.6; }
.faq-item[open] p { animation: faq-abre .45s cubic-bezier(.2,.8,.2,1); }
@keyframes faq-abre { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 900px) {
  .bh { grid-template-columns: 1fr; min-height: 0; padding-top: 100px; gap: 36px; }
  .bh-fotos { max-width: 480px; }
  .bh-datos b { font-size: 34px; }
  .d3 { grid-template-columns: 1fr; }
  .d3-telefono { max-width: 280px; order: 2; }
  .ad { grid-template-columns: 1fr; max-width: 540px; width: 100%; margin-inline: auto; }
  .ad-flecha { justify-self: center; transform: rotate(90deg); }
  .obras-cabeza, .cz-cabeza { grid-template-columns: 1fr; }
  .cz-version { grid-template-columns: 1fr; }
  .cz-campos { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cz-caja { border-radius: 22px; padding: 18px 14px; }
  .cz-pasos li span { display: none; }
  .cz-pasos { grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .cz-modelos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cz-nav { flex-wrap: wrap; }
  .cz-nav .btn { flex: 1; }
  .cz-error { order: -1; flex-basis: 100%; }
  .cz-resumen { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .bh-fotos img { animation: none; } }

/* Contraste AA en rótulos pequeños sobre fondos claros */
.bh .eyebrow, .d3-texto .eyebrow, .obras-cabeza .eyebrow, .faq-cabeza .eyebrow { color: var(--azul-profundo); }
