/* G2 Eco Clima — diseño "E" (12/10/2026): estética de la propuesta D con los textos de la A.
   Sin estilos en línea: el CSP de la web es style-src 'self'. */
:root {
  --ink: #0c2a4a;
  --ink-soft: #36506a;
  --muted: #56708a;
  --blue: #0f7fc8;
  --blue-link: #0f5fa0;
  --green: #3f8a24;
  --green-hover: #33721d;
  --green-soft: #e6f2dd;
  --blue-soft: #dceaf6;
  --ground: #f5f8fa;
  --line: #e1e8ee;
  --line-strong: #cfd9e2;
  --on-dark: #c6d4e2;
  --green-on-dark: #9fd17c;
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", cursive;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--blue-link); }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #5fa63a;
  outline-offset: 3px;
}
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* Barra de progreso y aparición (main.js) */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 300; background: var(--green); }
.reveal { opacity: 1; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  padding: 16px 26px; border-radius: 16px; border: 0; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 14px 30px -12px rgba(63,138,36,.7); }
.btn-primary:hover { background: var(--green-hover); color: #fff; transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #12375f; color: #fff; }
.btn-line { color: var(--ink); text-decoration: none; font-weight: 700; padding: 14px 6px; border-bottom: 2px solid var(--blue); }
.btn-block { width: 100%; }

/* Cabecera (también en páginas legales) */
.site-header { position: relative; z-index: 50; background: var(--ground); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 92px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-logo { width: 52px; height: 55px; object-fit: contain; }
.brand-text { font-family: var(--display); font-weight: 800; font-size: 1.55rem; letter-spacing: -.01em; }
.brand-text strong { font-weight: 500; color: var(--green); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 1rem; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--green); }
.nav .nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.nav .btn { padding: 13px 22px; border-radius: 14px; font-size: 1rem; }
.nav .btn-dark { color: #fff; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 0 12px; background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: 14px; cursor: pointer;
}
.nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; }

/* Portada */
.hero { padding: 24px 0 56px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; font-weight: 600; font-size: .86rem; color: var(--green); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--green); }
.eyebrow-light { color: var(--green-on-dark); }
.eyebrow-light::before { background: var(--green-on-dark); }
.hero h1 { font-weight: 800; font-size: clamp(2.8rem, 5.6vw, 4.75rem); line-height: .98; letter-spacing: -.035em; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-media { position: relative; }
.drop {
  position: relative; width: min(470px, 86vw); aspect-ratio: 1 / 1; margin: 30px auto 40px;
  border-radius: 50% 0 50% 50%; transform: rotate(-45deg); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(12,42,74,.55);
}
.drop img { position: absolute; inset: -21%; width: 142%; height: 142%; max-width: none; object-fit: cover; object-position: 50% 30%; transform: rotate(45deg); }
.hero-badge {
  position: absolute; left: 0; bottom: 24px; display: flex; gap: 12px; align-items: center; max-width: 270px;
  background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: 0 20px 40px -18px rgba(12,42,74,.4);
  font-size: .82rem; line-height: 1.35;
}
.hero-badge strong { display: block; font-size: .88rem; }
.hero-note { position: absolute; right: 0; top: -18px; font-family: var(--hand); font-weight: 600; font-size: 1.6rem; color: var(--blue); transform: rotate(6deg); }
.chip { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--green-soft); color: var(--green); }
.chip-blue { background: var(--blue-soft); color: var(--blue-link); }
.chip .icon { width: 22px; height: 22px; }

