/* ¿Cuánto Cobro? — estilos compartidos (landing + calculadora) */
:root {
  --crema: #fbf6ef;
  --crema-2: #f3e9dc;
  --tinta: #2b1d16;
  --tinta-2: #5c4a3f;
  --linea: #e4d6c5;
  --frambuesa: #b8325a;
  --frambuesa-hover: #9c2549;
  --verde: #2f7d4f;
  --verde-fondo: #e6f3ea;
  --amarillo: #a86a00;
  --amarillo-fondo: #fdf1d8;
  --rojo: #b3261e;
  --rojo-fondo: #fbe5e3;
  --blanco: #fffdf9;
  --radio: 14px;
  --sombra: 0 1px 2px rgba(43, 29, 22, .06), 0 8px 24px rgba(43, 29, 22, .07);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--frambuesa); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.3rem); font-weight: 650; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.contenedor { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.estrecho { max-width: 720px; }

/* Barra superior */
.barra { position: sticky; top: 0; z-index: 10; background: rgba(251, 246, 239, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); }
.barra .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.marca { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--tinta); text-decoration: none; white-space: nowrap; }
.marca span { color: var(--frambuesa); }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--texto); text-decoration: none; cursor: pointer; text-align: center;
  transition: background .15s, transform .15s, border-color .15s;
}
.boton:active { transform: translateY(1px); }
.boton-principal { background: var(--frambuesa); color: #fff; }
.boton-principal:hover { background: var(--frambuesa-hover); }
.boton-secundario { background: transparent; color: var(--tinta); border-color: var(--tinta); }
.boton-secundario:hover { background: var(--crema-2); }
.boton-chico { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.boton:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid #e7a3b8; outline-offset: 2px; }

/* Secciones */
.seccion { padding: 64px 0; }
.seccion-alt { background: var(--crema-2); }
.etiqueta { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--frambuesa); margin-bottom: 10px; }
.sub { font-size: 1.15rem; color: var(--tinta-2); }

/* Hero */
.hero { padding: 48px 0 64px; }
.hero .contenedor { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .hero .contenedor { grid-template-columns: 1.15fr .85fr; } }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.nota { font-size: .9rem; color: var(--tinta-2); margin-top: 12px; }

/* Teléfono de muestra */
.telefono {
  width: min(320px, 100%); margin: 0 auto; background: var(--tinta); border-radius: 36px; padding: 12px;
  box-shadow: 0 30px 60px rgba(43, 29, 22, .25);
}
.pantalla { background: var(--blanco); border-radius: 26px; padding: 22px 18px; }
.pantalla h4 { font-family: var(--display); font-size: 1.1rem; margin: 0 0 4px; }
.pantalla .pequeno { font-size: .8rem; color: var(--tinta-2); margin-bottom: 14px; }
.fila { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--linea); font-size: .92rem; }
.fila strong { font-variant-numeric: tabular-nums; }
.pastilla { margin-top: 14px; padding: 12px; border-radius: 12px; font-size: .9rem; font-weight: 600; }
.pastilla-roja { background: var(--rojo-fondo); color: var(--rojo); }
.pastilla-verde { background: var(--verde-fondo); color: var(--verde); }
.pastilla-amarilla { background: var(--amarillo-fondo); color: var(--amarillo); }

/* Tarjetas */
.rejilla { display: grid; gap: 16px; }
@media (min-width: 720px) { .rejilla-3 { grid-template-columns: repeat(3, 1fr); } .rejilla-2 { grid-template-columns: repeat(2, 1fr); } }
.tarjeta { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 22px; box-shadow: var(--sombra); }
.tarjeta p:last-child { margin-bottom: 0; }
.numero { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--frambuesa); color: #fff; font-weight: 700; margin-bottom: 10px; }

/* Lista de lo que incluye */
.lista-check { list-style: none; padding: 0; margin: 0; }
.lista-check li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--linea); }
.lista-check li::before { content: "✓"; position: absolute; left: 4px; top: 11px; color: var(--verde); font-weight: 800; }

/* Tabla comparativa */
.tabla-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--blanco); border-radius: var(--radio); overflow: hidden; font-size: .95rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--linea); vertical-align: top; }
th { background: var(--crema-2); font-weight: 700; }

/* Caja de precio */
.precio-caja { background: var(--blanco); border: 2px solid var(--tinta); border-radius: 20px; padding: 28px 22px; text-align: center; box-shadow: var(--sombra); }
.precio { font-family: var(--display); font-size: 3.4rem; font-weight: 700; line-height: 1; margin: 8px 0; }
.precio small { font-size: 1.1rem; font-weight: 500; }
.tachado { text-decoration: line-through; color: var(--tinta-2); }

/* FAQ */
details { background: var(--blanco); border: 1px solid var(--linea); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; font-size: 1.3rem; line-height: 1; color: var(--frambuesa); }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 6px; }

.pie { padding: 32px 0 48px; font-size: .88rem; color: var(--tinta-2); border-top: 1px solid var(--linea); }

