/* =================================================================
   ZG Placas Solares Zaragoza — styles.css
   Paleta: verde oliva (huerta del Ebro) + ambar (sol del valle)
   Tipografia: Red Hat Display (titulares) / Libre Franklin (texto)
   ================================================================= */

:root {
  /* Colores */
  --primary: #2B3A22;        /* verde oliva profundo */
  --primary-700: #1D2817;
  --accent: #E0992B;         /* ambar solar */
  --accent-hover: #C78421;
  --accent-soft: #FBEFD9;
  --accent-ink: #875811;     /* ambar oscuro para texto sobre blanco (AA) */
  --sun-2: #F0B54A;
  --eco: #5E8B3E;            /* verde medio (detalles) */
  --eco-soft: #EAF2E1;
  --text: #1F241A;
  --text-muted: #5D6853;
  --border: #E3E8DA;
  --bg: #FFFFFF;
  --bg-soft: #F3F6EE;        /* verde muy claro */
  --bg-warm: #FBF6EA;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(43,58,34,.09), 0 1px 2px rgba(43,58,34,.05);
  --shadow-md: 0 10px 26px rgba(43,58,34,.11);
  --shadow-lg: 0 22px 50px rgba(43,58,34,.17);

  /* Degradados */
  --grad-accent: linear-gradient(125deg, #F0B54A 0%, #D3871F 100%);
  --grad-dark: linear-gradient(155deg, #3D5130 0%, #172010 74%);

  /* Tipografia */
  --font-head: "Red Hat Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Libre Franklin", 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: 5.5rem;

  /* Radios */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 20px;  --r-pill: 999px;

  --container: 1200px;
  --transition: 190ms 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.7;
  font-size: 1.04rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
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.2;
  font-weight: 800;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.58rem, 3.3vw, 2.35rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.4rem); }
h4 { font-size: 1.08rem; }
p { color: var(--text-muted); }
strong { color: var(--text); font-weight: 700; }

/* ---------- 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(--grad-dark); color: #D9E2CC; }
.bg-primary h2, .bg-primary h3 { color: #fff; }
.grid { display: grid; gap: var(--sp-3); }
.text-center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: .36rem .9rem; border-radius: var(--r-sm); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--grad-accent); }
.section-head { max-width: 730px; margin: 0 auto var(--sp-5); text-align: center; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head p { font-size: 1.08rem; margin-top: .8rem; }
.section-head h2::after { content: ""; display: block; width: 72px; height: 5px; margin: 1rem auto 0; border-radius: 5px; background: var(--grad-accent); }
.lead { font-size: 1.16rem; color: var(--text-muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .88rem 1.65rem; border-radius: var(--r-pill);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), filter var(--transition);
  cursor: pointer; line-height: 1; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-accent); color: #2A1A04; box-shadow: 0 8px 22px rgba(211,135,31,.34); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 13px 30px rgba(211,135,31,.44); color: #2A1A04; }
.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,.42); }
.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-700); color: #CBD6BF; font-size: .89rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 42px; flex-wrap: wrap; }
.topbar a { color: #CBD6BF; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--sun-2); }
.topbar .topbar-left { display: flex; gap: 1.35rem; flex-wrap: wrap; }
.topbar .topbar-right { display: flex; gap: 1.2rem; align-items: center; }
.topbar i { color: var(--sun-2); }

/* ---------- Header / Nav ---------- */
header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-head); font-weight: 800; color: var(--primary); font-size: 1.16rem; line-height: 1.1; }
.brand:hover { color: var(--primary); }
.brand .brand-mark {
  width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0;
  background: var(--grad-dark); display: grid; place-items: center; color: var(--sun-2); font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(43,58,34,.32);
}
.brand small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .72rem; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links a {
  color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: .96rem;
  padding: .55rem .78rem; 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); }

