:root {
  --acento: #0067f1; --acento-osc: #0052c4; --acento-suave: #e6f0ff;
  --texto: #243b5a; --tenue: #6b7a90; --fondo: #f5f7fa; --borde: #e2e8f0;
  --exito: #16a34a; --exito-osc: #15803d; --exito-suave: #dcfce7;
  --oferta: #e11d48;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Montserrat", sans-serif; background: #fff; color: var(--texto); line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.6rem; border-radius: .8rem; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; border: none; }
.btn-primario { background: var(--acento); color: #fff; }
.btn-primario:hover { background: var(--acento-osc); }
.btn-secundario { background: #fff; color: var(--acento); border: 2px solid var(--acento-suave); }
.btn-secundario:hover { border-color: var(--acento); }
.btn-wa { background: var(--exito); color: #fff; }
.btn-wa:hover { background: var(--exito-osc); }

/* Nav */
header.nav { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--borde); z-index: 10; }
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 1rem; }
.nav-marca { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.3rem; color: var(--texto); text-decoration: none; }
.nav-marca .logo { width: 36px; height: 36px; border-radius: 9px; background: var(--acento); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--texto); font-weight: 600; font-size: .9rem; }
.nav-links a:not(.btn):hover { color: var(--acento); }
@media (max-width: 860px) { .nav-links a:not(.btn):not(.nav-cta) { display: none; } }

/* Hero */
.hero { background: linear-gradient(180deg, var(--acento-suave) 0%, #fff 100%); padding: 4.5rem 0 4rem; text-align: center; }
.hero h1 { font-size: 2.8rem; font-weight: 800; margin: 0 0 1rem; letter-spacing: -0.01em; line-height: 1.1; }
.hero h1 span { color: var(--acento); }
.hero p { font-size: 1.12rem; color: var(--tenue); max-width: 680px; margin: 0 auto 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
@media (max-width: 640px) { .hero h1 { font-size: 2rem; } }

/* Secciones */
section { padding: 4rem 0; }
.sec-tit { text-align: center; margin-bottom: 2.5rem; }
.sec-tit h2 { font-size: 2rem; font-weight: 800; margin: 0 0 .5rem; }
.sec-tit p { color: var(--tenue); font-size: 1.05rem; margin: 0; }

/* Planes */
.planes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .planes-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan-card { background: #fff; border: 1.5px solid var(--borde); border-radius: 1.1rem; padding: 2rem 1.6rem; position: relative; display: flex; flex-direction: column; }
.plan-card.destacado { border-color: var(--acento); box-shadow: 0 18px 44px rgba(0,103,241,.16); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--acento); color: #fff; font-size: .72rem; font-weight: 800; padding: .3rem .9rem; border-radius: 999px; letter-spacing: .04em; }
.plan-nombre { font-size: 1.3rem; font-weight: 800; }
.plan-precio { font-size: 2.1rem; font-weight: 800; margin: .5rem 0 .1rem; }
.plan-precio small { font-size: .95rem; font-weight: 600; color: var(--tenue); }
.plan-lista { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.plan-lista li { display: flex; gap: .5rem; }
.plan-lista li::before { content: "✓"; color: var(--exito); font-weight: 800; }
.plan-card .btn { margin-top: auto; justify-content: center; }

/* Tarjetas de categoría (inicio) */
.cat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.cat-card { background: #fff; border: 1.5px solid var(--borde); border-radius: 1rem; padding: 2rem 1.5rem; text-align: center; text-decoration: none; color: var(--texto); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat-card:hover { border-color: var(--acento); box-shadow: 0 12px 28px rgba(0,103,241,.14); transform: translateY(-4px); }
.cat-card-ico { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 16px; background: var(--acento-suave); color: var(--acento); display: flex; align-items: center; justify-content: center; }
.cat-card-ico svg { width: 32px; height: 32px; }
.cat-card h3 { margin: 0 0 .25rem; font-size: 1.1rem; }
.cat-card span { color: var(--tenue); font-size: .85rem; }

/* Grilla de productos */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.prod-card { background: #fff; border: 1.5px solid var(--borde); border-radius: 1rem; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.prod-card:hover { border-color: var(--acento); box-shadow: 0 12px 28px rgba(0,103,241,.14); transform: translateY(-4px); }
.prod-ico { height: 120px; background: var(--acento-suave); display: flex; align-items: center; justify-content: center; color: var(--acento); }
.prod-ico svg { width: 52px; height: 52px; }
.prod-foto { height: 190px; background: #fff; padding: .6rem; }
.prod-foto img { width: 100%; height: 100%; object-fit: contain; }
.prod-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.prod-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tenue); }
.prod-nombre { font-weight: 700; font-size: .98rem; margin: .25rem 0 .5rem; }
.prod-nota { font-size: .82rem; color: var(--tenue); margin: 0 0 .8rem; }
.prod-precios { margin-top: auto; }
.prod-antes { color: var(--tenue); text-decoration: line-through; font-size: .85rem; margin-right: .4rem; }
.prod-precio { font-size: 1.3rem; font-weight: 800; }
.prod-agotado { display: inline-block; margin-top: auto; background: var(--borde); color: var(--tenue); font-size: .78rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; }

/* Filtro de categorías (barra de chips, en página de categoría) */
.cat-nav { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.cat-chip { background: #fff; border: 1.5px solid var(--borde); border-radius: 999px; padding: .45rem 1rem; font-size: .85rem; font-weight: 700; cursor: pointer; color: var(--texto); text-decoration: none; }
.cat-chip:hover { border-color: var(--acento); }
.cat-chip.on { background: var(--acento); border-color: var(--acento); color: #fff; }

/* Encabezado de página interna */
.pagina-head { background: var(--fondo); padding: 2.5rem 0; border-bottom: 1px solid var(--borde); }
.migas { font-size: .85rem; color: var(--tenue); margin-bottom: .5rem; }
.migas a { text-decoration: none; }
.migas a:hover { color: var(--acento); }
.pagina-head h1 { margin: 0; font-size: 1.9rem; }

/* Ficha de producto */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 800px) { .pd { grid-template-columns: 1fr; gap: 1.5rem; } }
.pd-galeria-main { border: 1.5px solid var(--borde); border-radius: 1rem; background: #fff; height: 380px; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.pd-galeria-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-galeria-main .prod-ico { background: none; color: var(--acento); }
.pd-galeria-main .prod-ico svg { width: 96px; height: 96px; }
.pd-thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.pd-thumb { width: 68px; height: 68px; border: 1.5px solid var(--borde); border-radius: .6rem; padding: .25rem; background: #fff; cursor: pointer; }
.pd-thumb.on { border-color: var(--acento); }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-info .prod-cat { font-size: .8rem; }
.pd-info h1 { font-size: 1.8rem; margin: .3rem 0 1rem; }
.pd-precio-wrap { margin-bottom: 1.25rem; }
.pd-antes { color: var(--tenue); text-decoration: line-through; font-size: 1.1rem; margin-right: .6rem; }
.pd-precio { font-size: 2.2rem; font-weight: 800; }
.pd-off { display: inline-block; margin-left: .6rem; background: var(--exito-suave); color: var(--exito-osc); font-size: .8rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px; vertical-align: middle; }
.pd-desc { color: var(--texto); font-size: .98rem; line-height: 1.7; white-space: pre-line; margin: 0 0 1.5rem; }
.pd-agotado { display: inline-block; background: var(--borde); color: var(--tenue); font-weight: 700; padding: .5rem 1rem; border-radius: .7rem; margin-bottom: 1rem; }
.pd-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.pd-envio { margin-top: 1.25rem; font-size: .85rem; color: var(--tenue); }

.aviso-vacio { text-align: center; padding: 4rem 1rem; color: var(--tenue); }

/* Descarga */
.descarga { background: var(--fondo); }
.descarga-box { background: #fff; border: 1.5px solid var(--borde); border-radius: 1.2rem; padding: 2.5rem; text-align: center; max-width: 640px; margin: 0 auto; }
.descarga-box h2 { font-size: 1.6rem; margin: 0 0 .5rem; }
.descarga-box p { color: var(--tenue); margin: 0 0 1.5rem; }

/* CTA final */
.cta-final { background: linear-gradient(135deg, var(--acento) 0%, var(--acento-osc) 100%); border-radius: 1.5rem; padding: 3rem 2rem; text-align: center; color: #fff; }
.cta-final h2 { font-size: 1.8rem; margin: 0 0 .5rem; }
.cta-final p { opacity: .9; margin: 0 0 1.75rem; }
.cta-final .btn-wa { background: #fff; color: var(--exito-osc); }
.cta-final .btn-wa:hover { background: #f0fdf4; }

/* Footer */
footer { padding: 2.5rem 0; border-top: 1px solid var(--borde); color: var(--tenue); font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--acento); }

/* WhatsApp flotante */
.wa-flotante { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--exito); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(22,163,74,.4); transition: transform .15s, background .15s; }
.wa-flotante:hover { background: var(--exito-osc); transform: scale(1.06); }
@media (max-width: 640px) { .wa-flotante { right: 1rem; bottom: 1rem; width: 52px; height: 52px; } }
