/* ==== Base abreviada y variables (Tema AZUL) ==== */
:root{
  --bg:#f5f8ff;                 /* fondo general azulado suave */
  --surface:#ffffff;
  --ink:#0f2e2a;
  --muted:#5f6b7a;

  --brand:#0b63c8;              /* azul principal */
  --brand-2:#084a95;            /* azul oscuro para hover/énfasis */
  --leaf:#cfe0ff;               /* azul clarito para focos */

  --line:#e3e8ef;               /* bordes */
  --shadow:0 10px 30px rgba(11,99,200,.10);

  --radius:20px;
  --fz-1:clamp(2rem,2.5vw+1.25rem,2.6rem);
  --fz-2:clamp(1.35rem,1.2vw+1rem,1.8rem);
  --fz-3:1.125rem;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;max-width:100%;overflow-x:hidden}
body{
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Arial,"Helvetica Neue",sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1120px;margin:0 auto;padding:0 20px}
.container.narrow{max-width:820px}

/* ==== Header centrado escritorio + hamburguesa móvil ==== */
.site-header{
  position:sticky;top:0;z-index:1000;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid var(--line);
  padding-top:env(safe-area-inset-top);
}
.header-inner{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:12px 0}
.brand img{display:block;height:36px;width:auto;object-fit:contain}
.nav-desktop{display:none}
@media (min-width:1025px){
  .nav-desktop{display:flex;justify-content:center;gap:16px}
  .nav-desktop a{color:var(--ink);opacity:.9;padding:6px 8px;border-radius:10px}
  .nav-desktop a:hover{opacity:1;background:#f0f6ff}
}
.nav-toggle{
  display:inline-flex;justify-content:center;align-items:center;width:44px;height:44px;margin-left:auto;
  background:transparent;border:0;cursor:pointer;line-height:0;position:relative;z-index:1200
}
.nav-toggle .hamb-line{position:relative;display:block;width:24px;height:2px;background:var(--ink);border-radius:2px;transition:.2s}
.nav-toggle .hamb-line::before,.nav-toggle .hamb-line::after{content:"";position:absolute;left:0;width:100%;height:2px;background:var(--ink);border-radius:2px;transition:.2s}
.nav-toggle .hamb-line::before{transform:translateY(-7px)}
.nav-toggle .hamb-line::after{transform:translateY(7px)}
.nav-toggle[aria-expanded="true"] .hamb-line{background:transparent}
.nav-toggle[aria-expanded="true"] .hamb-line::before{transform:translateY(0) rotate(45deg)}
.nav-toggle[aria-expanded="true"] .hamb-line::after{transform:translateY(0) rotate(-45deg)}
@media (min-width:1025px){.nav-toggle{display:none}}
.nav{display:none}
.nav.open{
  display:flex !important;position:fixed !important;inset:0 !important;z-index:2000 !important;
  background:#fff;
  padding:calc(60px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
  flex-direction:column;gap:10px;overflow-y:auto;border-top:1px solid var(--line)
}
.nav.open a{display:block;padding:14px 6px;font-size:1.05rem;color:var(--ink)}
body.nav-open{overflow:hidden}

/* ==== Botones ==== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--brand);padding:12px 18px;border-radius:999px;background:transparent;
  font-weight:600;cursor:pointer;transition:transform .15s,background .15s,box-shadow .15s
}
.btn:hover{background:#eff5ff;transform:translateY(-1px)}
.btn:focus-visible{outline:3px solid var(--leaf);outline-offset:2px}
.btn-primary{
  background:linear-gradient(180deg,var(--brand),var(--brand-2));
  color:#fff;border-color:transparent;box-shadow:var(--shadow)
}
.btn-primary:hover{filter:brightness(.97)}
.btn-block{width:100%}
/* Disabled */
.btn:disabled,.btn[disabled]{opacity:.95;cursor:not-allowed}
.btn-primary:disabled,.btn-primary[disabled]{background:linear-gradient(180deg,var(--brand),var(--brand-2));color:#fff;border-color:transparent;filter:none;box-shadow:var(--shadow)}
.btn:disabled:hover{background:inherit;transform:none}

/* ==== Secciones / hero ==== */
.section{padding:72px 0;scroll-margin-top:84px}
.section.alt{background:linear-gradient(180deg,#fff,#f2f6ff)}
.section-title{font-size:var(--fz-2);margin:0 0 16px;letter-spacing:.2px;color:var(--brand)}
.hero{
  padding:72px 0 40px;
  background:
    radial-gradient(1200px 400px at 70% 0%, rgba(11,99,200,.12), transparent 60%),
    linear-gradient(180deg,#eef4ff 0%, #fff 65%, #fff 100%);
  position:relative;overflow:hidden
}
.hero-decor{
  position:absolute;inset:auto -20% -30% -20%;height:320px;pointer-events:none;
  background:radial-gradient(50% 50% at 50% 50%, rgba(11,99,200,.10) 0%, rgba(11,99,200,0) 70%);
  filter:blur(30px)
}
.hero-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:40px;align-items:center}
.hero-copy h1{font-size:var(--fz-1);margin:0 0 8px}
.hero .lead{font-size:var(--fz-3);color:var(--muted);margin:0 0 10px}
.badges{display:flex;gap:10px;list-style:none;padding:0;margin:14px 0}
.badges li{
  background:#fff;border:1px solid var(--line);padding:8px 12px;border-radius:999px;font-size:.92rem;
  box-shadow:0 1px 0 rgba(0,0,0,.04)
}

/* ==== Listas check ==== */
.list-check{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.list-check li{position:relative;padding-left:30px}
.list-check li::before{
  content:"";position:absolute;left:0;top:.35em;width:18px;height:18px;
  background:linear-gradient(180deg,#78b6ff,#418de6); /* check azul */
  border-radius:6px;box-shadow:0 2px 6px rgba(0,0,0,.08)
}

/* ==== Composición ==== */
.comp-grid{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:center}
.comp-grid figure img{border-radius:16px;box-shadow:var(--shadow)}
.pill-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:14px}
.pill{
  display:flex;align-items:baseline;gap:.5rem;background:#fff;
  border:1px solid var(--line);border-radius:12px;padding:12px 14px;
  box-shadow:var(--shadow)
}
.pill strong{display:inline;font-weight:700;color:var(--brand-2);white-space:nowrap}
.pill span{color:var(--muted)}

/* ==== Tarjeta de precio (AZUL) ==== */
.price-card{
  display:inline-block;border:2px solid var(--brand);
  background:#fff;border-radius:16px;padding:12px 16px;
  box-shadow:var(--shadow);margin:10px 0;min-width:260px
}
.price-badge{
  display:inline-block;background:linear-gradient(180deg,var(--brand),var(--brand-2));
  color:#fff;font-weight:800;border-radius:999px;padding:6px 10px;
  font-size:.9rem;letter-spacing:.3px;margin-bottom:6px
}
.price-line{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.price-regular{color:var(--muted);text-decoration:line-through;font-size:1rem}
.price-sale{color:var(--brand-2);font-size:1.9rem;font-weight:900;line-height:1}
.price-off{background:#e7f0ff;color:var(--brand);font-weight:800;border-radius:10px;padding:2px 8px;font-size:.9rem}
.price-note{color:var(--muted);font-size:.9rem;margin-top:4px}
@media (max-width:640px){ .price-sale{font-size:1.7rem} }

/* ==== Details / FAQ ==== */
.details{
  border:1px solid var(--line);border-radius:16px;padding:14px 18px;background:#fff;
  transition:border-color .15s,box-shadow .15s
}
.details[open]{box-shadow:var(--shadow);border-color:#cfe0ff}
.details summary{cursor:pointer;font-weight:700;list-style:none}
.details summary::-webkit-details-marker{display:none}

/* ==== Historias / Opiniones ==== */
.story{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;box-shadow:var(--shadow)}
.reviews{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.review{
  display:flex;gap:12px;background:#fff;border:1px solid var(--line);
  border-radius:18px;padding:16px;box-shadow:var(--shadow)
}
.review img{width:52px;height:52px;border-radius:50%;object-fit:cover}
.avatar{
  width:52px;height:52px;border-radius:50%;
  background:#cfe0ff; /* azul claro */
  display:flex;align-items:center;justify-content:center;font-weight:700
}
.stars{color:#e7a415;margin-left:6px}

/* ==== Blog (tarjetas) ==== */
.post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.post-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;box-shadow:var(--shadow)}
.post-cover{width:100%;height:180px;object-fit:cover;display:block}
.post-body{padding:14px}
.post-title{margin:0 0 6px;font-size:1.05rem;line-height:1.35}
.post-title a{text-decoration:none;color:var(--ink)}
.post-meta{margin:0 0 8px;color:#6b7280;font-size:.9rem}
.post-excerpt{margin:0 0 12px;color:#374151}

/* ==== Contacto / formulario ==== */
.contact{background:linear-gradient(180deg,#fff,#f2f6ff)}
.contact-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:36px;align-items:center}
.card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;box-shadow:var(--shadow)}
.form{display:grid;gap:12px}
.field span{display:block;font-weight:600;margin-bottom:6px}
.field input,.field textarea{
  width:100%;border:1px solid var(--line);border-radius:14px;padding:12px 14px;font:inherit;background:#fff
}
.field input:focus,.field textarea:focus{outline:2px solid #cfe0ff;border-color:#cfe0ff}
.checkbox{display:flex;gap:10px;align-items:flex-start}
.micro{font-size:.88rem;color:var(--muted)}
.help{font-size:.9rem;color:var(--muted);margin:.25rem 0 0}
.help-error{color:#b33}

/* ==== Footer ==== */
.site-footer{border-top:1px solid var(--line);padding:30px 0;background:#fff}
.site-footer p{color:var(--muted);font-size:.95rem}

/* ==== Responsive ==== */
@media (max-width:1024px){
  .hero-grid,.contact-grid,.comp-grid{grid-template-columns:1fr}
  .header-cta{display:none}
}

/* ==== Animaciones ==== */
.will-animate{opacity:0;transform:translateY(20px);transition:opacity .6s,transform .6s}
.animate-in{opacity:1;transform:translateY(0)}
img:not(.loaded){background:#f5f5f5;border-radius:4px}