/* ---------- Dropdown de navegacion ---------- */
.nav-dropdown { position: relative; }
.nav-dropbtn { display: inline-flex; align-items: center; gap: .35rem; color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: .96rem; padding: .55rem .78rem; border-radius: var(--r-sm); background: none; cursor: pointer; transition: background var(--transition), color var(--transition); }
.nav-dropbtn i { font-size: .66rem; transition: transform var(--transition); }
.nav-dropdown:hover .nav-dropbtn, .nav-dropdown:focus-within .nav-dropbtn, .nav-dropdown.active .nav-dropbtn { background: var(--bg-soft); color: var(--primary); }
.nav-dropmenu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 268px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: .4rem; display: none; flex-direction: column; z-index: 120; }
.nav-dropdown:hover .nav-dropmenu, .nav-dropdown:focus-within .nav-dropmenu { display: flex; }
.nav-dropdown:hover .nav-dropbtn i, .nav-dropdown:focus-within .nav-dropbtn i { transform: rotate(180deg); }
.nav-dropmenu a { color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: .94rem; padding: .6rem .85rem; border-radius: var(--r-sm); white-space: nowrap; }
.nav-dropmenu a:hover { background: var(--bg-soft); color: var(--accent-ink); }
@media (max-width: 768px) {
  .nav-dropdown { width: 100%; }
  .nav-dropbtn { width: 100%; justify-content: space-between; padding: .85rem 1rem; font-size: 1rem; }
  .nav-dropmenu { position: static; display: flex; box-shadow: none; border: none; border-radius: 0; padding: .1rem 0 .4rem .6rem; min-width: 0; }
  .nav-dropmenu a { padding: .7rem 1rem; }
}

/* ---------- Textura de fondos oscuros ---------- */
.hero, .page-hero, .bg-primary, .cta-band { position: relative; }
.hero::before, .page-hero::before, .bg-primary::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 34px 34px; opacity: .8;
}
.hero > .container, .page-hero > .container, .bg-primary > .container { position: relative; z-index: 2; }

/* ---------- Hero ---------- */
.hero { background: var(--grad-dark); color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(1000px 500px at 12% -14%, rgba(240,181,74,.3), transparent 62%); pointer-events: none; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: .95fr 1.05fr; gap: var(--sp-5); align-items: center; padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
.hero-media { order: -1; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(240,181,74,.16); border: 1px solid rgba(240,181,74,.5);
  color: #F8DDA8; font-size: .84rem; font-weight: 700; font-family: var(--font-head);
  padding: .42rem .95rem; border-radius: var(--r-pill); margin-bottom: 1.2rem;
}
.hero-badge i { color: var(--sun-2); }
.hero h1 { color: #fff; font-size: clamp(2.15rem, 4.5vw, 3.35rem); line-height: 1.14; }
.hero h1 span { background: linear-gradient(120deg, #F8CF7A, #E39A2C); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero-services { margin: 1.1rem 0 .4rem; text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.62); font-family: var(--font-head); }
.hero-subtitle { color: rgba(255,255,255,.87); font-size: 1.13rem; max-width: 33rem; 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.3rem; font-size: .9rem; color: rgba(255,255,255,.82); }
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust i { color: var(--sun-2); }
.hero-media img { border-radius: var(--r-lg); box-shadow: 0 30px 62px rgba(0,0,0,.36); aspect-ratio: 4/3; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; width: 210px; height: 210px; left: -46px; top: -46px; background: radial-gradient(circle, rgba(240,181,74,.42), transparent 70%); filter: blur(22px); z-index: -1; }
.hero-media .hero-stat {
  position: absolute; bottom: -24px; right: -20px; 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: 800; font-size: 1.7rem; color: var(--primary); line-height: 1; }
.hero-media .hero-stat .lbl { font-size: .79rem; color: var(--text-muted); }
.hero-media .hero-stat i { color: var(--accent); font-size: 1.6rem; }

/* ---------- Cards ---------- */
.card { position: relative; overflow: hidden; 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::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-accent); transform: scaleY(0); transform-origin: top; transition: transform .3s ease; }
.card:hover::before { transform: scaleY(1); }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(43,58,34,.14); border-color: transparent; }
.card-icon { width: 54px; height: 54px; border-radius: 15px; background: var(--grad-accent); color: #fff; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1rem; box-shadow: 0 8px 18px rgba(211,135,31,.3); }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .97rem; margin-bottom: 1rem; }
.card .card-link { font-family: var(--font-head); font-weight: 700; font-size: .94rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--accent-ink); }
.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); }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 700; font-size: .8rem; padding: .35rem .8rem; border-radius: var(--r-pill); background: var(--eco-soft); color: var(--eco); }
.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: 600; color: var(--primary); font-family: var(--font-head); transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.chip i { color: var(--accent-ink); margin-right: .35rem; }
a.chip:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(43,58,34,.09); }

