:root {
  --fondo: #ffffff; --texto: #14211d; --suave: #5b6b65; --marca: #14211d; --acento: #2e9e78;
  --tarjeta: #f4f6f5; --borde: #e3e9e6; --boton: #14211d; --boton-texto: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root { --fondo: #0d1412; --texto: #eef3f1; --suave: #9fb0aa; --marca: #eef3f1; --acento: #73c8a5;
    --tarjeta: #16201d; --borde: #24302c; --boton: #eef3f1; --boton-texto: #0d1412; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--acento); }
.ac { color: var(--acento); }

/* Cabecera fija */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--fondo) 85%, transparent); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--borde); }
.top .in { max-width: 1080px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top .marca { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--marca); text-decoration: none; }
.top .marca img { width: 30px; height: 30px; border-radius: 8px; }
.top .marca span { color: var(--suave); font-weight: 500; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.top nav a { color: var(--suave); text-decoration: none; }
.top nav a:hover { color: var(--texto); }
.top nav .idioma b { color: var(--texto); }
.top nav .cta { background: var(--boton); color: var(--boton-texto); border-radius: 999px; padding: 7px 16px; font-weight: 600; }
.top nav .cta:hover { color: var(--boton-texto); opacity: .9; }

/* Bloques */
.ancho { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.heroe { display: flex; align-items: center; gap: 48px; padding: 72px 0 56px; }
.heroe .texto { flex: 1 1 0; }
.heroe h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.05; letter-spacing: -.02em; font-weight: 800; margin: 0 0 20px; color: var(--marca); }
.heroe p { color: var(--suave); font-size: 1.15rem; max-width: 30em; margin: 0 0 28px; }
.heroe .telefono { flex: 0 0 300px; }
.telefono img { width: 100%; height: auto; display: block; }

.tiendas { display: flex; gap: 10px; flex-wrap: wrap; }
.tienda { display: inline-flex; flex-direction: column; justify-content: center; background: var(--boton); color: var(--boton-texto); border-radius: 12px; padding: 8px 18px; min-width: 150px; line-height: 1.2; }
.tienda small { font-size: .7rem; opacity: .75; }
.tienda b { font-size: 1.05rem; }

.etiqueta { display: inline-block; border: 1px solid var(--borde); border-radius: 999px; padding: 4px 14px; font-size: .85rem; color: var(--suave); }
.titulo { text-align: center; padding: 40px 0 32px; }
.titulo h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.15; letter-spacing: -.015em; font-weight: 800; margin: 14px 0 10px; color: var(--marca); }
.titulo p { color: var(--suave); margin: 0 auto; max-width: 34em; }

.bloque { background: var(--tarjeta); border-radius: 32px; padding: 48px 56px; display: flex; align-items: center; gap: 56px; margin-bottom: 20px; }
.bloque.inv { flex-direction: row-reverse; }
.bloque .texto { flex: 1 1 0; }
.bloque h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -.01em; font-weight: 800; margin: 0 0 14px; color: var(--marca); }
.bloque p { color: var(--suave); margin: 0 0 18px; max-width: 28em; }
.bloque .telefono { flex: 0 0 260px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; margin: 8px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--acento); background: no-repeat center/10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%232e9e78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.par { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.par .bloque { display: block; margin: 0; padding: 36px 40px; }
.par h3 { font-size: 1.5rem; }
.par p { margin: 0 0 12px; }

.cierre { text-align: center; padding: 72px 0 40px; }
.cierre h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.015em; margin: 0 0 20px; color: var(--marca); }
.cierre .tiendas { justify-content: center; }

/* Portada de PaConLabs */
.app { display: flex; align-items: center; gap: 20px; background: var(--tarjeta); border-radius: 28px; padding: 24px 28px; text-decoration: none; color: var(--texto); transition: transform .2s; }
.app:hover { transform: translateY(-2px); }
.app img { width: 72px; height: 72px; border-radius: 17px; }
.app .nombre { font-weight: 800; font-size: 1.3rem; }
.app .desc { color: var(--suave); }
.app .ir { margin-left: auto; color: var(--acento); white-space: nowrap; font-weight: 600; }

/* Páginas legales */
main.legal { max-width: 760px; margin: 0 auto; padding: 40px 20px 64px; }
.legal h1 { font-size: 2.2rem; line-height: 1.15; letter-spacing: -.015em; font-weight: 800; margin: 0 0 6px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 8px; }
.fecha { color: var(--suave); font-size: .9rem; margin-bottom: 24px; }
.nota { color: var(--suave); font-size: .9rem; font-style: italic; }
.tarjeta { background: var(--tarjeta); border-radius: 20px; padding: 18px 22px; margin: 16px 0; }
.tarjeta ol, .tarjeta ul { margin: 0; }
ul, ol { padding-left: 22px; }

.pie { border-top: 1px solid var(--borde); margin-top: 40px; }
.pie .in { max-width: 1080px; margin: 0 auto; padding: 22px 20px 40px; color: var(--suave); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pie a { color: var(--suave); text-decoration: none; }
.pie a:hover { color: var(--texto); }
.pie .der { margin-left: auto; }

/* Aparición al hacer scroll (solo si hay JS y el usuario no pidió menos movimiento) */
.js .rev { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .rev.ver { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rev { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 820px) {
  .top nav .ocultar { display: none; }
  .heroe { flex-direction: column; text-align: center; padding: 40px 0 24px; gap: 32px; }
  .heroe p { margin-left: auto; margin-right: auto; }
  .heroe .tiendas { justify-content: center; }
  .heroe .telefono { flex-basis: auto; width: 240px; }
  .bloque, .bloque.inv { flex-direction: column; padding: 36px 24px 0; gap: 28px; border-radius: 28px; text-align: center; overflow: hidden; }
  .bloque p { margin-left: auto; margin-right: auto; }
  .checks { display: inline-block; text-align: left; }
  .bloque .telefono { flex-basis: auto; width: 230px; margin-bottom: -60px; }
  .par { grid-template-columns: 1fr; }
  .par .bloque { padding: 28px 24px; }
  .app { flex-wrap: wrap; }
  .app .ir { margin-left: 92px; }
  .pie .der { margin-left: 0; }
}
