/* =================================================================
   AVG Aerotermia Vigo — hoja de estilos
   Paleta: grafito (#232A2E) + teja (#C24A20), fondos piedra (#F5F2EE)
   Tipografia: Manrope (titulares) / Source Sans 3 (texto)
   ================================================================= */

:root {
  --primary: #232A2E;
  --primary-700: #31393E;
  --primary-300: #737B80;
  --accent: #C24A20;
  --accent-hover: #9E3A16;
  --accent-bright: #EE7444;
  --accent-soft: #FBE9E1;
  --teal: #2F6F86;
  --teal-soft: #E4EFF3;
  --text: #1C2124;
  --text-muted: #596166;
  --border: #E4E0DA;
  --bg: #FFFFFF;
  --bg-soft: #F5F2EE;
  --bg-warm: #FAF8F5;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(20,24,28,.08);
  --shadow-md: 0 10px 26px rgba(20,24,28,.10);
  --shadow-lg: 0 22px 48px rgba(20,24,28,.16);
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sp-1: .5rem; --sp-2: 1rem; --sp-3: 1.5rem; --sp-4: 2rem;
  --sp-5: 3rem;  --sp-6: 4rem; --sp-7: 5.5rem;
  --r-sm: 4px; --r-md: 6px; --r-lg: 8px; --r-pill: 6px;
  --container: 1180px;
  --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-stone { background: var(--bg-soft); }
.bg-warm { background: var(--bg-warm); }
.bg-dark { background: var(--primary); color: #D5DADC; }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.grid { display: grid; gap: var(--sp-3); }
.flex { display: flex; }
.text-center { text-align: center; }

.kicker {
  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;
}
.blk-head { max-width: 720px; margin: 0 auto var(--sp-5); text-align: center; }
.blk-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(194,74,32,.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: #C9CED1; 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: #C9CED1; 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(194,74,32,.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(194,74,32,.14); border: 1px solid rgba(194,74,32,.4);
  color: #F6CDBB; 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; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .9rem; color: rgba(255,255,255,.78); }
.trust-row span { display: inline-flex; align-items: center; gap: .45rem; }
.trust-row 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 ---------- */
.tile { 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%; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #D6D0C8; }
.tile-ico { 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; }
.tile h3 { margin-bottom: .5rem; }
.tile p { font-size: .98rem; margin-bottom: 1rem; }
.tile .tile-more { font-family: var(--font-head); font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: .4rem; }
.tile .tile-more i { transition: transform var(--transition); }
.tile:hover .tile-more 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); }
.tags { display: flex; flex-wrap: wrap; gap: .55rem; }
.tag-pill { 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); }
.tag-pill i { color: var(--accent-hover); margin-right: .35rem; }
a.tag-pill:hover { border-color: var(--accent); color: var(--accent-hover); }

/* ---------- Feature / why list ---------- */
.perk { display: flex; gap: 1rem; align-items: flex-start; }
.perk .perk-ico { 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; }
.perk h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.perk 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) ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: center; }
.duo img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); aspect-ratio: 5/4; object-fit: cover; }
.duo ul.ticks { margin-top: 1.2rem; }
ul.ticks li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .7rem; color: var(--text); }
ul.ticks li i { color: var(--teal); margin-top: .25rem; flex-shrink: 0; }

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