/* ---------- Feature ---------- */
.feature { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.4rem; transition: transform var(--transition), box-shadow var(--transition); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bg-soft .feature { background: #fff; }
.feature .feature-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--eco-soft); color: var(--eco); display: grid; place-items: center; font-size: 1.22rem; }
.feature h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.feature p { font-size: .95rem; }

/* ---------- Proceso (pasos numerados) ---------- */
.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: 3.1rem; transition: transform var(--transition), box-shadow var(--transition); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 1.3rem; left: 1.5rem; width: 34px; height: 34px; border-radius: 50%; background: var(--grad-accent); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1rem; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(211,135,31,.3); }
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { font-size: .94rem; }

/* ---------- 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 h2 { position: relative; padding-bottom: .85rem; }
.split h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 5px; border-radius: 5px; background: var(--grad-accent); }
.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(--eco); margin-top: .3rem; flex-shrink: 0; }

/* ---------- Banda de datos ---------- */
.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: 800; font-size: clamp(2.1rem, 4.2vw, 2.9rem); line-height: 1; background: linear-gradient(120deg, #F8CF7A, #E39A2C); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.stat .lbl { font-size: .91rem; color: rgba(255,255,255,.82); margin-top: .45rem; }

/* ---------- Banda de claves locales (exclusiva de esta web) ---------- */
.hl-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.hl-band .hl { background: #fff; padding: 1.5rem 1.4rem; }
.hl-band .hl i { color: var(--accent); font-size: 1.35rem; margin-bottom: .6rem; display: block; }
.hl-band .hl strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--primary); margin-bottom: .3rem; }
.hl-band .hl span { font-size: .94rem; color: var(--text-muted); }

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

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: .8rem; background: #fff; overflow: hidden; transition: box-shadow var(--transition), border-color var(--transition); }
.faq-item.open { border-color: var(--accent); box-shadow: 0 8px 22px rgba(211,135,31,.15); }
.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: 700; font-size: 1.04rem; color: var(--primary); }
.faq-q i { transition: transform var(--transition); background: var(--accent-soft); color: var(--accent-ink); width: 27px; height: 27px; border-radius: 8px; display: inline-grid; place-items: center; font-size: .78rem; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); background: var(--accent); color: #fff; }
.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: 640px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-dark); color: #fff; border-radius: var(--r-lg); padding: var(--sp-5); text-align: center; position: relative; overflow: hidden; border: 1px solid rgba(240,181,74,.22); box-shadow: 0 24px 60px rgba(43,58,34,.25); }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 34px 34px; opacity: .8; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(620px 340px at 15% 120%, rgba(240,181,74,.32), transparent 62%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.87); max-width: 37rem; margin: .85rem 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-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .89rem; color: var(--primary); margin-bottom: .4rem; }
.form-input, .form-textarea, select.form-input {
  width: 100%; padding: .82rem 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(224,153,43,.22); }
.form-textarea { resize: vertical; min-height: 112px; }
.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: #B23B2E; font-size: .85rem; margin-top: .3rem; display: none; }
.form-input.invalid, .form-textarea.invalid { border-color: #B23B2E; }
.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(--eco-soft); color: var(--eco); }
.form-status.err { display: block; background: #FBEBE8; color: #B23B2E; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 1rem 0; font-size: .87rem; }
.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: "\203A"; color: var(--border); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-ink); }

