/* ===== PALETA DE MARCA (tomada del logo): azul profundo #013893 y azul cielo #4697C4 ===== */
:root {
  --ds-primary: #013893;     /* azul del logo: títulos, intro, footer */
  --ds-secondary: #4697C4;   /* azul cielo del logo: íconos y detalles */
  --ds-accent: #F2B33D;      /* ámbar: ofertas y llamadas de atención */
  --ds-wa: #1FA855;          /* verde WhatsApp (CTA) */
  --ds-wa-dark: #178a45;
  --ds-ink: #15233F;
  --ds-muted: #546179;
  --ds-bg: #FFFFFF;
  --ds-bg-alt: #EEF5FA;
  --ds-line: #D3E3EF;
  --ds-radius: 14px;
  --ds-header-h: 64px;       /* script.js lo recalcula */
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ds-header-h) + 12px); }
body { font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ds-ink); background: var(--ds-bg); line-height: 1.6; }
h1, h2, h3, .brand-mark { font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ds-primary); }

/* Header */
.site-nav { background: var(--ds-bg); border-bottom: 1px solid var(--ds-line); }
.brand-mark { font-weight: 700; font-size: 1.35rem; text-decoration: none; }
.site-nav .nav-link { color: var(--ds-ink); font-weight: 500; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--ds-secondary); }

/* Botón WhatsApp */
.btn-wa { background: var(--ds-wa); border-color: var(--ds-wa); color: #fff; font-weight: 600; border-radius: 999px; }
.btn-wa:hover, .btn-wa:focus-visible { background: var(--ds-wa-dark); border-color: var(--ds-wa-dark); color: #fff; }
.btn-lg.btn-wa { padding: .85rem 1.5rem; }
.btn:focus-visible, a:focus-visible, .nav-link:focus-visible { outline: 3px solid var(--ds-accent); outline-offset: 2px; }

/* Intro */
.intro { background: var(--ds-primary); color: #fff; padding: 3rem 0 3.25rem; }
.intro h1 { color: #fff; font-size: clamp(1.9rem, 6vw, 3.1rem); line-height: 1.12; max-width: 17ch; }
.intro .lead { max-width: 56ch; margin: 1rem 0 0; color: #DCE8F7; font-size: 1.05rem; }

/* Módulo de producto */
.product { padding: 3rem 0; }
.product.alt { background: var(--ds-bg-alt); }
.product h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin: .6rem 0 .75rem; }
.product p { max-width: 62ch; }
.badge-offer { background: var(--ds-accent); color: #3a2a05; font-weight: 600; font-size: .85rem; padding: .45em .8em; border-radius: 999px; }

.product-gallery { border-radius: var(--ds-radius); overflow: hidden; background: var(--ds-primary); }
.product-gallery .carousel-item { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--ds-secondary), var(--ds-primary)); }
.product-gallery .carousel-item::after { content: attr(data-ph); position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.8); font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 1.5rem; z-index: 0; }
.product-gallery img { position: relative; z-index: 1; height: 100%; object-fit: cover; }
.product-gallery { border: 1px solid var(--ds-line); }
.product-gallery .carousel-item { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--ds-secondary), var(--ds-primary)); }
/* Con imagen: fondo blanco y sin texto de marcador */
.product-gallery .carousel-item:has(img) { background: var(--ds-bg); }
.product-gallery .carousel-item:has(img)::after { display: none; }
/* Por defecto, la imagen se ve completa, sin recortes */
.product-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* Para fotos que quieras que llenen todo el marco (se recorta un poco) */
.product-gallery img.cover { object-fit: cover; }

.feature-list { list-style: none; padding: 0; margin: 1rem 0; }
.feature-list li { display: flex; gap: .6rem; margin-bottom: .5rem; }
.feature-list .bi { color: var(--ds-secondary); flex: none; margin-top: .2rem; }

.price-block { margin: 1.25rem 0 .5rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; }
.price-old { color: var(--ds-muted); font-size: 1.1rem; }
.price-now { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--ds-primary); }
.price-now small { font-family: "Instrument Sans", sans-serif; font-weight: 500; font-size: .9rem; color: var(--ds-muted); }
.price-sub { flex-basis: 100%; color: var(--ds-muted); font-size: .92rem; }
.availability { color: var(--ds-muted); font-size: .95rem; }
.availability .bi, .variants-note .bi { margin-right: .35rem; color: var(--ds-secondary); }