/* ---------- Testimonios ---------- */
.case { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3); }
.case .stars { color: var(--accent); margin-bottom: .7rem; letter-spacing: 2px; }
.case p { color: var(--text); font-size: 1rem; font-style: italic; margin-bottom: 1rem; }
.case .who { display: flex; align-items: center; gap: .7rem; }
.case .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; }
.case .who .name { font-family: var(--font-head); font-weight: 600; color: var(--primary); font-size: .95rem; }
.case .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-box { 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-box::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 120%, rgba(194,74,32,.22), transparent 60%); }
.cta-box > * { position: relative; z-index: 2; }
.cta-box h2 { color: #fff; }
.cta-box p { color: rgba(255,255,255,.85); max-width: 36rem; margin: .8rem auto 1.6rem; }
.cta-box .cta-row { justify-content: center; }

/* ---------- Formulario ---------- */
.form-box { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); box-shadow: var(--shadow-md); }
.form-box.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(194,74,32,.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 ---------- */
.crumbs { padding: 1rem 0; font-size: .88rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.crumbs li { color: var(--text-muted); display: flex; align-items: center; gap: .4rem; }
.crumbs li:not(:last-child)::after { content: "/"; color: var(--border); }
.crumbs a { color: var(--text-muted); }
.crumbs 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(194,74,32,.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 .crumbs { padding-top: 0; padding-bottom: 1.2rem; }
.page-hero .crumbs li, .page-hero .crumbs a { color: rgba(255,255,255,.6); }
.page-hero .crumbs a:hover { color: var(--accent); }
.page-hero .crumbs li:not(:last-child)::after { color: rgba(255,255,255,.3); }

/* ---------- Prose (secciones de texto SEO) ---------- */
.longread { max-width: 820px; margin: 0 auto; }
.longread h2 { margin-bottom: .8rem; }
.longread h3 { margin: 1.4rem 0 .5rem; }
.longread p { margin-bottom: 1.1rem; color: var(--text); }
.longread ul.bullets { margin: 0 0 1.2rem 1.4rem; list-style: disc; }
.longread ul.bullets li { margin-bottom: .55rem; color: var(--text); }
.longread ul.ticks { margin: .6rem 0 1.2rem; }
.longread .note-box { margin: 1.4rem 0; }

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

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

.entry { 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); }
.entry:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.entry img { aspect-ratio: 16/9; object-fit: cover; }
.entry .entry-body { padding: var(--sp-3); display: flex; flex-direction: column; flex: 1; }
.entry h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.entry p { font-size: .95rem; flex: 1; margin-bottom: 1rem; }
.entry .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-box { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.map-box iframe { display: block; width: 100%; border: 0; }

/* ---------- Contact info list ---------- */
.nap-list li { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.2rem; }
.nap-list .nap-ico { 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; }
.nap-list .nap-lbl { font-family: var(--font-head); font-weight: 600; color: var(--primary); font-size: .95rem; }
.nap-list .nap-val { color: var(--text-muted); font-size: .98rem; }
.nap-list .nap-val a { color: var(--text-muted); }
.nap-list .nap-val a:hover { color: var(--accent-hover); }

/* ---------- Footer ---------- */
footer { background: var(--primary); color: #AEB5B9; padding: var(--sp-6) 0 var(--sp-3); font-size: .95rem; }
.foot-cols { 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: #AEB5B9; }
footer a:hover { color: var(--accent); }
footer ul li { margin-bottom: .6rem; }
.foot-brand .brand { color: #fff; margin-bottom: 1rem; }
.foot-brand .brand small { color: #9AA2A7; }
.foot-brand p { color: #9AA2A7; font-size: .92rem; margin-bottom: 1.1rem; }
.foot-social { display: flex; gap: .6rem; }
.foot-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #C9CED1; }
.foot-social a:hover { background: var(--accent); color: var(--primary); }
.foot-nap li { display: flex; gap: .6rem; align-items: flex-start; }
.foot-nap i { color: var(--accent); margin-top: .25rem; flex-shrink: 0; }
.foot-nap a, .foot-nap li, .nap-list .nap-val, .nap-list .nap-val a, .topbar a { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.foot-bottom { 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: #9AA2A7; }
.foot-bottom a { color: #9AA2A7; }
.foot-bottom .foot-legal { 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)}
.w-720{max-width:720px}.center{margin-left:auto;margin-right:auto}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .foot-cols { 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; }
  .duo { grid-template-columns: 1fr; }
  .figures { 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; }
  .foot-cols { 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-box { padding: var(--sp-4) var(--sp-3); }
  /* Tablas del blog con scroll horizontal en lugar de desbordar */
  .post table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 560px) {
  .foot-cols { grid-template-columns: 1fr; gap: var(--sp-3); }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .figures { grid-template-columns: 1fr 1fr; }
  .hero-media .hero-stat { position: static; margin-top: 1rem; left: auto; right: auto; bottom: auto; }
  .cta-row .btn, .cta-box .cta-row .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; }
}


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

.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}


/* =================================================================
   IDENTIDAD AVG — grafito + teja, superficies planas, cantos rectos
   ================================================================= */
body { line-height: 1.7; font-size: 1.075rem; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
h2 { font-size: clamp(1.55rem, 3.1vw, 2.25rem); }
p { color: var(--text-muted); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
.section { padding: 5.2rem 0; }

/* Botones planos, sin desplazamiento */
.btn { border-radius: var(--r-pill); font-weight: 700; letter-spacing: .01em; }
.btn:hover { transform: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { border: 2px solid var(--primary); color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--primary); }

/* Cabecera */
header { background: #fff; backdrop-filter: none; border-bottom: 3px solid var(--accent); }
.topbar { background: #171C1F; }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--accent-bright); }
.nav-links a:hover, .nav-links a.active { background: transparent; color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; box-shadow: none; }
.nav-dropdown:hover .nav-dropbtn, .nav-dropdown:focus-within .nav-dropbtn, .nav-dropdown.active .nav-dropbtn { background: transparent; color: var(--accent); }
.nav-dropmenu { border-radius: var(--r-sm); border-top: 3px solid var(--accent); }
.nav-dropmenu a:hover { background: var(--bg-soft); color: var(--accent); }
.brand .brand-mark { width: 46px; height: 40px; border-radius: var(--r-sm); background: var(--primary); color: #fff; font-family: var(--font-head); font-size: .86rem; font-weight: 800; letter-spacing: .04em; border-bottom: 3px solid var(--accent-bright); box-shadow: none; }
.brand small { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* Kicker (antetitulo) como texto con regla lateral */
.kicker { display: inline-flex; align-items: center; gap: .6rem; background: none; padding: 0; color: var(--accent); font-family: var(--font-head); font-weight: 800; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .8rem; }
.kicker::before { content: ""; width: 22px; height: 3px; background: var(--accent); }
.blk-head { text-align: left; margin: 0 0 3rem; max-width: 760px; }
.blk-head p { font-size: 1.08rem; }
.text-center .blk-head, .blk-head.center-head { text-align: center; margin-left: auto; margin-right: auto; }

/* Tarjetas: borde superior teja, sin elevacion */
.tile { border-radius: var(--r-sm); border: 1px solid var(--border); border-top: 3px solid var(--primary); padding: 1.7rem; transition: border-color .18s ease; }
.tile:hover { transform: none; box-shadow: none; border-top-color: var(--accent); }
.tile-ico { width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--bg-soft); color: var(--accent); font-size: 1.3rem; box-shadow: none; }
.tile .tile-more { color: var(--accent); font-weight: 700; }
.perk { background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1.4rem; }
.perk .perk-ico { border-radius: 50%; background: var(--primary); color: #fff; width: 46px; height: 46px; box-shadow: none; }
.bg-stone { background: var(--bg-soft); }
.bg-dark { background: var(--primary); color: #D5DADC; }

/* Pasos: numero en bloque teja a la izquierda */
.step { border-radius: var(--r-sm); padding: 1.6rem 1.5rem 1.5rem; border: 1px solid var(--border); border-left: 4px solid var(--accent); }
.step::before { position: static; display: inline-block; margin-bottom: .7rem; font-size: .9rem; font-weight: 800; letter-spacing: .1em; color: #fff; background: var(--primary); padding: .25rem .6rem; border-radius: var(--r-sm); opacity: 1; -webkit-text-fill-color: #fff; }
.step h3 { padding-right: 0; }

/* Imagenes de seccion */
.duo { gap: 3.5rem; }
.duo img { border-radius: var(--r-sm); box-shadow: 14px 14px 0 var(--bg-soft); }
.bg-stone .duo img { box-shadow: 14px 14px 0 #fff; }
.duo h2 { padding-bottom: 0; }
ul.ticks li i { color: var(--accent); }

/* Etiquetas */
.tag-pill { border-radius: var(--r-sm); border: 1px solid var(--border); font-weight: 600; }
.tag-pill i { color: var(--accent); }
a.tag-pill:hover { border-color: var(--accent); color: var(--accent); background: #fff; }

/* Cifras */
.figure .num { color: var(--accent-bright); font-weight: 800; }
.figure .lbl { color: rgba(255,255,255,.8); }

/* Casos tipo */
.case { border-radius: var(--r-sm); border: 1px solid var(--border); border-left: 4px solid var(--primary); background: #fff; }
.case p { font-style: normal; color: var(--text-muted); }
.case h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.case .case-tag { display: inline-block; font-family: var(--font-head); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.case .who, .case .stars { display: none; }

/* FAQ: lineas, sin cajas redondeadas */
.faq { max-width: 860px; }
.faq-item { border: none; border-bottom: 1px solid var(--border); border-radius: 0; margin: 0; background: transparent; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { padding: 1.2rem .2rem; font-weight: 700; }
.faq-q i { color: var(--accent); background: none; width: auto; height: auto; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-item.open .faq-q { color: var(--accent); }
.faq-a-inner { padding: 0 .2rem 1.3rem; }

/* CTA: bloque oscuro con franja lateral teja */
.cta-box { background: var(--primary); border-radius: var(--r-sm); text-align: left; border-left: 8px solid var(--accent); padding: 3rem; box-shadow: none; }
.cta-box::after { display: none; }
.cta-box p { margin: .8rem 0 1.6rem; max-width: 42rem; }
.cta-box .cta-row { justify-content: flex-start; margin-bottom: 0; }

/* Cabecera interior */
.page-hero { background: var(--primary); border-bottom: 4px solid var(--accent); }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border: 40px solid rgba(255,255,255,.04); border-radius: 50%; }
.page-hero .trust-row { margin-top: 1.3rem; }
.page-hero .crumbs a:hover { color: #fff; }
.trust-row i { color: var(--accent-bright); }

/* Tablas, notas y articulos */
table.data-table { border-radius: var(--r-sm); }
table.data-table th { background: var(--primary); }
.note-box { background: var(--bg-soft); border-left: 4px solid var(--accent); border-radius: 0; }
.post img { border-radius: var(--r-sm); }
.entry { border-radius: var(--r-sm); }
.entry .tag { color: var(--accent); }
.nap-list .nap-ico { border-radius: var(--r-sm); background: var(--primary); color: #fff; }
.form-box { border-radius: var(--r-sm); border-top: 4px solid var(--accent); box-shadow: 0 18px 40px rgba(20,24,28,.12); }
.form-input:focus, .form-textarea:focus, select.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194,74,32,.16); }
.form-status.ok { background: #E7F4EC; color: #1E6B3E; }
.map-box { border-radius: var(--r-sm); }

/* Pie */
footer { background: #171C1F; color: #AEB5B9; }
footer a { color: #C9CED1; }
footer a:hover { color: var(--accent-bright); }
.foot-cols { grid-template-columns: 1.4fr 1.2fr 1fr 1fr; }
.foot-brand .brand { color: #fff; }
.foot-brand .brand small, .foot-brand p { color: #9AA2A7; }
.foot-social a { border-radius: var(--r-sm); }
.foot-social a:hover { background: var(--accent); color: #fff; }
.foot-nap i { color: var(--accent-bright); }
.foot-bottom, .foot-bottom a { color: #8E969B; }

/* ---------- Hero home: foto a sangre + formulario ---------- */
.hero { background: var(--primary); }
.hero::after { display: none; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,28,31,.94) 0%, rgba(23,28,31,.86) 48%, rgba(23,28,31,.55) 100%); }
.hero .container { grid-template-columns: 1.15fr .85fr; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hero-kicker { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 1rem; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero-lead { color: rgba(255,255,255,.88); font-size: 1.15rem; margin: 1.2rem 0 1.6rem; max-width: 36rem; }
.hero .trust-row { color: rgba(255,255,255,.85); }
.hero-form { background: #fff; border-radius: var(--r-sm); border-top: 5px solid var(--accent); padding: 1.8rem; box-shadow: 0 24px 50px rgba(0,0,0,.3); }
.hero-form h2 { font-size: 1.35rem; margin-bottom: .3rem; }
.hero-form > p { font-size: .95rem; margin-bottom: 1rem; }
.hero-form .form-group { margin-bottom: .8rem; }
.hero-form .form-input { padding: .7rem .9rem; }

/* Comparativa de costes (home) */
.cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.cost { background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1.6rem; }
.cost.best { border: 2px solid var(--accent); }
.cost .cost-name { font-family: var(--font-head); font-weight: 800; color: var(--primary); font-size: 1.1rem; }
.cost .cost-val { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--primary); margin: .5rem 0 .2rem; }
.cost.best .cost-val { color: var(--accent); }
.cost small { color: var(--text-muted); }
.cost ul { margin-top: 1rem; }
.cost li { font-size: .95rem; color: var(--text); margin-bottom: .45rem; display: flex; gap: .5rem; }
.cost li i { color: var(--accent); margin-top: .3rem; }
.fineprint { font-size: .85rem; color: var(--text-muted); margin-top: 1.2rem; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 3rem; padding-bottom: 3rem; }
  .cost-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links { position: fixed; top: 73px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 1.3rem 1.5rem; border-bottom: 3px solid var(--accent); box-shadow: 0 10px 24px rgba(20,23,28,.12); transform: translateY(-140%); transition: transform 240ms ease; gap: .2rem; max-height: calc(100vh - 73px); 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%; }
  .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; }
  .topbar .hide-mobile { display: none; }
}
@media (max-width: 768px) {
  .section { padding: 3.8rem 0; }
  .cta-box { padding: 2rem 1.4rem; border-left-width: 5px; }
  .duo img { box-shadow: none; }
}
@media (max-width: 560px) { .foot-cols { grid-template-columns: 1fr; } }

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

/* Ritmo vertical en bloques texto + imagen */
.duo h2 { margin-bottom: 1rem; }
.duo p { margin-bottom: 1rem; }
.duo h3 { margin: 1.3rem 0 .4rem; }