.rise { animation: rise 1s cubic-bezier(.16,1,.3,1) both; }
.rise-2 { animation: rise 1s .15s cubic-bezier(.16,1,.3,1) both; }
@keyframes rise { from { opacity: .001; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Garantías */
.creds { padding: 0 0 80px; }
.creds-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cred { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; gap: 14px; align-items: flex-start; }
.cred strong { display: block; font-size: .95rem; }
.cred span { display: block; font-size: .84rem; line-height: 1.45; color: var(--ink-soft); }

/* Secciones */
.section { padding: 96px 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.section-head h2, .services h2 { font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.02; letter-spacing: -.03em; }
.section-head p { max-width: 420px; color: var(--ink-soft); }

.services { background: var(--ink); color: #fff; border-radius: 44px 44px 0 0; }
.services h2 { color: #fff; margin-bottom: 44px; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 26px; padding: 28px 30px; }
.service h3 { color: #fff; font-weight: 700; font-size: 1.4rem; margin-bottom: 6px; }
.service p { color: var(--on-dark); font-size: .95rem; }

.mats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mat { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.mat img { width: 100%; height: 120px; object-fit: cover; }
.mat div { padding: 16px 18px 20px; }
.mat strong { display: block; font-size: .95rem; }
.mat span { font-size: .84rem; color: var(--ink-soft); }

.works { padding-top: 0; }
.works-grid { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 300px 300px; gap: 18px; }
.work { position: relative; margin: 0; border-radius: 28px; overflow: hidden; }
.work img { width: 100%; height: 100%; object-fit: cover; }
.work-big { grid-row: span 2; }
.work figcaption { position: absolute; left: 14px; bottom: 14px; background: #fff; border-radius: 14px; padding: 10px 14px; font-size: .84rem; }
.work-big figcaption { left: 18px; right: 18px; bottom: 18px; border-radius: 18px; padding: 16px 18px; }
.work-big figcaption strong { display: block; font-size: 1rem; }
.work-big figcaption span { color: var(--ink-soft); }

/* Reseñas */
.reviews { padding-top: 0; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.review-card img { width: 140px; height: 140px; flex-shrink: 0; }
.review-text { flex: 1 1 300px; }
.review-text h3 { font-weight: 700; font-size: 1.5rem; margin-bottom: 6px; }
.review-text p { color: var(--ink-soft); }

/* Presupuesto */
.quote { padding-top: 0; }
.quote-box { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center; background: var(--green-soft); border-radius: 40px; padding: 56px; }
.quote-hand { font-family: var(--hand); font-weight: 600; font-size: 1.7rem; color: var(--green); margin-bottom: 6px; }
.quote-box h2 { font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.25rem); line-height: 1.02; letter-spacing: -.03em; margin-bottom: 16px; }
.quote-box > div > p { color: var(--ink-soft); margin-bottom: 26px; }
.quote-contact { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 1.1rem; }
.quote-contact a { color: var(--ink); text-decoration: none; }
.quote-contact a.mail { color: var(--blue-link); font-size: .95rem; font-weight: 600; }
.quote-form { background: #fff; border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 60px -30px rgba(12,42,74,.35); }
.quote-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .84rem; }
.quote-form input, .quote-form select { height: 52px; border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 0 14px; font: inherit; font-weight: 400; font-size: 1rem; background: #fff; color: var(--ink); }
.quote-form .btn { margin-top: 4px; }
.form-hint { font-size: .78rem; color: var(--muted); text-align: center; }

/* Aviso de cookies */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; background: var(--ink); color: rgba(255,255,255,.9); border-radius: 18px; box-shadow: 0 20px 40px -18px rgba(12,42,74,.5); padding: 18px 22px; }
.cookie-banner-inner { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-banner p { margin: 0; font-size: .85rem; color: rgba(255,255,255,.85); flex: 1 1 320px; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner .btn { padding: 10px 22px; }

/* Pie (también en páginas legales) */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 40px 0; font-size: .84rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; }
.footer-brand .brand-logo { width: 44px; height: 46px; flex-shrink: 0; }
.footer-address { font-weight: 400; color: var(--on-dark); margin: 4px 0 0; }
.footer-copy { margin: 0; color: var(--on-dark); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.footer-nav a { color: var(--on-dark); text-decoration: none; }
.footer-nav a:hover { color: #fff; }

/* Páginas legales */
.legal { padding: 40px 0 96px; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: 2rem; margin-bottom: .2em; }
.legal .updated { font-size: .85rem; color: var(--muted); margin-bottom: 2em; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; margin-bottom: .5em; padding-top: .4em; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal p, .legal li { color: var(--ink); font-size: .96rem; margin-bottom: 1em; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--blue-link); text-decoration: underline; }
.legal .pending { background: #fff7e6; border: 1px dashed #e0b34d; border-radius: 8px; padding: 10px 14px; font-size: .85rem; color: #7a5a12; }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-inner, .quote-box { grid-template-columns: minmax(0, 1fr); }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav {
    display: flex; position: absolute; top: 92px; left: 0; right: 0; z-index: 60;
    flex-direction: column; align-items: flex-start; gap: 16px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px 24px;
  }
  .creds-grid, .mats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .container { padding: 0 18px; }
  .services-grid, .creds-grid, .mats-grid { grid-template-columns: minmax(0, 1fr); }
  .works-grid { grid-template-columns: 1fr; grid-template-rows: 260px 200px 200px; }
  .work-big { grid-row: auto; }
  .section { padding: 64px 0; }
  .quote-box { padding: 30px 22px; border-radius: 28px; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero-note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .rise-2 { animation: none; }
  .btn { transition: none; }
}