/* ---------- Calculadora ---------- */
.calc { padding: 28px 0 64px; }
.calc-rejilla { display: grid; gap: 20px; }
@media (min-width: 940px) { .calc-rejilla { grid-template-columns: 1.25fr .75fr; align-items: start; } .resultado-pegado { position: sticky; top: 76px; } }
.bloque { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 20px; margin-bottom: 16px; }
.bloque h2 { font-size: 1.25rem; margin-bottom: 4px; }
.bloque .ayuda { font-size: .9rem; color: var(--tinta-2); margin-bottom: 14px; }
.campos { display: grid; gap: 12px; }
@media (min-width: 560px) { .campos-2 { grid-template-columns: 1fr 1fr; } .campos-3 { grid-template-columns: 1fr 1fr 1fr; } }
label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 4px; }
input, select {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--linea); border-radius: 10px;
  background: #fff; color: var(--tinta); font: 400 16px/1.3 var(--texto);
}
input:focus, select:focus { border-color: var(--frambuesa); outline: none; }
.con-prefijo { position: relative; }
.con-prefijo span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--tinta-2); font-size: .95rem; pointer-events: none; }
.con-prefijo input { padding-left: 28px; }

.ingrediente { border: 1px solid var(--linea); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: var(--crema); }
.ingrediente-cabeza { display: flex; gap: 10px; align-items: end; margin-bottom: 10px; }
.ingrediente-cabeza > div { flex: 1; }
.quitar { flex: none; width: 46px; height: 46px; border-radius: 10px; border: 1.5px solid var(--linea); background: #fff; color: var(--tinta-2); font-size: 1.2rem; cursor: pointer; }
.quitar:hover { color: var(--rojo); border-color: var(--rojo); }
.par { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-total { font-size: .88rem; color: var(--tinta-2); margin-top: 8px; }
.mini-total strong { color: var(--tinta); }
.error { color: var(--rojo); font-size: .85rem; margin-top: 6px; }

.resultado { background: var(--tinta); color: #fff; border-radius: 18px; padding: 22px; }
.resultado h2 { color: #fff; font-size: 1.3rem; }
.resultado .fila { border-color: rgba(255, 255, 255, .18); }
.resultado .grande { font-family: var(--display); font-size: 2.2rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.resultado .grupo { background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 14px; margin: 12px 0; }
.resultado .grupo small { display: block; opacity: .8; font-size: .82rem; }
.resultado .pastilla { margin-top: 12px; }
.resultado .boton-principal { width: 100%; margin-top: 14px; }
.resultado .boton-secundario { width: 100%; margin-top: 10px; color: #fff; border-color: rgba(255, 255, 255, .6); }
.resultado .boton-secundario:hover { background: rgba(255, 255, 255, .08); }
.vacio { opacity: .75; font-size: .95rem; }
.enlace-boton { background: none; border: 0; padding: 0; color: var(--frambuesa); font: 600 .95rem var(--texto); cursor: pointer; text-decoration: underline; }

/* Gas, luz y agua por minutos (calculadora gratis) */
details.servicios { margin: 8px 0 0; background: var(--crema); padding: 0 14px; }
details.servicios summary { padding: 10px 0; font-size: .9rem; color: var(--frambuesa); }
details.servicios .ayuda { font-size: .88rem; color: var(--tinta-2); }
label.check { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; font-weight: 600; }
label.check input { width: 22px; min-height: 22px; height: 22px; accent-color: var(--frambuesa); }
.servicios-ejemplo { margin-top: 24px; }
.servicios-ejemplo table { margin: 8px 0 4px; }
.servicios-ejemplo td:last-child, .servicios-ejemplo th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Landing v2 */
.pie-telefono { text-align: center; max-width: 320px; margin: 14px auto 0; }
.remate { font-family: var(--display); font-size: 1.25rem; font-weight: 600; line-height: 1.35; margin-top: 20px; }
.escena { border-left: 4px solid var(--frambuesa); padding: 4px 0 4px 18px; margin: 26px 0; }
.escena h3 { margin-bottom: 8px; }
q { font-style: italic; color: var(--tinta-2); }
.tabla-cuenta td:last-child, .tabla-cuenta th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabla-cuenta .fila-fuga th { color: var(--rojo); background: var(--rojo-fondo); }
.dos-numeros { margin: 20px 0 12px; }
.dos-numeros h3 { color: var(--frambuesa); }
.recalculo { margin-top: 24px; border-color: var(--frambuesa); }
.tabla-ojo th:last-child, .tabla-ojo td:last-child { color: var(--verde); font-weight: 600; }
.tabla-comparar td:last-child, .tabla-comparar th:last-child { background: var(--verde-fondo); font-weight: 600; }
.tabla-comparar { min-width: 620px; }
.ancla { margin-top: 18px; }
.garantia { text-align: center; }
.cierre ol { padding-left: 20px; }
.cierre li { margin-bottom: 8px; }
.barra .boton-chico { white-space: nowrap; }
@media (max-width: 420px) { .barra .boton-chico { padding: 8px 12px; font-size: .85rem; } .marca { font-size: 1.05rem; } }

/* Privacidad */
.legal h2 { font-size: 1.3rem; margin-top: 32px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
