@font-face { font-family: "Familjen Grotesk"; src: url("../fonts/familjen-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("../fonts/familjen-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("../fonts/familjen-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --tinta: #13233f;
  --tinta-2: #3d4f6b;
  --azul: #2457d6;
  --azul-osc: #1a43ad;
  --papel: #f4f7fb;
  --blanco: #ffffff;
  --linea: #d5dde9;
  --verde: #11845b;
  --verde-f: #e3f4ec;
  --rojo: #b8322a;
  --rojo-f: #fbe9e7;
  --sombra: 0 18px 40px -22px rgba(19, 35, 63, .35);
  --t-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --t-texto: "Public Sans", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --tinta: #e7edf7;
    --tinta-2: #a9b6ca;
    --azul: #6e98ff;
    --azul-osc: #8fb0ff;
    --papel: #0d1828;
    --blanco: #142238;
    --linea: #263752;
    --verde: #4cc794;
    --verde-f: #12352a;
    --rojo: #f07a70;
    --rojo-f: #3a1b1a;
    --sombra: 0 18px 40px -22px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 400 1.0625rem/1.6 var(--t-texto); }
h1, h2, h3 { font-family: var(--t-display); margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
a { color: var(--azul); }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 4px; }
.marco { width: min(1160px, 100% - 32px); margin-inline: auto; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--blanco); padding: 8px 12px; z-index: 10; }
.saltar:focus { left: 16px; }

/* Barra */
.barra { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--papel) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
.barra-in { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font: 700 1.25rem/1 var(--t-display); color: var(--tinta); text-decoration: none; }
.logo-i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--azul); color: #fff; font-size: 1.05rem; }
.nav { display: flex; gap: 24px; }
.nav a, .enlace { color: var(--tinta-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover, .enlace:hover { color: var(--tinta); }
.barra-acc { margin-left: auto; display: flex; align-items: center; gap: 20px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 0; background: var(--azul); color: #fff; font: 600 1rem/1 var(--t-texto); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--azul-osc); }
.btn-sec { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linea); }
.btn-sec:hover { background: var(--blanco); }
.btn-chico { min-height: 40px; padding: 0 16px; font-size: .95rem; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.02; font-weight: 700; max-width: 13ch; }
.hero-sub { margin-top: 24px; font-size: 1.2rem; color: var(--tinta-2); max-width: 34em; }
.hero-acc { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-precio { margin-top: 20px; color: var(--tinta-2); font-size: .98rem; }
.hero-precio strong { color: var(--tinta); }

/* Buzón: el elemento memorable */
.buzon { margin: 0; background: var(--blanco); border: 1px solid var(--linea); border-radius: 18px; box-shadow: var(--sombra); overflow: hidden; }
.buzon-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--linea); }
.buzon-tit { font: 600 1.05rem/1.2 var(--t-display); }
.buzon-dir { font-size: .85rem; color: var(--tinta-2); overflow-wrap: anywhere; }
.correos { list-style: none; margin: 0; padding: 0; }
.correo { padding: 16px 20px; border-bottom: 1px solid var(--linea); }
.correo-de { font-size: .85rem; color: var(--tinta-2); }
.correo-as { font-weight: 600; margin-top: 2px; }
.correo-res { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: .88rem; color: var(--tinta-2); }
.correo-res b { color: var(--tinta); font-weight: 600; }
.sello { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .8rem; border: 1.5px solid currentColor; transform: rotate(-2deg); }
.sello-ok { color: var(--verde); background: var(--verde-f); }
.sello-malo { color: var(--rojo); background: var(--rojo-f); }
.correo.malo .correo-de, .correo.malo .correo-as { text-decoration: line-through; text-decoration-color: var(--rojo); text-decoration-thickness: 2px; opacity: .55; }
.buzon-pie { padding: 12px 20px; font-size: .85rem; color: var(--tinta-2); background: var(--papel); }

@media (prefers-reduced-motion: no-preference) {
  .correo { animation: llega .5s cubic-bezier(.2, .7, .2, 1) both; }
  .correo:nth-child(1) { animation-delay: .25s; }
  .correo:nth-child(2) { animation-delay: 1.1s; }
  .correo:nth-child(3) { animation-delay: 1.95s; }
  .correo .sello { animation: sella .35s cubic-bezier(.3, 1.6, .5, 1) both; }
  .correo:nth-child(1) .sello { animation-delay: .7s; }
  .correo:nth-child(2) .sello { animation-delay: 1.55s; }
  .correo:nth-child(3) .sello { animation-delay: 2.4s; }
  .correo.malo .correo-de, .correo.malo .correo-as { animation: tacha .4s ease both 1.65s; }
}
@keyframes llega { from { opacity: 0; transform: translateY(10px); } }
@keyframes sella { from { opacity: 0; transform: scale(1.6) rotate(-8deg); } }
@keyframes tacha { from { text-decoration-color: transparent; opacity: 1; } }

/* Secciones */
.seccion { padding: 96px 0; border-top: 1px solid var(--linea); }
.seccion h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; font-weight: 700; max-width: 22ch; }
.intro { margin-top: 16px; color: var(--tinta-2); font-size: 1.1rem; max-width: 38em; }

.funciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--linea); }
.fun { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--linea); }
.fun:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--linea); }
.fun h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.fun p { margin-top: 10px; color: var(--tinta-2); font-size: 1rem; }
.fun b { color: var(--tinta); font-weight: 600; }
.fun-grande { grid-column: 1 / -1; padding: 36px 0 40px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
.fun-grande h3 { font-size: 1.75rem; }
.fun-grande p { margin-top: 0; font-size: 1.1rem; }
.fun-grande + .fun { border-left: 0; padding-left: 0; }
.fun-grande ~ .fun:nth-child(3n+2) { padding-left: 0; border-left: 0; }
.fun-grande ~ .fun:nth-child(3n+3), .fun-grande ~ .fun:nth-child(3n+1) { padding-left: 28px; border-left: 1px solid var(--linea); }

.seccion-tinta { background: #13233f; color: #e7edf7; border-top: 0; }
.seccion-tinta .intro { color: #a9b6ca; }
.arbol-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.arbol { margin: 0; padding: 28px 32px; background: #0c1830; border: 1px solid #263752; border-radius: 16px; color: #c9d5e8; font: 500 1.05rem/1.85 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-x: auto; }
.arbol .r { color: #8fb0ff; font-weight: 700; }

.seg { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.seg li { padding: 20px 0 20px 36px; border-bottom: 1px solid var(--linea); position: relative; color: var(--tinta-2); }
.seg li::before { content: ""; position: absolute; left: 0; top: 25px; width: 18px; height: 18px; border-radius: 50%; background: var(--verde-f); box-shadow: inset 0 0 0 1.5px var(--verde); }
.seg li::after { content: ""; position: absolute; left: 6px; top: 29px; width: 5px; height: 9px; border: solid var(--verde); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.seg b { color: var(--tinta); font-weight: 600; }

.seccion-precio { background: var(--blanco); }
.precio-in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.precio h2 { max-width: 16ch; }
.precio-num { margin: 24px 0 8px; font: 700 clamp(4.5rem, 10vw, 7.5rem)/.9 var(--t-display); letter-spacing: -.04em; }
.precio-num .mon { font-size: .45em; vertical-align: .9em; margin-right: 4px; letter-spacing: 0; }
.precio-iva { font: 500 1.15rem/1 var(--t-texto); letter-spacing: 0; color: var(--tinta-2); }
.precio-que { color: var(--tinta-2); max-width: 30em; margin-bottom: 28px; }
.incluye { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.incluye li { padding: 14px 0; border-bottom: 1px solid var(--linea); font-weight: 500; }

.contacto-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form .opc { font-weight: 400; color: var(--tinta-2); }
.form input, .form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--linea); border-radius: 10px; background: var(--blanco); color: var(--tinta); font: 400 1rem/1.4 var(--t-texto); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px color-mix(in srgb, var(--azul) 22%, transparent); }
.form .ancho { grid-column: 1 / -1; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aviso { padding: 16px 18px; border-radius: 10px; font-weight: 500; }
.form .aviso { grid-column: 1 / -1; }
.aviso-ok { background: var(--verde-f); color: var(--verde); }
.aviso-error { background: var(--rojo-f); color: var(--rojo); }

.pie { border-top: 1px solid var(--linea); padding: 28px 0; color: var(--tinta-2); font-size: .92rem; }
.pie-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Responsivo */
@media (max-width: 960px) {
  .hero-in, .arbol-in, .precio-in, .contacto-in { grid-template-columns: 1fr; gap: 40px; }
  .funciones { grid-template-columns: 1fr 1fr; }
  .fun, .fun:not(:nth-child(3n+1)), .fun-grande ~ .fun:nth-child(n) { padding: 24px 24px 28px 0; border-left: 0; }
  .fun-grande ~ .fun:nth-child(odd) { padding-left: 24px; border-left: 1px solid var(--linea); }
  .fun-grande { grid-template-columns: 1fr; gap: 12px; padding: 28px 0 32px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .barra-acc { gap: 14px; }
  .hero { padding: 44px 0 56px; }
  .hero-sub { font-size: 1.08rem; }
  .hero-acc .btn { flex: 1 1 100%; }
  .seccion { padding: 64px 0; }
  .funciones, .seg, .form { grid-template-columns: 1fr; }
  .fun-grande ~ .fun:nth-child(n) { padding: 22px 0 24px; border-left: 0; }
  .buzon-cab { flex-direction: column; gap: 2px; }
  .arbol { font-size: .9rem; padding: 20px; }
}

/* Razones */
.razones { background: var(--blanco); border-top: 1px solid var(--linea); }
.razones-in { display: grid; grid-template-columns: repeat(2, 1fr); }
.razon { padding: 44px 40px 48px 0; }
.razon:nth-child(even) { padding-left: 40px; border-left: 1px solid var(--linea); }
.razon:nth-child(n+3) { border-top: 1px solid var(--linea); }
.razon h2 { max-width: 24ch; font-size: 1.55rem; line-height: 1.15; font-weight: 700; }
.razon p { margin-top: 14px; color: var(--tinta-2); max-width: 36em; }

/* Listas en dos columnas */
.seccion-suave { background: var(--blanco); }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin-top: 40px; }
.lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.lista li { padding: 16px 0 16px 22px; border-bottom: 1px solid var(--linea); position: relative; color: var(--tinta-2); }
.lista li::before { content: ""; position: absolute; left: 0; top: 26px; width: 8px; height: 8px; border-radius: 2px; background: var(--azul); }
.lista b, .intro b { color: var(--tinta); font-weight: 600; }

@media (max-width: 960px) {
  .razones-in { grid-template-columns: 1fr; }
  .razon, .razon:nth-child(even) { padding: 32px 0; border-left: 0; }
  .razon + .razon { border-top: 1px solid var(--linea); }
}
@media (max-width: 640px) {
  .dos { grid-template-columns: 1fr; }
  .dos .lista + .lista { border-top: 0; }
}

/* Llamado grande */
.llamado { background: var(--azul); color: #fff; padding: 112px 0 104px; }
.llamado h2 { font: 700 clamp(2.75rem, 7.5vw, 6rem)/.95 var(--t-display); letter-spacing: -.035em; max-width: 12ch; }
.llamado-sub { margin-top: 28px; font-size: 1.3rem; max-width: 34em; color: #dbe6ff; }
.llamado-acc { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; }
.btn-claro { background: #fff; color: #13233f; min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-claro:hover { background: #e8eefc; }

/* Tiendas */
.tiendas { display: flex; flex-wrap: wrap; gap: 12px; }
.tiendas-clientes { margin-top: 32px; }
.tienda { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 18px 8px 14px; border-radius: 12px; background: #13233f; color: #fff; text-decoration: none; font: 600 1.05rem/1.1 var(--t-texto); }
.tienda svg { width: 26px; height: 26px; flex: none; }
.tienda small { display: block; font-size: .72rem; font-weight: 500; opacity: .8; margin-bottom: 2px; }
a.tienda:hover { background: #000; }
.tienda-pronto { opacity: .55; cursor: default; }
.tiendas-claras .tienda { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.tiendas-claras .tienda-pronto { opacity: .8; }
@media (prefers-color-scheme: dark) {
  .llamado { background: #1d3f9e; }
  .tiendas-clientes .tienda { background: #e7edf7; color: #13233f; }
}
@media (max-width: 640px) {
  .llamado { padding: 72px 0; }
  .llamado-sub { font-size: 1.12rem; }
  .llamado-acc .btn, .llamado-acc .tiendas, .llamado-acc .tienda { flex: 1 1 100%; }
}

/* Próximamente y aviso legal */
.pronto { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; color: var(--azul); box-shadow: inset 0 0 0 1px var(--azul); vertical-align: 1px; }
.pie a { color: var(--tinta); }
.aviso-legal { flex-basis: 100%; margin-top: 8px; font-size: .82rem; color: var(--tinta-2); max-width: 60em; }