/* ---------- Page hero (interiores) ---------- */
.page-hero { background: var(--grad-dark); color: #fff; padding: var(--sp-5) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(760px 400px at 8% -20%, rgba(240,181,74,.24), transparent 62%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 23ch; }
.page-hero h1 span { background: linear-gradient(120deg, #F8CF7A, #E39A2C); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.page-hero p { color: rgba(255,255,255,.87); font-size: 1.1rem; max-width: 45rem; 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(--sun-2); }
.page-hero .breadcrumb li:not(:last-child)::after { color: rgba(255,255,255,.3); }
.page-hero .hero-trust { margin-top: 1.4rem; }

/* ---------- Prose ---------- */
.prose { max-width: 830px; margin: 0 auto; }
.prose h2 { margin-bottom: .8rem; }
.prose > h2:first-of-type { position: relative; padding-bottom: .85rem; }
.prose > h2:first-of-type::after { content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 5px; border-radius: 5px; background: var(--grad-accent); }
.prose h3 { margin: 1.5rem 0 .5rem; }
.prose p { margin-bottom: 1.1rem; color: var(--text); }
.prose ul.dotted { margin: 0 0 1.2rem 1.4rem; list-style: disc; }
.prose ul.dotted li { margin-bottom: .55rem; color: var(--text); }
.prose ul.checklist { margin: .6rem 0 1.2rem; }
.prose .callout { margin: 1.4rem 0; }

/* ---------- Tabla ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .96rem; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
table.tbl th, table.tbl td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); }
table.tbl th { background: var(--grad-dark); color: #fff; font-family: var(--font-head); font-weight: 700; }
table.tbl td { color: var(--text); }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl tbody tr:nth-child(even) { background: var(--bg-soft); }

/* ---------- Article (blog) ---------- */
.article { max-width: 780px; 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: .89rem; 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: .94rem; }
.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: 5px 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 { position: relative; 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.13rem; margin-bottom: .5rem; }
.post-card p { font-size: .94rem; flex: 1; margin-bottom: 1rem; }
.post-card .tag { font-size: .77rem; color: var(--accent-ink); font-weight: 700; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .6rem; }
.post-card .card-link { font-family: var(--font-head); font-weight: 700; font-size: .94rem; color: var(--accent-ink); display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- Mapa ---------- */
.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; }

/* ---------- Datos de contacto ---------- */
.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: 13px; background: var(--grad-accent); color: #fff; display: grid; place-items: center; font-size: 1.1rem; box-shadow: 0 8px 18px rgba(211,135,31,.28); }
.contact-list .ci-label { font-family: var(--font-head); font-weight: 700; color: var(--primary); font-size: .95rem; }
.contact-list .ci-value { color: var(--text-muted); font-size: .97rem; }
.contact-list .ci-value a { color: var(--text-muted); }
.contact-list .ci-value a:hover { color: var(--accent-ink); }

/* ---------- Footer ---------- */
footer { background: var(--primary); color: #B3C1A3; padding: var(--sp-6) 0 var(--sp-3); font-size: .94rem; }
.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: .98rem; margin-bottom: 1.1rem; letter-spacing: .01em; }
footer a { color: #B3C1A3; }
footer a:hover { color: var(--sun-2); }
footer ul li { margin-bottom: .6rem; }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand small { color: #9AAA8A; }
.footer-brand p { color: #9AAA8A; font-size: .91rem; margin-bottom: 1.1rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #C9D4BB; }
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact i { color: var(--sun-2); margin-top: .3rem; 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: .86rem; color: #9AAA8A; }
.subfooter a { color: #9AAA8A; }
.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); }
  .hl-band { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: var(--sp-4); }
  .hero-media .hero-stat { 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: 74px; 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(-135%); transition: transform 240ms ease; gap: .2rem; max-height: calc(100vh - 74px); 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); }
  .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; right: auto; bottom: auto; }
  .hero-ctas .btn, .cta-band .hero-ctas .btn { width: 100%; }
  h1 { font-size: clamp(1.85rem, 7vw, 2.4rem); }
}

/* ---------- Animacion de entrada ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-text > * { animation: riseIn .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > :nth-child(1){animation-delay:.05s}.hero-text > :nth-child(2){animation-delay:.14s}.hero-text > :nth-child(3){animation-delay:.22s}.hero-text > :nth-child(4){animation-delay:.30s}.hero-text > :nth-child(5){animation-delay:.38s}.hero-text > :nth-child(6){animation-delay:.46s}
.hero-media { animation: riseIn .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: .18s; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Foco visible (accesibilidad) */
a:focus-visible, button:focus-visible, .btn:focus-visible, .nav-dropbtn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, .faq-q:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px;
}

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

/* =================================================================
   WIDGET WHATSAPP (boton flotante + mini formulario)
   ================================================================= */
.wa-widget { position: fixed; right: 20px; bottom: 20px; z-index: 1000; font-family: var(--font-body); }
.wa-fab { position: relative; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 8px 24px rgba(37,211,102,.45); cursor: pointer; transition: transform .2s ease; }
.wa-fab:hover { transform: scale(1.06); }
.wa-fab-pulse { position: absolute; inset: 0; border-radius: 50%; background: #25D366; opacity: .5; z-index: -1; animation: waPulse 2.6s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .5; } 70% { transform: scale(1.9); opacity: 0; } 100% { opacity: 0; } }
.wa-panel { position: absolute; right: 0; bottom: 74px; width: 330px; max-width: calc(100vw - 40px); background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.28); overflow: hidden; transform-origin: bottom right; animation: waIn .2s ease; }
@keyframes waIn { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: none; } }
.wa-head { background: #075E54; color: #fff; padding: .9rem 1rem; display: flex; align-items: center; gap: .7rem; }
.wa-avatar { width: 42px; height: 42px; border-radius: 50%; background: #25D366; display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.wa-head-txt { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.wa-head-txt strong { font-family: var(--font-head); font-size: .97rem; }
.wa-head-txt span { font-size: .78rem; opacity: .85; }
.wa-close { color: #fff; font-size: 1.15rem; cursor: pointer; opacity: .85; background: none; }
.wa-close:hover { opacity: 1; }
.wa-body { padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: #EFE8D8; max-height: 70vh; overflow-y: auto; }
.wa-intro { background: #fff; border-radius: 10px; padding: .7rem .85rem; font-size: .89rem; color: var(--text); box-shadow: 0 1px 1px rgba(0,0,0,.08); margin: 0; }
.wa-body label { font-family: var(--font-head); font-weight: 700; font-size: .79rem; color: #2a2f33; display: flex; flex-direction: column; gap: .25rem; }
.wa-f { width: 100%; padding: .55rem .7rem; border: 1px solid #c7ccd1; border-radius: 8px; font-family: var(--font-body); font-size: .92rem; background: #fff; color: var(--text); }
.wa-f:focus { outline: none; border-color: #25D366; box-shadow: 0 0 0 3px rgba(37,211,102,.18); }
.wa-err { display: none; color: #B23B2E; font-size: .8rem; margin: .1rem 0 0; }
.wa-send { background: #25D366; color: #fff; border-radius: 999px; padding: .72rem; font-family: var(--font-head); font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; cursor: pointer; margin-top: .2rem; transition: background .18s ease; }
.wa-send:hover { background: #1FB855; }
@media (max-width: 480px) { .wa-widget { right: 14px; bottom: 14px; } .wa-fab { width: 54px; height: 54px; font-size: 1.7rem; } }

.wa-note{font-size:.72rem;line-height:1.35;color:#6b7280;margin:.55rem 0 0;text-align:center}
.wa-note a{color:inherit;text-decoration:underline}
