/* =================================================================
   Nordic Aerotermia Pamplona — styles.css
   Paleta nordica: azul marino profundo + acento dorado calido
   Tipografia: Outfit (titulares) / Work Sans (texto)
   ================================================================= */

:root {
  /* Colores */
  --primary: #0F2A44;        /* azul marino profundo */
  --primary-700: #163B5E;
  --primary-300: #5B7894;
  --accent: #F4A03A;         /* dorado calido (calor) */
  --accent-hover: #DB8A24;
  --accent-soft: #FDF1DD;
  --teal: #2E8B85;           /* verde-azulado (eficiencia) */
  --teal-soft: #E6F2F1;
  --text: #16202B;
  --text-muted: #5A6878;
  --border: #E2E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F6F9FC;
  --bg-warm: #FBFAF7;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(15, 42, 68, .08), 0 1px 2px rgba(15, 42, 68, .04);
  --shadow-md: 0 8px 24px rgba(15, 42, 68, .10);
  --shadow-lg: 0 20px 48px rgba(15, 42, 68, .14);

  /* Tipografia */
  --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing (8pt) */
  --sp-1: .5rem;  --sp-2: 1rem;  --sp-3: 1.5rem;  --sp-4: 2rem;
  --sp-5: 3rem;   --sp-6: 4rem;  --sp-7: 6rem;

  /* Radios */
  --r-sm: 8px;  --r-md: 12px;  --r-lg: 18px;  --r-pill: 999px;

  --container: 1200px;
  --transition: 180ms ease;
}

/* ---------- Reset minimo ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hover); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--primary);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; }
p { color: var(--text-muted); }
strong { color: var(--text); font-weight: 600; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: var(--sp-7) 0; }
.section-sm { padding: var(--sp-6) 0; }
.bg-soft { background: var(--bg-soft); }
.bg-warm { background: var(--bg-warm); }
.bg-primary { background: var(--primary); color: #D6E2EE; }
.bg-primary h2, .bg-primary h3 { color: #fff; }
.grid { display: grid; gap: var(--sp-3); }
.flex { display: flex; }
.text-center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: .65rem;
}
.section-head { max-width: 720px; margin: 0 auto var(--sp-5); text-align: center; }
.section-head p { font-size: 1.1rem; margin-top: .75rem; }
.lead { font-size: 1.18rem; color: var(--text-muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: var(--r-pill);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  cursor: pointer; line-height: 1; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--primary); box-shadow: 0 6px 18px rgba(244,160,58,.32); }
.btn-primary:hover { background: var(--accent-hover); color: var(--primary); }
.btn-secondary { background: transparent; color: var(--primary); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-soft); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--primary); color: #C7D6E5; font-size: .9rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 42px; flex-wrap: wrap; }
.topbar a { color: #C7D6E5; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--accent); }
.topbar .topbar-left { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar .topbar-right { display: flex; gap: 1.2rem; align-items: center; }
.topbar i { color: var(--accent); }

/* ---------- Header / Nav ---------- */
header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-weight: 700; color: var(--primary); font-size: 1.18rem; line-height: 1.1; }
.brand:hover { color: var(--primary); }
.brand .brand-mark {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  display: grid; place-items: center; color: var(--accent); font-size: 1.2rem;
}
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .72rem; color: var(--text-muted); letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  color: var(--text); font-family: var(--font-head); font-weight: 500; font-size: .98rem;
  padding: .55rem .8rem; border-radius: var(--r-sm); transition: background var(--transition), color var(--transition);
}
.nav-links a:hover, .nav-links a.active { background: var(--bg-soft); color: var(--primary); }
.nav-cta { margin-left: .4rem; }
.nav-toggle { display: none; font-size: 1.5rem; color: var(--primary); width: 44px; height: 44px; border-radius: var(--r-sm); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--primary); color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(1100px 500px at 80% -10%, rgba(244,160,58,.18), transparent 60%); pointer-events: none; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-5); align-items: center; padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(244,160,58,.14); border: 1px solid rgba(244,160,58,.4);
  color: #FBD79C; font-size: .85rem; font-weight: 600; font-family: var(--font-head);
  padding: .4rem .9rem; border-radius: var(--r-pill); margin-bottom: 1.2rem;
}
.hero-badge i { color: var(--accent); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.12; }
.hero h1 span { color: var(--accent); }
.hero-services { margin: 1.1rem 0 .4rem; text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.62); font-family: var(--font-head); }
.hero-subtitle { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 32rem; margin-bottom: 1.8rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .9rem; color: rgba(255,255,255,.78); }
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust i { color: var(--accent); }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
.hero-media .hero-stat {
  position: absolute; bottom: -22px; left: -22px; background: #fff; color: var(--text);
  border-radius: var(--r-md); padding: 1rem 1.25rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .8rem;
}
.hero-media .hero-stat .num { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--primary); line-height: 1; }
.hero-media .hero-stat .lbl { font-size: .8rem; color: var(--text-muted); }
.hero-media .hero-stat i { color: var(--teal); font-size: 1.6rem; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); height: 100%; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #CBD8E6; }
.card-icon { width: 52px; height: 52px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-hover); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .98rem; margin-bottom: 1rem; }
.card .card-link { font-family: var(--font-head); font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: .4rem; }
.card .card-link i { transition: transform var(--transition); }
.card:hover .card-link i { transform: translateX(4px); }

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Tarjeta servicio con imagen */
.service-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-card img { aspect-ratio: 16/10; object-fit: cover; }
.service-card .service-body { padding: var(--sp-3); display: flex; flex-direction: column; flex: 1; }
.service-card .service-body p { flex: 1; }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 600; font-size: .8rem; padding: .35rem .8rem; border-radius: var(--r-pill); background: var(--teal-soft); color: var(--teal); }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill); padding: .5rem 1rem; font-size: .92rem; font-weight: 500; color: var(--primary); font-family: var(--font-head); }
.chip i { color: var(--accent-hover); margin-right: .35rem; }
a.chip:hover { border-color: var(--accent); color: var(--accent-hover); }