/* Variantes informativas (no seleccionables) */
.variants { border: 1px solid var(--ds-line); border-radius: var(--ds-radius); background: var(--ds-bg); padding: 1rem 1.1rem; margin: 1rem 0 1.25rem; }
.variants h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.variants-note { font-size: .88rem; color: var(--ds-muted); margin: .8rem 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips span { border: 1px solid var(--ds-line); border-radius: 999px; padding: .2rem .75rem; font-size: .92rem; cursor: default; }
.variants-table { margin: 0; --bs-table-bg: transparent; }
.variants-table th { font-weight: 600; width: 42%; color: var(--ds-primary); }
.pkg > div > div { border: 1px solid var(--ds-line); border-radius: 10px; padding: .6rem .3rem; text-align: center; font-size: .9rem; font-weight: 600; color: var(--ds-primary); cursor: default; }
.fine { font-size: .82rem; color: var(--ds-muted); margin: .6rem 0 0; }

/* Footer */
.site-footer { background: var(--ds-primary); color: #DCE8F7; padding: 3rem 0 1.5rem; }
.site-footer .brand-mark, .site-footer h3 { color: #fff; }
.site-footer h3 { font-size: 1.05rem; }
.site-footer a { color: #fff; }
.site-footer .bi { margin-right: .4rem; }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.18); margin: 2rem 0 0; padding-top: 1rem; font-size: .88rem; }

@media (min-width: 992px) { .product { padding: 4.5rem 0; } .intro { padding: 4.5rem 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .carousel-item { transition: none !important; } }

/* Logo */
.brand-logo { height: 44px; width: auto; display: block; }
.logo-chip { display: inline-block; background: #fff; border-radius: 12px; padding: .4rem .8rem; }
.logo-chip .brand-logo { height: 40px; }

/* GNP */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 1.25rem 0; }
.stats div { background: var(--ds-bg); border: 1px solid var(--ds-line); border-radius: var(--ds-radius); padding: 1rem .5rem; text-align: center; }
.stats strong { display: block; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: clamp(1.4rem, 5vw, 2rem); color: var(--ds-primary); }
.stats span { font-size: .88rem; color: var(--ds-muted); }
.gnp-badge { border-left: 4px solid var(--ds-accent); background: var(--ds-bg); padding: .9rem 1.1rem; border-radius: 0 var(--ds-radius) var(--ds-radius) 0; }

/* Aliados comerciales */
.allies-panel { border: 2px solid var(--ds-primary); border-radius: 22px; padding: 1.75rem 1.25rem; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.25rem 0 0; }
.steps li { counter-increment: s; display: flex; gap: .8rem; margin-bottom: .9rem; }
.steps li::before { content: counter(s); flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ds-primary); color: #fff; display: grid; place-items: center; font-weight: 600; }
@media (min-width: 992px) { .allies-panel { padding: 2.5rem; } }

.allies-panel { background: var(--ds-bg); }
.allies-panel h2 { margin: .6rem 0 1.25rem; }
.example { background: var(--ds-bg-alt); border-left: 4px solid var(--ds-accent); border-radius: 0 var(--ds-radius) var(--ds-radius) 0; padding: .9rem 1.1rem; }
.example small { display: block; margin-top: .4rem; color: var(--ds-muted); }
.fine-details { margin-top: .8rem; font-size: .9rem; }
.fine-details summary { cursor: pointer; font-weight: 600; color: var(--ds-primary); }
.fine-details p { margin: .6rem 0 0; color: var(--ds-muted); }
.feature-list .bi { font-size: 1.05rem; }

/* SideBusiness: palabra coloreada como en el logo */
.sb-a { color: #FE6E05; }
.sb-b { color: #00337F; }
.sb-logo { height: 52px; width: auto; max-width: 100%; display: block; }
.sb-tag { margin: .4rem 0 0; color: var(--ds-muted); font-weight: 600; letter-spacing: .02em; }

/* GNP: logo y soluciones */
.gnp-logo { height: 56px; width: auto; max-width: 100%; display: block; margin-bottom: 1rem; }
.sol-card { display: flex; flex-direction: column; gap: .25rem; height: 100%; background: var(--ds-bg); border: 1px solid var(--ds-line); border-radius: var(--ds-radius); padding: 1rem 1.1rem; color: var(--ds-ink); text-decoration: none; }
a.sol-card:hover, a.sol-card:focus-visible { border-color: var(--ds-secondary); box-shadow: 0 4px 14px rgba(1,56,147,.1); }
.sol-card strong { font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ds-primary); }
.sol-card em { font-style: normal; font-size: .85rem; font-weight: 600; color: var(--ds-secondary); }
.sol-card span { font-size: .93rem; color: var(--ds-muted); }
.gnp-close { margin-top: 2.5rem; padding: 1.5rem 1.25rem; background: var(--ds-bg-alt); border-radius: var(--ds-radius); }
.gnp-close p { max-width: 70ch; }
.gnp-slogan { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 700; color: var(--ds-primary); margin: 0; }
