/* =================================================================
   AVS Aerotermia Bilbao — styles.css
   Paleta: azul petroleo profundo + acento azul/teal medico (energia)
   Tipografia: Manrope (titulares) / Nunito Sans (texto)
   ================================================================= */

:root {
  /* Colores */
  --primary: #23282F;        /* azul petroleo profundo */
  --primary-700: #2E343D;
  --primary-300: #6B7682;
  --accent: #2E8B9B;         /* azul/teal medico (energia limpia) */
  --accent-hover: #226B79;
  --accent-soft: #E2F1F4;
  --teal: #3FA7A0;           /* aqua suave (eficiencia) */
  --teal-soft: #E4F4F2;
  --text: #16202B;
  --text-muted: #5A6878;
  --border: #E2E8F0;
  --bg: #FFFFFF;
  --bg-soft: #EEF6F8;
  --bg-warm: #F4FAFB;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(20, 23, 28, .08), 0 1px 2px rgba(20, 23, 28, .04);
  --shadow-md: 0 8px 24px rgba(20, 23, 28, .10);
  --shadow-lg: 0 20px 48px rgba(20, 23, 28, .14);

  /* Tipografia */
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Nunito 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: #fff; box-shadow: 0 6px 18px rgba(46,139,155,.32); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.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); }

/* ---------- Dropdown de navegacion (Servicios) ---------- */
.nav-dropdown { position: relative; }
.nav-dropbtn { display: inline-flex; align-items: center; gap: .35rem; color: var(--text); font-family: var(--font-head); font-weight: 500; font-size: .98rem; padding: .55rem .8rem; border-radius: var(--r-sm); background: none; cursor: pointer; transition: background var(--transition), color var(--transition); }
.nav-dropbtn i { font-size: .68rem; 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: 232px; 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: 500; font-size: .95rem; padding: .6rem .85rem; border-radius: var(--r-sm); white-space: nowrap; }
.nav-dropmenu a:hover { background: var(--bg-soft); color: var(--accent-hover); }
@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; }
}

/* ---------- 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(46,139,155,.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(46,139,155,.14); border: 1px solid rgba(46,139,155,.4);
  color: #AEDDE5; 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(46,139,155,.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(46,139,155,.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(46,139,155,.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); }

/* ---------- Prose (secciones de texto SEO) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-bottom: .8rem; }
.prose h3 { margin: 1.4rem 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 generica (comparativas de servicio) ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .97rem; 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(--primary); color: #fff; font-family: var(--font-head); font-weight: 600; }
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: 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; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* =================================================================
   CAPA VISUAL CREATIVA (overrides al final para mayor especificidad)
   ================================================================= */
:root {
  --accent-2: #57C7BC;                 /* aqua para degradados */
  --grad-accent: linear-gradient(130deg, #2E8B9B 0%, #57C7BC 100%);
  --grad-dark: linear-gradient(150deg, #2A3038 0%, #191D22 70%);
}

/* ---- Botones con degradado y glow ---- */
.btn-primary { background: var(--grad-accent); color: #fff; box-shadow: 0 8px 22px rgba(46,139,155,.34); }
.btn-primary:hover { background: var(--grad-accent); filter: brightness(1.06); box-shadow: 0 12px 30px rgba(46,139,155,.42); color: #fff; }
.btn-lg { letter-spacing: .01em; }

/* ---- Eyebrow como pildora con guion ---- */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: var(--accent-soft); color: var(--accent-hover); padding: .34rem .85rem; border-radius: var(--r-pill); text-transform: uppercase; }
.eyebrow::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--grad-accent); }
.section-head .eyebrow { margin-bottom: 1rem; }

/* ---- Titulos de seccion con barra de acento ---- */
.section-head .eyebrow { display: inline-flex; }                 /* el eyebrow va en su propia linea */
.section-head h2 { position: relative; display: block; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 4px; margin: .9rem auto 0; border-radius: 4px; background: var(--grad-accent); }
.split h2 { position: relative; padding-bottom: .8rem; }
.split h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 52px; height: 4px; border-radius: 4px; background: var(--grad-accent); }
.prose > h2:first-of-type { position: relative; padding-bottom: .8rem; }
.prose > h2:first-of-type::after { content: ""; position: absolute; left: 0; bottom: 0; width: 52px; height: 4px; border-radius: 4px; background: var(--grad-accent); }

