/* HearthCents — página de presentación. Estilo NeoGest claro: página blanca, titular grande centrado,
   tarjetas blancas y negras con pantallas de la app y botones píldora. El único color es el de la app.
   Tipografía: Inter, la misma que NeoGest. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.260c81a4759b.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body.landing {
  --tinta: #0d0d0d;
  --papel: #ffffff;
  --gris: #5c5c5c;
  --raya: #e6e6e6;
  --humo: #f4f4f2;
  background: var(--papel);
  color: var(--tinta);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}
.landing h1, .landing h2, .landing h3, .landing .titulo-xl { font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.landing a:focus-visible, .landing summary:focus-visible, .landing select:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; border-radius: 8px; }
.lp-ancho { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ---------------------------------------------------- barra superior */
.lp-barra { display: flex; align-items: center; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.lp-marca { display: inline-flex; align-items: center; gap: 11px; font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; white-space: nowrap; flex: 1; }
.lp-marca .logo { width: 40px; height: auto; display: block; }
.lp-marca span { color: #17793d; }
.landing .idioma .ico { display: none; }
.landing .idioma select { border: 1px solid #d5d5d5; color: #333; background: #fff; border-radius: 999px; padding: 9px 14px; font-size: 0.92rem; }
.lp-pildora { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 28px; border-radius: 999px; background: var(--tinta); color: #fff; font-weight: 600; font-size: 1.05rem; border: 1.5px solid var(--tinta); white-space: nowrap; transition: transform .15s ease; }
.lp-pildora:hover { transform: translateY(-1px); }
.lp-pildora.clara { background: #fff; color: var(--tinta); border-color: #cfcfcf; }
.lp-pildora.mini { min-height: 42px; padding: 8px 18px; font-size: 0.95rem; }
.lp-pildora.blanca { background: #fff; color: var(--tinta); border-color: #fff; }
.lp-pildora.borde-blanco { background: transparent; color: #fff; border-color: #5a5a5a; }

.lp-cabecera { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(0,0,0,.06); }
.lp-cabecera .lp-barra { padding-top: 12px; padding-bottom: 12px; }
.lp-botones form { display: contents; }
button.lp-pildora { cursor: pointer; font-family: inherit; }
.lp-pildora .ico { width: 1.15em; height: 1.15em; }
.lp-nota-demo { color: var(--gris); font-size: 0.92rem; margin-top: 14px; }

/* ---------------------------------------------------- portada */
.lp-portada { text-align: center; padding-top: clamp(34px, 7vw, 84px); }
.lp-portada h1 { font-size: clamp(2.5rem, 7.6vw, 5.9rem); max-width: 15ch; margin: 0 auto; text-wrap: balance; }
.lp-portada .bajada { font-size: clamp(1.12rem, 2.3vw, 1.45rem); color: var(--gris); max-width: 31em; margin: 26px auto 30px; text-wrap: pretty; }
.lp-botones { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.lp-escena { position: relative; margin: clamp(40px, 7vw, 76px) auto 0; max-width: 980px; height: 640px; }
.lp-escena::before { content: ""; position: absolute; left: 50%; bottom: 0; width: min(1120px, 100vw); height: 62%; transform: translateX(-50%); background: var(--humo); border-radius: 44px 44px 0 0; }

/* teléfono con la app dentro (HTML de verdad, no una captura) */
.lp-tel { position: relative; width: 300px; border-radius: 46px; padding: 11px; background: #0d0d0d; box-shadow: 0 40px 80px -30px rgba(0,0,0,.45), 0 0 0 1.5px #2c2c2c inset; text-align: left; }
.lp-tel::before { content: ""; position: absolute; top: 21px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 999px; background: #000; z-index: 2; }
.lp-pantalla { border-radius: 36px; background: var(--fondo); color: var(--texto); padding: 58px 18px 20px; font-size: 13.5px; line-height: 1.4; overflow: hidden; min-height: 560px; position: relative; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.lp-pantalla .etiqueta { font-size: 0.95em; margin: 18px 0 7px; }
.lp-pantalla .gran-cifra { font-size: 3.1em; margin: 0 0 2px; }
.lp-pantalla .dato-dia { font-size: 0.92em; }
.lp-pantalla .linea-barra { font-size: 1.02em; margin: 12px 0 6px; }
.lp-pantalla .barra { height: 10px; }
.lp-pantalla .pie-barra { font-size: 0.86em; margin-top: 6px; }
.lp-pantalla .cabecera-mini { display: flex; justify-content: space-between; align-items: center; color: var(--suave); margin-bottom: 14px; }
.lp-pantalla .cabecera-mini .ico { width: 1.4em; height: 1.4em; color: var(--texto); }
.lp-pantalla .fab-mini { position: absolute; right: 16px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: var(--claro); color: var(--tinta, #141414); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.5); }
.lp-pantalla .fab-mini .ico { width: 24px; height: 24px; stroke-width: 2.3; color: #141414; }
.lp-pantalla .caja { font-size: 0.95em; padding: 11px 13px; border-radius: 11px; }
.lp-pantalla .insignia { font-size: 0.82em; padding: 5px 9px; border-radius: 8px; }

.lp-escena .lp-tel { position: absolute; left: 50%; top: 0; margin-left: -150px; z-index: 3; }
.lp-escena .lp-pantalla .barra > span { animation: lp-llenar 1.1s cubic-bezier(.2,.7,.2,1) both; animation-delay: .35s; }
.lp-escena .lp-pantalla a:nth-of-type(2) .barra > span, .lp-escena .lp-pantalla .p2 > span { animation-delay: .5s; }
@keyframes lp-llenar { from { width: 0 !important; } }

/* el ticket de papel y lo que la app saca de él */
.lp-papel { position: absolute; left: 4%; top: 150px; z-index: 2; transform: rotate(-7deg); filter: drop-shadow(0 1px 0 #dedede) drop-shadow(0 -1px 0 #ececec) drop-shadow(0 22px 26px rgba(0,0,0,.2)); }
.lp-ticket { width: 218px; padding: 20px 18px 30px; background: #fff; color: #222; text-align: left; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; line-height: 1.75;
  --diente: 9px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--diente) 51% repeat-x, linear-gradient(#000 0 0) top / 100% 50.5% no-repeat;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--diente) 51% repeat-x, linear-gradient(#000 0 0) top / 100% 50.5% no-repeat; }
.lp-ticket strong { display: block; text-align: center; font-size: 13px; letter-spacing: .08em; margin-bottom: 6px; }
.lp-ticket .l { display: flex; justify-content: space-between; gap: 8px; }
.lp-ticket .raya { border-top: 1px dashed #b5b5b5; margin: 7px 0; }
.lp-ticket .total { font-weight: 700; font-size: 15px; background: #fff3a8; margin: 0 -6px; padding: 1px 6px; }
.lp-leido { position: absolute; right: 3%; top: 120px; z-index: 4; width: 250px; text-align: left; background: #fff; border: 1px solid var(--raya); border-radius: 22px; padding: 18px 20px; box-shadow: 0 26px 50px -26px rgba(0,0,0,.35); animation: lp-aparece .6s ease both; animation-delay: .7s; }
.lp-leido small { color: var(--gris); font-size: 0.86rem; display: block; }
.lp-leido .cifra { font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: 2.5rem; letter-spacing: -0.03em; line-height: 1.1; }
.lp-leido .concepto-mini { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 7px 14px; border-radius: 999px; background: #eaf1ff; color: #1d4ed8; font-size: 0.92rem; font-weight: 600; }
.lp-leido .concepto-mini .ico { width: 1.15em; height: 1.15em; }
.lp-aviso { position: absolute; right: 7%; top: 372px; z-index: 4; text-align: left; background: var(--tinta); color: #fff; border-radius: 18px; padding: 14px 18px; font-size: 0.95rem; max-width: 230px; box-shadow: 0 26px 50px -26px rgba(0,0,0,.5); animation: lp-aparece .6s ease both; animation-delay: 1s; }
.lp-aviso b { color: #ffb347; font-weight: 600; }
@keyframes lp-aparece { from { opacity: 0; transform: translateY(14px); } }

/* ---------------------------------------------------- secciones */
.lp-seccion { padding-top: clamp(70px, 11vw, 140px); }
.lp-titulo { font-size: clamp(2.1rem, 5.6vw, 4rem); text-align: center; max-width: 16ch; margin: 0 auto; text-wrap: balance; }
.lp-subtitulo { text-align: center; color: var(--gris); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 34em; margin: 18px auto 0; text-wrap: pretty; }

/* tres pasos: es una secuencia de verdad, por eso van numerados */
.lp-pasos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(34px, 5vw, 60px); }
.lp-paso { border-radius: 32px; padding: 30px 28px 0; border: 1px solid var(--raya); background: #fff; display: flex; flex-direction: column; overflow: hidden; min-height: 520px; }
.lp-paso.negra { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.lp-paso .num { font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: 4.4rem; line-height: .9; letter-spacing: -0.05em; color: #d9d9d9; }
.lp-paso.negra .num { color: #4a4a4a; }
.lp-paso h3 { font-size: 1.75rem; margin: 16px 0 8px; }
.lp-paso > p { color: var(--gris); font-size: 1.02rem; }
.lp-paso.negra > p { color: #b4b4b4; }
.lp-paso .lp-recorte { margin: 26px -6px 0; flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.lp-recorte .lp-tel { width: 100%; max-width: 268px; border-radius: 38px 38px 0 0; padding: 9px 9px 0; box-shadow: none; }
.lp-recorte .lp-tel::before { display: none; }
.lp-recorte .lp-pantalla { border-radius: 30px 30px 0 0; min-height: 0; height: 232px; padding: 22px 16px 0; font-size: 12.5px; }
.lp-paso.negra .lp-tel { background: #2a2a2a; }
.lp-mini-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--borde); }
.lp-mini-fila span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.lp-mini-fila .ico { width: 1.25em; height: 1.25em; }
.lp-mini-conceptos { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; }
.lp-mini-conceptos span { display: flex; align-items: center; gap: 7px; padding: 9px 10px; border: 1px solid var(--borde); border-radius: 10px; background: var(--tarjeta); }
.lp-mini-conceptos span.sel { background: var(--azul-fondo); border-color: var(--azul-borde); color: var(--azul); }
.lp-mini-conceptos .ico { width: 1.2em; height: 1.2em; }

/* calculadora: la cuenta de la configuración del mes, para probarla sin registrarse */
.lp-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 36px; overflow: hidden; border: 1px solid var(--raya); }
.lp-calc-entrada { padding: clamp(26px, 4vw, 48px); background: #fff; }
.lp-calc-entrada h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.lp-calc-entrada > p { color: var(--gris); margin: 12px 0 22px; max-width: 26em; }
.lp-calc-entrada label { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--raya); font-size: 1.05rem; }
.lp-calc-campo { position: relative; flex: none; }
.lp-calc-campo::after { content: "€"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--gris); pointer-events: none; }
.lp-calc-campo input { width: 150px; text-align: right; font: inherit; font-weight: 600; font-size: 1.2rem; padding: 12px 38px 12px 12px; border: 1.5px solid #d5d5d5; border-radius: 14px; background: #fff; color: var(--tinta); font-variant-numeric: tabular-nums; }
.lp-calc-campo input:focus { outline: 3px solid #2563eb; outline-offset: 1px; border-color: transparent; }
.lp-calc-salida { padding: clamp(26px, 4vw, 48px); background: var(--tinta); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.lp-calc-salida small { color: #b4b4b4; font-size: 1.02rem; }
.lp-calc-cifra { font-weight: 700; font-size: clamp(3.2rem, 8vw, 5.6rem); letter-spacing: -0.04em; line-height: 1; margin: 8px 0 26px; color: #8fd14f; font-variant-numeric: tabular-nums; }
.lp-calc.falta .lp-calc-cifra { color: #ff7b7f; }
.lp-calc-barra { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: #2a2a2a; }
.lp-calc-barra i { display: block; height: 100%; transition: width .35s ease; }
.lp-calc-barra i:nth-child(1) { background: #6a5cf0; }
.lp-calc-barra i:nth-child(2) { background: #f0a020; }
.lp-calc-barra i:nth-child(3) { background: #62991f; }
.lp-calc-leyenda { list-style: none; padding: 0; margin: 16px 0 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #b4b4b4; font-size: 0.95rem; }
.lp-calc-leyenda li { display: flex; align-items: center; gap: 8px; }
.lp-calc-leyenda i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.lp-calc-leyenda .c1 { background: #6a5cf0; } .lp-calc-leyenda .c2 { background: #f0a020; } .lp-calc-leyenda .c3 { background: #62991f; }
.lp-calc-leyenda b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-calc-salida .lp-pildora { align-self: flex-start; }

/* mosaico */
.lp-mosaico { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-top: clamp(34px, 5vw, 60px); }
.lp-pieza { border-radius: 32px; padding: 32px; border: 1px solid var(--raya); background: #fff; display: flex; flex-direction: column; gap: 22px; }
.lp-pieza.negra { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.lp-pieza.a { grid-column: span 3; }
.lp-pieza.b { grid-column: span 4; }
.lp-pieza.c { grid-column: span 2; }
.lp-pieza h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.lp-pieza > div > p { color: var(--gris); margin-top: 8px; font-size: 1.02rem; max-width: 30em; }
.lp-pieza.negra > div > p { color: #b4b4b4; }
.lp-muestra { border-radius: 22px; background: var(--fondo); color: var(--texto); padding: 20px; font-size: 14.5px; margin-top: auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.lp-pieza.negra .lp-muestra { background: #1c1c1c; }
.lp-muestra .linea-barra { margin: 12px 0 7px; font-size: 1em; }
.lp-muestra .linea-barra:first-child { margin-top: 0; }
.lp-muestra .barra { height: 11px; }
.lp-muestra .factura-mini { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--borde); }
.lp-muestra .factura-mini:last-child { border-bottom: 0; padding-bottom: 0; }
.lp-muestra .factura-mini:first-child { padding-top: 0; }
.lp-muestra .factura-mini > span:first-child { display: inline-flex; align-items: center; gap: 9px; font-size: 1.05em; }
.lp-muestra .insignia { font-size: 0.82em; padding: 5px 10px; }
.lp-muestra .frase-mini { background: var(--verde-fondo); color: var(--verde-texto); border-radius: 12px; padding: 14px 16px; font-size: 1.12em; line-height: 1.35; }
.lp-columnas { display: flex; align-items: flex-end; gap: 12px; height: 132px; margin-top: 18px; }
.lp-columnas div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; color: var(--tenue); font-size: 0.8em; }
.lp-columnas i { display: block; width: 100%; max-width: 54px; border-radius: 8px 8px 3px 3px; background: #3d3690; }
.lp-columnas div:last-child { color: var(--texto); }
.lp-columnas div:last-child i { background: #6a5cf0; }
.lp-hucha { font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: 2.6rem; letter-spacing: -0.03em; line-height: 1; }
.lp-hucha small { display: block; font-family: -apple-system, "Segoe UI", sans-serif; font-weight: 400; font-size: 0.95rem; letter-spacing: 0; color: var(--suave); margin-top: 8px; }

/* lo que no hace */
.lp-noes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(34px, 5vw, 60px); border-top: 1.5px solid var(--tinta); }
.lp-noes div { padding: 26px 26px 6px 0; }
.lp-noes div + div { padding-left: 26px; border-left: 1px solid var(--raya); }
.lp-noes h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.lp-noes p { color: var(--gris); margin-top: 10px; font-size: 1.02rem; }

/* preguntas */
.lp-preguntas { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 70px); align-items: start; }
.lp-preguntas .lp-titulo { text-align: left; margin: 0; max-width: 9ch; }
.lp-preguntas details { border-top: 1px solid var(--raya); }
.lp-preguntas details:last-child { border-bottom: 1px solid var(--raya); }
.lp-preguntas summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 600; font-size: 1.3rem; letter-spacing: -0.015em; position: relative; }
.lp-preguntas summary::-webkit-details-marker { display: none; }
.lp-preguntas summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.7rem; font-weight: 400; color: var(--gris); transition: transform .2s ease; }
.lp-preguntas details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.lp-preguntas details p { color: var(--gris); padding: 0 30px 24px 0; max-width: 38em; }

/* cierre */
.lp-cierre { margin-top: clamp(70px, 11vw, 140px); background: var(--tinta); color: #fff; border-radius: 44px; padding: clamp(46px, 8vw, 100px) 26px; text-align: center; }
.lp-cierre h2 { font-size: clamp(2.3rem, 6.6vw, 5rem); max-width: 13ch; margin: 0 auto; text-wrap: balance; }
.lp-cierre p { color: #b4b4b4; max-width: 30em; margin: 20px auto 30px; font-size: 1.12rem; }
.lp-pie { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; color: #7d7d7d; font-size: 0.9rem; padding-top: 34px; padding-bottom: 46px; }

/* ---------------------------------------------------- pantallas medianas y móvil */
@media (max-width: 980px) {
  .lp-papel { left: 0; }
  .lp-leido { right: 0; }
  .lp-aviso { right: 2%; }
  .lp-pasos { grid-template-columns: 1fr; }
  .lp-calc { grid-template-columns: 1fr; border-radius: 28px; }
  .lp-paso { min-height: 0; }
  .lp-pieza.a, .lp-pieza.b, .lp-pieza.c { grid-column: span 6; }
  .lp-preguntas { grid-template-columns: 1fr; }
  .lp-preguntas .lp-titulo { max-width: none; }
}
@media (max-width: 760px) {
  body.landing { font-size: 17px; }
  .lp-escena { height: auto; padding-bottom: 0; display: flex; flex-direction: column; align-items: center; }
  .lp-escena::before { height: 78%; border-radius: 34px 34px 0 0; }
  .lp-escena .lp-tel { position: relative; left: auto; margin: 0; order: 2; margin-top: -54px; }
  .lp-papel { position: relative; left: auto; top: auto; order: 1; transform: rotate(-4deg) translateX(-62px); }
  .lp-ticket { width: 200px; }
  .lp-leido { top: 58px; right: 0; width: 168px; padding: 13px 15px; border-radius: 18px; }
  .lp-leido .cifra { font-size: 1.8rem; }
  .lp-leido .concepto-mini { font-size: 0.82rem; padding: 5px 11px; margin-top: 7px; }
  .lp-aviso { display: none; }
  .lp-noes { grid-template-columns: 1fr; }
  .lp-noes div, .lp-noes div + div { padding: 22px 0 16px; border-left: 0; }
  .lp-noes div + div { border-top: 1px solid var(--raya); }
  .lp-pieza, .lp-paso { border-radius: 26px; padding: 26px 22px; }
  .lp-paso { padding-bottom: 0; }
  .lp-cierre { border-radius: 30px; }
  .lp-barra .lp-pildora.mini { padding: 8px 15px; }
}
@media (max-width: 380px) {
  .lp-marca { font-size: 1.1rem; gap: 8px; }
  .lp-marca .logo { width: 34px; }
  .landing .idioma select { padding: 8px 9px; font-size: 0.85rem; }
  .lp-leido { width: 146px; right: -6px; top: 70px; }
  .lp-leido .cifra { font-size: 1.55rem; }
  .lp-papel { transform: rotate(-4deg) translateX(-50px); }
  .lp-ticket { width: 180px; font-size: 11px; }
  .lp-barra { gap: 7px; }
  .lp-barra .lp-pildora.mini { padding: 8px 12px; font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-escena .lp-pantalla .barra > span, .lp-leido, .lp-aviso { animation: none; }
  .lp-pildora { transition: none; }
  .lp-calc-barra i { transition: none; }
}
