/* Piel del configurador de todochimeneas (WP Cost Estimation / LFB, formulario 9).
   Solo CSS: mismos pasos, capas, precios y lógica de LFB. En WordPress se encola solo donde está el formulario 9.
   Paleta de la portada sincronizada por piel-gen.py.
   NO EDITAR lfb-piel.css a mano: se genera con lfb/piel-gen.py desde lfb/piel-plantilla.css. */
:root { --negro: #000000; --blanco: #F3ECE2; --fuego: #E8641E; --claro: #FFFFFF; --tc-flecha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23000000' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); }
:root[data-paleta="mixta"] { --negro: #13110F; --tc-flecha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2313110F' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); }
:root { --tc-carbon: var(--negro); --tc-ceniza: var(--blanco); --tc-papel: #F8F8F8; --tc-escena: #E5E5E5; --tc-piedra: #656565; --tc-texto: #555555; --tc-linea: color-mix(in srgb, var(--tc-carbon) 12%, transparent); --tc-brasa: var(--fuego); --tc-pad: clamp(16px, 3vw, 40px); }
:root[data-paleta="mixta"] { --tc-papel: #FBF8F3; --tc-escena: #E8DFD2; --tc-piedra: #6A5D51; --tc-texto: var(--tc-piedra); }
body.mhsc-lfb-lazy-document, body #lfb_bootstraped { background: var(--tc-ceniza) !important; }
body #lfb_bootstraped #lfb_form { font-family: "Geist", "Geist Fallback", Arial, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important; color: var(--tc-carbon); background: transparent !important; -webkit-font-smoothing: antialiased; }
body #lfb_bootstraped #lfb_form #lfb_mainPanel { background: transparent !important; }
body #lfb_bootstraped #lfb_form #lfb_loader { background-color: var(--tc-ceniza) !important; }
body #lfb_bootstraped #lfb_form #lfb_loader .double-bounce1, body #lfb_bootstraped #lfb_form #lfb_loader .double-bounce2 { background-color: var(--tc-brasa) !important; }
body #lfb_bootstraped #lfb_form .lfb_shineCanvas { display: none !important; }
body #lfb_bootstraped #lfb_form .lfb_genContent.container { max-width: 1200px !important; margin-top: 0 !important; padding: 0 var(--tc-pad) var(--tc-pad) !important; }

/* título: arriba a la izquierda, sin la animación de posición */
body #lfb_bootstraped #lfb_form .lfb_genSlide .lfb_stepTitle { position: static !important; top: auto !important; margin: 0 auto !important; max-width: 1200px; padding: clamp(28px, 4vw, 56px) var(--tc-pad) clamp(20px, 2.4vw, 32px) !important; text-align: left !important; font-size: clamp(30px, 3.4vw, 48px) !important; font-weight: 500 !important; letter-spacing: -.035em; line-height: 1.04 !important; color: var(--tc-carbon) !important; }

/* rejilla: configuración arriba, barra de precio pegada abajo, contacto, resumen y pago */
body #lfb_bootstraped #lfb_form .lfb_genContentSlide.row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; margin: 0 !important; }
body #lfb_bootstraped #lfb_form .lfb_genContentSlide.row > * { grid-column: 1 / -1; width: auto !important; max-width: none !important; padding: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
body #lfb_bootstraped #lfb_form .lfb_genContentSlide.row > .lfb_itemContainer_281 { grid-row: 1; }
body #lfb_bootstraped #lfb_form .lfb_genContentSlide.row::after, body #lfb_bootstraped #lfb_form .lfb_itemContainer_281.row::before, body #lfb_bootstraped #lfb_form .lfb_itemContainer_281.row::after, body #lfb_bootstraped #lfb_form .lfb_itemContainer_307.row::before, body #lfb_bootstraped #lfb_form .lfb_itemContainer_307.row::after { content: none !important; display: none !important; }
/* la barra: un fondo y tres piezas pegadas con el mismo desfase que tienen en la fila, así se mueven juntas */
body #lfb_bootstraped #lfb_form .lfb_genContentSlide.row::before { content: ""; grid-row: 2; grid-column: 1 / -1; position: sticky; bottom: 0; z-index: 4; height: 92px; margin: 0 calc(-1 * var(--tc-pad)); background: color-mix(in srgb, var(--tc-papel) 96%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-top: 1px solid var(--tc-linea); }
body #lfb_bootstraped #lfb_form #lfb_finalLabel, body #lfb_bootstraped #lfb_form #lfb_finalPrice, body #lfb_bootstraped #lfb_form .lfb_genContentSlide.row > .lfb_itemContainer_345 { grid-row: 2; position: sticky !important; z-index: 5; align-self: end; }
body #lfb_bootstraped #lfb_form #lfb_finalLabel { grid-column: 1; bottom: 54px; margin: 0 0 54px !important; text-align: left !important; font-size: 0 !important; font-weight: 500; line-height: 1.2 !important; color: var(--tc-piedra) !important; }
body #lfb_bootstraped #lfb_form #lfb_finalPrice { grid-column: 1; bottom: 16px; margin: 0 0 16px !important; text-align: left !important; font-size: clamp(28px, 2.6vw, 34px) !important; font-weight: 500 !important; line-height: 1 !important; color: var(--tc-carbon) !important; }
body #lfb_bootstraped #lfb_form #lfb_finalPrice span { letter-spacing: -.03em !important; font-variant-numeric: tabular-nums; color: inherit !important; font: inherit !important; }
body #lfb_bootstraped #lfb_form .lfb_genContentSlide.row > .lfb_itemContainer_345 { grid-column: 2; bottom: 20px; margin: 0 0 20px !important; height: auto !important; }

body #lfb_bootstraped #lfb_form #lfb_finalLabel::after { content: "Precio final, IVA incluido"; font-size: 13px; }

/* configuración: escena del render a la izquierda, opciones a la derecha */
body #lfb_bootstraped #lfb_form .lfb_itemContainer_281.row { display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr); grid-template-areas: "img a" "img b" "img t"; grid-template-rows: auto auto 1fr; gap: 28px clamp(24px, 3.4vw, 56px); margin: 0 0 28px !important; }
body #lfb_bootstraped #lfb_form .lfb_itemContainer_281 > .lfb_column { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; float: none !important; }
body #lfb_bootstraped #lfb_form .lfb_itemContainer_281 > .col-md-6 { grid-area: img; }
body #lfb_bootstraped #lfb_form .lfb_itemContainer_281 > .col-md-3:nth-of-type(2) { grid-area: a; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; align-content: start; }
body #lfb_bootstraped #lfb_form .lfb_itemContainer_281 > .col-md-3:nth-of-type(3) { grid-area: b; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: start; }
body #lfb_bootstraped #lfb_form .lfb_itemContainer_281 > .col-md-12 { grid-area: t; }
body #lfb_bootstraped #lfb_form .lfb_itemContainer_281 > .col-md-3 > .lfb_itemBloc:not(.lfb_btnContainer) { grid-column: 1 / -1; margin: 0 0 18px !important; padding: 0 !important; width: auto !important; }
/* rótulos que faltaban: «Base» y «Montaje» */
body #lfb_bootstraped #lfb_form .lfb_itemContainer_277::after { content: "Base"; display: block; text-align: left; margin: 18px 0 -10px; font-size: 13px; font-weight: 500; color: var(--tc-piedra); }
body #lfb_bootstraped #lfb_form .lfb_itemContainer_281 > .col-md-3:nth-of-type(3)::before { content: "Montaje"; grid-column: 1 / -1; text-align: left; font-size: 13px; font-weight: 500; color: var(--tc-piedra); }

/* escena: el blanco del fondo de LFB se funde con el papel cálido; el render no cambia */
body #lfb_bootstraped #lfb_form .lfb_itemContainer_280 { margin: 0 !important; padding: 0 !important; background: var(--tc-escena); border-radius: 24px; overflow: hidden; }
body #lfb_bootstraped #lfb_form .lfb_layeredImage { mix-blend-mode: multiply; box-shadow: none !important; border: 0 !important; background: transparent !important; margin: 0 auto !important; }

/* campos */
body #lfb_bootstraped #lfb_form .form-group { margin: 0 !important; }
body #lfb_bootstraped #lfb_form .form-group > label { display: block !important; margin: 0 0 8px !important; text-align: left !important; font-size: 13px !important; font-weight: 500 !important; color: var(--tc-piedra) !important; }
body #lfb_bootstraped #lfb_form .form-control { height: 52px !important; width: 100% !important; padding: 0 16px !important; border: 1px solid color-mix(in srgb, var(--tc-carbon) 16%, transparent) !important; border-radius: 14px !important; background-color: var(--claro) !important; color: var(--tc-carbon) !important; font: 500 15px/1.2 "Geist", "Geist Fallback", Arial, ui-sans-serif, system-ui, sans-serif !important; text-align: left !important; text-align-last: left; box-shadow: none !important; transition: border-color .2s; }
body #lfb_bootstraped #lfb_form select.form-control { -webkit-appearance: none; appearance: none; padding-right: 44px !important; background-image: var(--tc-flecha) !important; background-repeat: no-repeat !important; background-position: right 18px center !important; background-size: 12px 8px !important; cursor: pointer; }
body #lfb_bootstraped #lfb_form .form-control:hover { border-color: color-mix(in srgb, var(--tc-carbon) 40%, transparent) !important; }
body #lfb_bootstraped #lfb_form .form-control:focus { border-color: var(--tc-carbon) !important; outline: 3px solid color-mix(in srgb, var(--tc-brasa) 28%, transparent) !important; outline-offset: 0; }

/* opciones: píldoras blancas; la elegida, en carbón (antes salía en naranja pálido y parecía desactivada) */
body #lfb_bootstraped #lfb_form .lfb_itemContainer_281 .lfb_btnContainer { width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; float: none !important; }
body #lfb_bootstraped #lfb_form .lfb_btnContainer .lfb_button.btn { display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100% !important; min-width: 0 !important; height: 48px !important; margin: 0 !important; padding: 0 10px !important; border: 1px solid var(--tc-linea) !important; border-radius: 999px !important; background: var(--claro) !important; color: var(--tc-carbon) !important; box-shadow: none !important; opacity: 1 !important; font-size: 14px !important; font-weight: 500 !important; letter-spacing: -.005em; text-transform: none !important; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s; }
body #lfb_bootstraped #lfb_form .lfb_btnContainer .lfb_button.btn:hover { border-color: var(--tc-carbon) !important; }
body #lfb_bootstraped #lfb_form .lfb_btnContainer .lfb_button.btn:active { transform: scale(.98); }
body #lfb_bootstraped #lfb_form .lfb_btnContainer .lfb_button.btn.checked { background: var(--tc-carbon) !important; border-color: var(--tc-carbon) !important; color: var(--tc-ceniza) !important; }
body #lfb_bootstraped #lfb_form .lfb_btnContainer.lfb_disabled .lfb_button.btn { opacity: .35 !important; pointer-events: none; }
body #lfb_bootstraped #lfb_form .lfb_button .lfb_buttonTitle { color: inherit !important; font: inherit !important; overflow: hidden; text-overflow: ellipsis; }

/* texto de cada tecnología */
body #lfb_bootstraped #lfb_form .lfb_itemContainer_281 > .col-md-12 .lfb_itemBloc { margin: 0 !important; padding: 0 !important; }
body #lfb_bootstraped #lfb_form .lfb_richTextContent { font-size: 14.5px !important; line-height: 1.6 !important; color: var(--tc-texto) !important; text-align: left !important; max-width: 62ch; }

/* contacto */
body #lfb_bootstraped #lfb_form .lfb_itemContainer_307.row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px; margin: 44px 0 0 !important; }
body #lfb_bootstraped #lfb_form .lfb_itemContainer_307 > .lfb_column { width: auto !important; max-width: none !important; padding: 0 !important; }

/* guardar resumen: secundario, en la barra */
body #lfb_bootstraped #lfb_form .lfb_itemContainer_345 .lfb_button.btn { height: 52px !important; padding: 0 24px !important; background: transparent !important; }

/* solicitar presupuesto (lfb-presupuesto.js): acción principal, en la barra del precio junto a «Guardar resumen».
   Pedir presupuesto no compromete dinero; pagar queda abajo, tras los datos y el resumen. */
body #lfb_bootstraped #lfb_form .lfb_genContentSlide.row.tc-con-presupuesto { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 12px; }
body #lfb_bootstraped #lfb_form .lfb_genContentSlide.row > .tc-lfb-presupuesto { grid-row: 2; grid-column: 3; position: sticky !important; z-index: 5; align-self: end; bottom: 20px; margin: 0 0 20px !important; }
body #lfb_bootstraped #lfb_form .tc-lfb-presupuesto a { display: flex; align-items: center; justify-content: center; box-sizing: border-box; height: 52px; padding: 0 28px; border: 1px solid var(--tc-carbon); border-radius: 999px; background: var(--tc-carbon) !important; color: var(--tc-ceniza) !important; font: 500 15px/1 "Geist", "Geist Fallback", Arial, ui-sans-serif, system-ui, sans-serif !important; letter-spacing: -.005em; text-decoration: none !important; white-space: nowrap; cursor: pointer; transition: background .2s, transform .2s; }
body #lfb_bootstraped #lfb_form .tc-lfb-presupuesto a:hover { background: color-mix(in srgb, var(--tc-carbon) 84%, var(--tc-ceniza)) !important; }
body #lfb_bootstraped #lfb_form .tc-lfb-presupuesto a:active { transform: scale(.98); }
body #lfb_bootstraped #lfb_form .tc-lfb-presupuesto a:focus-visible { outline: 3px solid var(--tc-brasa); outline-offset: 3px; }

/* resumen */
body #lfb_bootstraped #lfb_form #lfb_summary { margin-top: 48px !important; }
body #lfb_bootstraped #lfb_form #lfb_summary h4 { margin: 0 0 16px !important; text-align: left !important; font-size: 24px !important; font-weight: 500 !important; letter-spacing: -.02em; color: var(--tc-carbon) !important; }
body #lfb_bootstraped #lfb_form #lfb_summary table { width: 100% !important; border: 0 !important; border-collapse: separate !important; border-spacing: 0; background: var(--claro); border-radius: 18px; overflow: hidden; }
body #lfb_bootstraped #lfb_form #lfb_summary table th, body #lfb_bootstraped #lfb_form #lfb_summary table td { padding: 14px 20px !important; border: 0 !important; border-bottom: 1px solid var(--tc-linea) !important; background: transparent !important; color: var(--tc-carbon) !important; font-size: 15px !important; font-weight: 400 !important; text-align: left; font-variant-numeric: tabular-nums; }
/* cabeceras en inglés (ajuste de LFB): mientras no se cambien en sus textos, se rotulan aquí */
body #lfb_bootstraped #lfb_form #lfb_summary table thead th { font-size: 0 !important; color: var(--tc-piedra) !important; background: var(--claro) !important; }
body #lfb_bootstraped #lfb_form #lfb_summary table thead th::after { font-size: 13px; font-weight: 500; }
body #lfb_bootstraped #lfb_form #lfb_summary table thead th:first-child::after { content: "Concepto"; }
body #lfb_bootstraped #lfb_form #lfb_summary table thead th.lfb_valueTh::after { content: "Detalle"; }
body #lfb_bootstraped #lfb_form #lfb_summary table thead th.lfb_priceTh::after { content: "Precio"; }
body #lfb_bootstraped #lfb_form #lfb_summary .lfb_summaryStep { background: var(--tc-papel) !important; font-weight: 500 !important; text-align: left !important; }
body #lfb_bootstraped #lfb_form #lfb_summary .lfb_priceTd, body #lfb_bootstraped #lfb_form #lfb_summary th:last-child:not(.lfb_summaryStep), body #lfb_bootstraped #lfb_form #lfb_summary td:last-child { text-align: right !important; }
body #lfb_bootstraped #lfb_form #lfb_summary tbody tr:last-child th, body #lfb_bootstraped #lfb_form #lfb_summary tbody tr:last-child td { border-bottom: 0 !important; font-size: 18px !important; font-weight: 600 !important; }

/* pago: textos en español y la acción final en brasa */
body #lfb_bootstraped #lfb_form #lfb_paymentMethodBtns { display: flex !important; flex-wrap: wrap; gap: 10px; justify-content: flex-start !important; margin: 28px 0 0 !important; }
body #lfb_bootstraped #lfb_form #lfb_paymentMethodBtns .btn { display: inline-flex !important; align-items: center; gap: 10px; height: 52px !important; margin: 0 !important; padding: 0 24px !important; border: 1px solid var(--tc-linea) !important; border-radius: 999px !important; background: var(--claro) !important; color: var(--tc-carbon) !important; box-shadow: none !important; font-size: 15px !important; font-weight: 500 !important; }
body #lfb_bootstraped #lfb_form #lfb_paymentMethodBtns .btn.btn-primary { background: var(--tc-carbon) !important; color: var(--tc-ceniza) !important; border-color: var(--tc-carbon) !important; }
body #lfb_bootstraped #lfb_form #lfb_paymentMethodBtns .btn > .fab, body #lfb_bootstraped #lfb_form #lfb_paymentMethodBtns .btn > .fas, body #lfb_bootstraped #lfb_form #lfb_paymentMethodBtns .btn > .fa { display: none !important; }
body #lfb_bootstraped #lfb_form #lfb_paymentMethodBtns .btn > span:not(.fab):not(.fas):not(.fa) { font-size: 0 !important; }
body #lfb_bootstraped #lfb_form #lfb_paymentMethodBtns .btn > span:not(.fab):not(.fas):not(.fa)::after { font-size: 15px; }
body #lfb_bootstraped #lfb_form #lfb_paymentMethodBtns .btn:nth-child(1) > span:not(.fab):not(.fas):not(.fa)::after { content: "Pagar con PayPal"; }
body #lfb_bootstraped #lfb_form #lfb_paymentMethodBtns .btn:nth-child(2) > span:not(.fab):not(.fas):not(.fa)::after { content: "Pagar con tarjeta"; }
body #lfb_bootstraped #lfb_form .lfb_btnNextContainer .btn, body #lfb_bootstraped #lfb_form #lfb_btnPayStripe { height: 56px !important; padding: 0 32px !important; border: 0 !important; border-radius: 999px !important; background: var(--tc-brasa) !important; color: var(--tc-carbon) !important; box-shadow: none !important; font-size: 15px !important; font-weight: 600 !important; letter-spacing: .02em; }

@media (max-width: 767px) {
  body #lfb_bootstraped #lfb_form .lfb_itemContainer_281.row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "img" "a" "b" "t"; gap: 24px; }
  body #lfb_bootstraped #lfb_form .lfb_itemContainer_307.row { grid-template-columns: 1fr; gap: 20px; }
  body #lfb_bootstraped #lfb_form .lfb_itemContainer_281 > .col-md-3:nth-of-type(2) .lfb_button.btn { padding: 0 6px !important; font-size: 13px !important; }
  body #lfb_bootstraped #lfb_form #lfb_summary table th, body #lfb_bootstraped #lfb_form #lfb_summary table td { padding: 12px 12px !important; font-size: 14px !important; }
  body #lfb_bootstraped #lfb_form .lfb_genContentSlide.row::before { height: 84px; }
  body #lfb_bootstraped #lfb_form #lfb_finalLabel { bottom: 50px; margin-bottom: 50px !important; }
  body #lfb_bootstraped #lfb_form #lfb_finalPrice { font-size: 26px !important; }
  body #lfb_bootstraped #lfb_form .lfb_itemContainer_345 .lfb_button.btn { height: 48px !important; padding: 0 18px !important; }
  body #lfb_bootstraped #lfb_form .lfb_genContentSlide.row > .lfb_itemContainer_345 { bottom: 18px; margin-bottom: 18px !important; }
  /* con «Solicitar presupuesto»: precio y «Guardar resumen» arriba; el botón, a todo el ancho debajo */
  body #lfb_bootstraped #lfb_form .lfb_genContentSlide.row.tc-con-presupuesto { grid-template-columns: minmax(0, 1fr) auto; }
  body #lfb_bootstraped #lfb_form .lfb_genContentSlide.row.tc-con-presupuesto::before { height: 152px; }
  body #lfb_bootstraped #lfb_form .lfb_genContentSlide.row.tc-con-presupuesto > .tc-lfb-presupuesto { grid-column: 1 / -1; bottom: 14px; margin-bottom: 14px !important; }
  body #lfb_bootstraped #lfb_form .lfb_genContentSlide.row.tc-con-presupuesto > #lfb_finalPrice { bottom: 80px; margin-bottom: 80px !important; }
  body #lfb_bootstraped #lfb_form .lfb_genContentSlide.row.tc-con-presupuesto > #lfb_finalLabel { bottom: 114px; margin-bottom: 114px !important; }
  body #lfb_bootstraped #lfb_form .lfb_genContentSlide.row.tc-con-presupuesto > .lfb_itemContainer_345 { bottom: 81px; margin-bottom: 81px !important; }
  body #lfb_bootstraped #lfb_form .tc-lfb-presupuesto a { width: 100%; }
}

/* barra de scroll propia (barra.css + barra.js) dentro del iframe: en carbón sobre el fondo claro */
html:has(#lfb_bootstraped) { --bs-c: var(--tc-carbon); }
html:has(#lfb_bootstraped) .bs-doc { top: 12px; bottom: 12px; }