/* ---------- Feature / why list ---------- */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .feature-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-size: 1.25rem; }
.feature h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.feature p { font-size: .96rem; }

/* ---------- Proceso (pasos) ---------- */
.steps { counter-reset: step; display: grid; gap: var(--sp-3); }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3); padding-top: 2.4rem; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 1rem; right: 1.2rem; font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; color: var(--accent); opacity: .65; }
.step h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.step p { font-size: .95rem; }

/* ---------- Split (texto + imagen) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: center; }
.split img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); aspect-ratio: 5/4; object-fit: cover; }
.split ul.checklist { margin-top: 1.2rem; }
ul.checklist li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .7rem; color: var(--text); }
ul.checklist li i { color: var(--teal); margin-top: .25rem; flex-shrink: 0; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); text-align: center; }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--accent); line-height: 1; }
.stat .lbl { font-size: .92rem; color: rgba(255,255,255,.78); margin-top: .4rem; }

/* ---------- Testimonios ---------- */
.testimonial { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3); }
.testimonial .stars { color: var(--accent); margin-bottom: .7rem; letter-spacing: 2px; }
.testimonial p { color: var(--text); font-size: 1rem; font-style: italic; margin-bottom: 1rem; }
.testimonial .who { display: flex; align-items: center; gap: .7rem; }
.testimonial .who .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: var(--accent); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.testimonial .who .name { font-family: var(--font-head); font-weight: 600; color: var(--primary); font-size: .95rem; }
.testimonial .who .loc { font-size: .85rem; color: var(--text-muted); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: .8rem; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.3rem; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--primary); }
.faq-q i { transition: transform var(--transition); color: var(--accent-hover); flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 280ms ease; }
.faq-a-inner { padding: 0 1.3rem 1.25rem; color: var(--text-muted); }
.faq-item.open .faq-a { max-height: 420px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--primary), var(--primary-700)); color: #fff; border-radius: var(--r-lg); padding: var(--sp-5); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 120%, rgba(244,160,58,.22), transparent 60%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 36rem; margin: .8rem auto 1.6rem; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Formulario ---------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); box-shadow: var(--shadow-md); }
.form-card.on-dark { color: var(--text); }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--primary); margin-bottom: .4rem; }
.form-input, .form-textarea, select.form-input {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 1rem; color: var(--text); background: #fff; transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-textarea:focus, select.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(244,160,58,.18); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--text-muted); margin-bottom: 1.1rem; }
.form-check input { margin-top: .25rem; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--accent); }
.form-note { font-size: .85rem; color: var(--text-muted); margin-top: .8rem; text-align: center; }
.form-error { color: #C0392B; font-size: .85rem; margin-top: .3rem; display: none; }
.form-input.invalid, .form-textarea.invalid { border-color: #C0392B; }
.form-status { padding: .9rem 1rem; border-radius: var(--r-sm); margin-bottom: 1rem; font-size: .95rem; display: none; }
.form-status.ok { display: block; background: var(--teal-soft); color: var(--teal); }
.form-status.err { display: block; background: #FDECEA; color: #C0392B; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 1rem 0; font-size: .88rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.breadcrumb li { color: var(--text-muted); display: flex; align-items: center; gap: .4rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--border); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-hover); }

/* ---------- Page hero (interiores) ---------- */
.page-hero { background: var(--primary); color: #fff; padding: var(--sp-5) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 380px at 90% -20%, rgba(244,160,58,.16), transparent 60%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.12rem; max-width: 44rem; margin-top: .9rem; }
.page-hero .breadcrumb { padding-top: 0; padding-bottom: 1.2rem; }
.page-hero .breadcrumb li, .page-hero .breadcrumb a { color: rgba(255,255,255,.6); }
.page-hero .breadcrumb a:hover { color: var(--accent); }
.page-hero .breadcrumb li:not(:last-child)::after { color: rgba(255,255,255,.3); }

/* ---------- Article (blog) ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article img { border-radius: var(--r-md); margin: 1.6rem 0; }
.article h2 { margin: 2rem 0 .8rem; }
.article h3 { margin: 1.5rem 0 .6rem; }
.article p { margin-bottom: 1.1rem; color: var(--text); }
.article ul.dotted { margin: 0 0 1.2rem 1.2rem; list-style: disc; }
.article ul.dotted li { margin-bottom: .5rem; color: var(--text); }
.article .post-meta { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.article table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; }
.article th, .article td { border: 1px solid var(--border); padding: .7rem .9rem; text-align: left; }
.article th { background: var(--bg-soft); font-family: var(--font-head); color: var(--primary); }
.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: var(--r-sm); padding: 1.1rem 1.3rem; margin: 1.5rem 0; }
.callout p { margin: 0; color: var(--text); }

.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card img { aspect-ratio: 16/9; object-fit: cover; }
.post-card .post-body { padding: var(--sp-3); display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.post-card p { font-size: .95rem; flex: 1; margin-bottom: 1rem; }
.post-card .tag { font-size: .78rem; color: var(--accent-hover); font-weight: 600; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }

/* ---------- Map ---------- */
.map-embed { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.map-embed iframe { display: block; width: 100%; border: 0; }

/* ---------- Contact info list ---------- */
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.2rem; }
.contact-list .ci-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 11px; background: var(--accent-soft); color: var(--accent-hover); display: grid; place-items: center; font-size: 1.1rem; }
.contact-list .ci-label { font-family: var(--font-head); font-weight: 600; color: var(--primary); font-size: .95rem; }
.contact-list .ci-value { color: var(--text-muted); font-size: .98rem; }
.contact-list .ci-value a { color: var(--text-muted); }
.contact-list .ci-value a:hover { color: var(--accent-hover); }

/* ---------- Footer ---------- */
footer { background: var(--primary); color: #A9BDD2; padding: var(--sp-6) 0 var(--sp-3); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--sp-4); margin-bottom: var(--sp-4); }
footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
footer a { color: #A9BDD2; }
footer a:hover { color: var(--accent); }
footer ul li { margin-bottom: .6rem; }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand small { color: #8DA3BA; }
.footer-brand p { color: #8DA3BA; font-size: .92rem; margin-bottom: 1.1rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #C7D6E5; }
.footer-social a:hover { background: var(--accent); color: var(--primary); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact i { color: var(--accent); margin-top: .25rem; flex-shrink: 0; }
.footer-contact a, .footer-contact li, .contact-list .ci-value, .contact-list .ci-value a, .topbar a { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.subfooter { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .87rem; color: #8DA3BA; }
.subfooter a { color: #8DA3BA; }
.subfooter .legal-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }

/* ---------- Utilidades ---------- */
.mt-1{margin-top:var(--sp-1)}.mt-2{margin-top:var(--sp-2)}.mt-3{margin-top:var(--sp-3)}.mt-4{margin-top:var(--sp-4)}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:var(--sp-2)}.mb-3{margin-bottom:var(--sp-3)}
.maxw-720{max-width:720px}.center{margin-left:auto;margin-right:auto}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: var(--sp-4); }
  .hero-media { order: -1; }
  .hero-media .hero-stat { left: auto; right: 16px; bottom: 16px; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
}
@media (max-width: 768px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform 240ms ease; gap: .2rem; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .85rem 1rem; }
  .nav-cta { margin: .6rem 0 0; }
  .nav-cta.btn { width: 100%; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar .topbar-left { gap: 1rem; }
  .topbar .hide-mobile { display: none; }
  .section { padding: var(--sp-6) 0; }
  .container { padding: 0 1rem; }
  .cta-band { padding: var(--sp-4) var(--sp-3); }
  /* Tablas del blog con scroll horizontal en lugar de desbordar */
  .article table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
  .subfooter { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-media .hero-stat { position: static; margin-top: 1rem; left: auto; right: auto; bottom: auto; }
  .hero-ctas .btn, .cta-band .hero-ctas .btn { width: 100%; }
  h1 { font-size: clamp(1.85rem, 7vw, 2.4rem); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