/* ---- Iconos con degradado ---- */
.card-icon, .feature .feature-icon, .contact-list .ci-icon { background: var(--grad-accent); color: #fff; box-shadow: 0 8px 18px rgba(46,139,155,.28); }

/* ---- Tarjetas con barra superior animada + elevacion ---- */
.card { position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--grad-accent); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.card:hover::before { transform: scaleX(1); }
.card:hover { box-shadow: 0 18px 40px rgba(20,23,28,.13); border-color: transparent; }
.post-card { position: relative; }

/* ---- Pasos: numero grande con degradado ---- */
.step { border: 1px solid var(--border); transition: transform var(--transition), box-shadow var(--transition); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step::before { font-size: 2.6rem; opacity: 1; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ---- Feature card con fondo y hover ---- */
.feature { 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; }

/* ---- Chips con relieve ---- */
.chip { transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
a.chip:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(20,23,28,.08); }

/* ---- Patron de puntos reutilizable ---- */
.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: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .55;
}
.hero > .container, .page-hero > .container, .bg-primary > .container { position: relative; z-index: 2; }

/* ---- Hero: palabra con degradado + glow extra ---- */
.hero { background: var(--grad-dark); }
.hero h1 span { background: linear-gradient(120deg, #6FE0D2, #2E8B9B); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero-media img { box-shadow: 0 30px 60px rgba(0,0,0,.32); }
.hero-media::after { content: ""; position: absolute; width: 200px; height: 200px; right: -40px; top: -40px; background: radial-gradient(circle, rgba(87,199,188,.4), transparent 70%); filter: blur(20px); z-index: -1; }

/* ---- page-hero (interiores) mas vistoso ---- */
.page-hero { background: var(--grad-dark); border-bottom: 3px solid transparent; border-image: var(--grad-accent) 1; }
.page-hero .hero-trust { margin-top: 1.3rem; }

/* ---- Stats band con degradado y numeros grandes ---- */
.bg-primary { background: var(--grad-dark); }
.stat .num { background: linear-gradient(120deg, #6FE0D2, #2E8B9B); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-size: clamp(2.2rem, 4.4vw, 3rem); }
.stat { position: relative; }

/* ---- CTA band mas dramatico ---- */
.cta-band { background: var(--grad-dark); border: 1px solid rgba(87,199,188,.18); box-shadow: 0 24px 60px rgba(20,23,28,.22); }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; opacity: .5; }
.cta-band::after { background: radial-gradient(600px 320px at 85% 120%, rgba(87,199,188,.28), transparent 60%); }

/* ---- FAQ: icono + en circulo de acento ---- */
.faq-q i { background: var(--accent-soft); color: var(--accent-hover); width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .8rem; }
.faq-item { transition: box-shadow var(--transition), border-color var(--transition); }
.faq-item.open { border-color: var(--accent); box-shadow: 0 8px 22px rgba(46,139,155,.12); }

/* ---- Callout con acento de degradado ---- */
.callout { border-left: 4px solid transparent; border-image: var(--grad-accent) 1; background: var(--accent-soft); }

/* ---- Tabla: cabecera con degradado ---- */
table.tbl th { background: var(--grad-dark); }

/* ---- Brand mark con degradado ---- */
.brand .brand-mark { background: var(--grad-accent); color: #fff; box-shadow: 0 6px 16px rgba(46,139,155,.3); }

/* ---- Animacion de entrada del hero (carga) ---- */
@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: .2s; }

/* ---- Scroll reveal (lo activa main.js; sin JS, todo visible) ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =================================================================
   ACENTO POP (coral) — detalles llamativos que combinan con el teal
   ================================================================= */
:root { --pop: #FF6B4A; --pop-dark: #E8542F; --pop-soft: #FFE7DF; }

/* Badge del hero en coral (como detalle estrella) */
.hero-badge { background: rgba(255,107,74,.15); border-color: rgba(255,107,74,.5); color: #FFC3B4; }
.hero-badge i { color: var(--pop); }

/* Eyebrows en pildora coral */
.eyebrow { background: var(--pop-soft); color: var(--pop-dark); }
.eyebrow::before { background: var(--pop); }

/* Subrayado de titulos en coral */
.section-head h2::after, .split h2::after, .prose > h2:first-of-type::after { background: var(--pop); }

/* Dato flotante 1:4 e iconos de confianza del hero */
.hero-media .hero-stat i { color: var(--pop); }
.hero-trust i { color: var(--pop); }

/* "+" de las FAQ en coral */
.faq-q i { background: var(--pop-soft); color: var(--pop-dark); }
.faq-item.open .faq-q i { background: var(--pop); color: #fff; }

/* Enlaces tipo "Ver servicio ->" en coral */
.card .card-link, .post-card .card-link { color: var(--pop-dark); }
.card:hover .card-link { color: var(--pop); }

/* Checks de las listas (checklist) en coral para dar vida */
ul.checklist li i { color: var(--pop); }

/* Numeros de los pasos: degradado teal -> coral */
.step::before { background: linear-gradient(130deg, #2E8B9B, #FF6B4A); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* =================================================================
   TEMA NARANJA VIBRANTE (override final — color de marca = naranja)
   ================================================================= */
:root {
  --accent: #FF7A1A;          /* naranja vibrante */
  --accent-hover: #E0660A;
  --accent-soft: #FFE9D6;
  --accent-2: #FF9D45;
  --grad-accent: linear-gradient(130deg, #FF8A1E 0%, #FF6A2C 100%);
  --pop: #FF7A1A; --pop-dark: #E0660A; --pop-soft: #FFE9D6;
}

/* Glows y sombras del acento -> naranja */
.btn-primary { box-shadow: 0 8px 22px rgba(255,122,26,.34); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(255,122,26,.46); }
.hero::after { background: radial-gradient(1100px 500px at 80% -10%, rgba(255,122,26,.20), transparent 60%); }
.cta-band { border-color: rgba(255,122,26,.20); }
.cta-band::after { background: radial-gradient(600px 320px at 85% 120%, rgba(255,122,26,.30), transparent 60%); }
.card-icon, .feature .feature-icon, .contact-list .ci-icon { box-shadow: 0 8px 18px rgba(255,122,26,.28); }
.brand .brand-mark { box-shadow: 0 6px 16px rgba(255,122,26,.30); }

/* Palabra del hero y numeros grandes -> degradado naranja */
.hero h1 span,
.stat .num {
  background: linear-gradient(120deg, #FFB066, #FF7A1A);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.step::before {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Badge del hero en naranja */
.hero-badge { background: rgba(255,122,26,.16); border-color: rgba(255,122,26,.5); color: #FFCDA1; }
.hero-badge i { color: var(--accent); }

/* Iconos de acento -> naranja */
.hero-media .hero-stat i, .hero-trust i, ul.checklist li i, .topbar i, .footer-contact i, .footer-social a:hover { color: var(--accent); }

/* Logo: caja oscura con icono naranja (como la referencia) */
.brand .brand-mark { background: var(--grad-dark); color: var(--accent); }

/* =================================================================
   AJUSTES DE CONTRASTE (accesibilidad WCAG AA)
   ================================================================= */
:root { --accent-ink: #C2540A; }   /* naranja oscuro para TEXTO sobre fondo claro */

/* Texto oscuro sobre botones naranjas (mejor contraste y como la referencia) */
.btn-primary, .btn-primary:hover { color: #15212B; }
.btn-primary:hover { background: #FF9036; }       /* hover mas claro = mantiene contraste */

/* Enlaces y microtextos naranjas a un tono que pasa AA sobre blanco/claro */
a { color: var(--accent-ink); }
a:hover { color: var(--accent); }
.eyebrow { color: var(--accent-ink); }
.card .card-link, .post-card .card-link, .card:hover .card-link { color: var(--accent-ink); }

/* Foco visible para navegacion por teclado (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;
}

/* =================================================================
   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: 16px; 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: .98rem; }
.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: #ECE5DD; max-height: 70vh; overflow-y: auto; }
.wa-intro { background: #fff; border-radius: 10px; padding: .7rem .85rem; font-size: .9rem; 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: 600; font-size: .8rem; 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: #C0392B; 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: 600; 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; } }
