/* CleanEnergy Argentina - estilos del sitio estático (versión 3, fiel al diseño de la web anterior). */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }

:root {
  --green: #0F8146;        /* verde de la web anterior */
  --green-dark: #0b6a38;
  --ink: #2f363b;      /* gris oscuro (antes casi negro) */
  --text: #222;
  --grey: #e6e6e6;
  --soft: #f2f2f2;
  --line: #e3e3e3;
  --max: 1140px;
  --mont: "Montserrat", "Segoe UI", Arial, sans-serif;
  --arial: "Montserrat", "Segoe UI", Arial, sans-serif; /* antes Arial; ahora todo el sitio usa Montserrat */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--mont); color: #41484d; line-height: 1.75; font-size: 1rem; background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3 { margin: 0 0 .6em; color: var(--ink); line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.narrow { max-width: 820px; margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid #f0b400; outline-offset: 2px; }

/* Títulos como en la web anterior: mayúsculas en Arial negrita, o Montserrat */
.caps { font-family: var(--mont); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.3; }
.caps-b { text-transform: uppercase; letter-spacing: .02em; font-weight: 600; font-size: .95rem; }
.title-caps { font-family: var(--mont); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: clamp(1.35rem, 2.4vw, 1.7rem); text-align: center; margin-bottom: 1.4em; }
.title-mont { font-family: var(--mont); font-weight: 500; font-size: clamp(1.3rem, 2.2vw, 1.6rem); text-align: center; letter-spacing: .02em; margin-bottom: 1.4em; }
.big { font-size: 1.02rem; color: var(--ink); line-height: 1.7; }
.small { font-size: .98rem; }
.lead-b { font-family: var(--mont); font-weight: 600; font-size: 1.08rem; line-height: 1.45; }

/* ---------- Encabezado ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 16px; }
.brand { text-decoration: none; display: inline-flex; align-items: center; }
.logo-img { height: 48px; width: auto; display: block; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav a, .sub-toggle { font-family: var(--mont); font-weight: 500; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 10px 14px; display: inline-block; }
.nav a:hover, .sub-toggle:hover { color: var(--green); }
.nav a[aria-current="page"], .has-sub.is-active > .sub-toggle { color: var(--green); }
.sub-toggle { background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.has-sub { position: relative; }
.nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(0,0,0,.12); padding: 8px 0; flex-direction: column; align-items: stretch; gap: 0; z-index: 5; }
.nav .has-sub.open .sub, .nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: flex; }
.nav .sub a { display: block; width: 100%; text-align: left; padding: 11px 20px; }
.menu-btn { display: none; background: none; border: 0; width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 28px; height: 28px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: inline-flex; }

/* ---------- Botones ---------- */
.pill, .rect-btn { display: inline-block; font-family: var(--mont); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; font-size: .95rem; line-height: 1.2; padding: 14px 32px; border: 2px solid var(--green); transition: background .15s, color .15s; text-align: center; }
.pill { background: var(--green); color: #fff; border-radius: 999px; }
.pill:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.pill-outline { background: transparent; color: var(--green); }
.pill-outline:hover { background: var(--green); color: #fff; }
.rect-btn { background: var(--green); color: #fff; border-radius: 0; padding: 13px 26px; }
.rect-btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.cta-c { justify-content: center; }

/* ---------- Portada ---------- */
.hero, .page-banner, .cta-photo { position: relative; background: var(--bg) center / cover no-repeat; isolation: isolate; }
.hero::before, .page-banner::before, .cta-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,var(--veil, .54)); }
.hero { min-height: 520px; display: flex; align-items: center; }
.hero-inner { padding-top: 70px; padding-bottom: 70px; }
.hero h1 { font-family: var(--mont); font-weight: 700; text-transform: uppercase; letter-spacing: .035em; line-height: 1.18; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--ink); margin-bottom: .5em; max-width: 960px; }
/* Portada de la home: banner bajo; cielo arriba (donde va el texto) y paneles abajo; el velo blanco es más fuerte arriba y se aclara hacia los paneles */
.hero-home { min-height: 380px; align-items: flex-start; background-position: center bottom; }
.hero-home::before { background: linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.5) 45%, rgba(255,255,255,.1) 100%); }
.hero-home .hero-inner { padding-top: 46px; padding-bottom: 80px; }
.hero-home h1 { font-size: clamp(1.25rem, 2.3vw, 1.75rem); font-weight: 600; margin-bottom: .6em; }
.hero-sub { font-size: clamp(.98rem, 1.4vw, 1.1rem); font-weight: 500; color: var(--ink); max-width: 640px; margin-bottom: 6px; }
.green-band { background: var(--green); color: #fff; padding: 54px 0; }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.band-grid h2 { color: #fff; font-family: var(--mont); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; line-height: 1.3; font-size: clamp(1.1rem, 1.9vw, 1.45rem); text-align: center; margin: 0; padding: 12px 40px; border-right: 1px solid rgba(255,255,255,.8); }
.band-grid p { margin: 0; text-align: center; font-family: var(--mont); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; line-height: 1.7; font-size: clamp(.82rem, 1.2vw, .94rem); padding: 12px 40px; }

/* ---------- Páginas internas ---------- */
.page-banner { min-height: 250px; display: flex; align-items: flex-end; }
.page-banner::before { background: rgba(255,255,255,.72); }
.page-banner .container { padding-bottom: 34px; padding-top: 90px; }
.page-banner h1 { font-family: var(--mont); font-weight: 500; font-size: clamp(1.5rem, 2.8vw, 2.05rem); margin: 0; }
.stripe { height: 54px; background: var(--green); }

/* ---------- Secciones ---------- */
.section { padding: 72px 0; }
.section.tight { padding: 44px 0; }
.section.grey { background: var(--grey); }
.cta-photo { padding: 72px 0; }
.cta-photo::before { background: rgba(255,255,255,.77); }
.cta-center { text-align: center; max-width: 820px; margin: 0 auto; }
.cta-center .big { margin-bottom: 1.2em; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.svc { text-align: center; text-decoration: none; color: inherit; display: block; }
.svc::before { content: ""; display: block; width: 60%; height: 2px; background: var(--green); margin: 0 auto 28px; }
.svc-ico-wrap { display: block; width: 190px; height: 190px; margin: 0 auto 26px; background: transparent; transition: background .25s ease; }
.svc-ico { width: 100%; height: 100%; padding: 14px; object-fit: contain; transition: filter .25s ease; }
.svc:hover .svc-ico-wrap, .svc:focus-visible .svc-ico-wrap { background: var(--green); }
.svc:hover .svc-ico, .svc:focus-visible .svc-ico { filter: invert(1); }
.svc h3 { font-family: var(--mont); font-weight: 500; font-size: 1.15rem; line-height: 1.3; margin-bottom: .55em; letter-spacing: .01em; }
.svc p { font-family: var(--mont); font-size: .9rem; line-height: 1.75; color: #4a5155; margin: 0; }
.svc:hover h3 { color: var(--green); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split.ctr { align-items: center; }
.split.rev .split-media { order: -1; }
.split-text .caps { margin-bottom: .8em; }
.txt-center .split-text { text-align: center; }
.txt-center .cta-row { justify-content: center; }
.photo { width: 100%; }
.photo-43 { aspect-ratio: 4 / 3; object-fit: cover; }
.where { margin-top: 22px; font-size: .9rem; color: #555; }

.bullets { list-style: disc; margin: 18px 0 0 1.2em; text-align: left; display: inline-block; }
.bullets li { margin-bottom: 10px; }
.cta-center .bullets, .narrow .bullets { display: block; max-width: 640px; margin-left: auto; margin-right: auto; padding-left: 1.2em; }

.minis { list-style: none; display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 26px; }
.txt-center .minis, .narrow .minis { justify-content: center; }
.minis li { display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--mont); font-weight: 600; text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; }
.mini { width: 64px; height: 64px; object-fit: contain; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; text-align: center; }
.steps .mini { margin: 0 auto 16px; }
.steps h3 { font-family: var(--mont); font-weight: 600; text-transform: uppercase; font-size: .92rem; letter-spacing: .04em; line-height: 1.4; }
.steps p { font-size: .92rem; color: #4a5155; margin: 0; line-height: 1.7; }

.ben-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; text-align: center; }
.ben-ico { width: 150px; height: 150px; margin: 0 auto 20px; object-fit: contain; }
.ben h3 { font-family: var(--mont); font-weight: 600; text-transform: uppercase; font-size: .88rem; letter-spacing: .05em; line-height: 1.4; }
.ben p { font-size: .9rem; color: #3a4145; margin: 0; line-height: 1.7; }

.sys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.sys { background: #fff; border: 1px solid #d8d8d8; padding: 28px 26px 30px; text-align: center; }
.sys-img { width: 100%; max-width: 300px; height: 190px; object-fit: contain; margin: 0 auto 18px; }
.sys h3 { font-family: var(--mont); font-weight: 600; text-transform: uppercase; font-size: .92rem; letter-spacing: .05em; line-height: 1.4; }
.sys p { font-size: .9rem; margin: 0; color: #444b50; line-height: 1.7; }

.greybox { background: var(--soft); padding: 48px 28px; text-align: center; max-width: 760px; margin: 0 auto; }
.greybox .big { margin: 22px 0 0; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tile { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; text-decoration: none; color: #fff; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.42); }
.tile-text { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 1rem; }
.tile-text strong { font-family: var(--mont); text-transform: uppercase; letter-spacing: .04em; font-size: 1.25rem; margin-bottom: 6px; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; text-align: center; }
.why .mini { margin: 0 auto 16px; width: 80px; height: 80px; }
.why h3 { font-family: var(--mont); font-weight: 600; text-transform: uppercase; font-size: .95rem; letter-spacing: .04em; line-height: 1.4; }
.why p { font-size: .95rem; margin: 0; text-align: left; line-height: 1.7; }

.contact-list { list-style: none; display: grid; gap: 10px; margin: 20px 0 6px; text-align: left; }
.notfound { padding: 50px 0; }

/* ---------- Pie ---------- */
.footer { background: var(--green); color: #fff; padding: 54px 0 0; font-size: .95rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.footer-logo { display: inline-block; margin-bottom: 18px; }
.footer-lines { line-height: 1.85; margin: 0; }
.footer-links { list-style: disc; padding-left: 20px; display: grid; gap: 10px; justify-self: end; min-width: 200px; margin-top: 54px; }
.social { list-style: none; display: flex; gap: 8px; margin-top: 18px; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); display: inline-flex; align-items: center; justify-content: center; }
.social a:hover { background: rgba(255,255,255,.18); text-decoration: none; }
.social svg { width: 18px; height: 18px; }
.footer-bottom { text-align: center; margin-top: 46px; padding-top: 22px; padding-bottom: 34px; font-size: .85rem; color: rgba(255,255,255,.75); }
.footer-bottom p { margin: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; left: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.wa-float:hover { color: #fff; filter: brightness(.95); }
.wa-float svg { width: 31px; height: 31px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .svc-grid, .sys-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .ben-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 36px; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .header-inner { min-height: 76px; }
  .logo-img { height: 40px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: 6px 24px 18px; max-height: calc(100vh - 72px); overflow: auto; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a, .sub-toggle { display: flex; width: 100%; padding: 15px 4px; border-bottom: 1px solid var(--line); }
  .sub-toggle { justify-content: space-between; }
  .nav .sub { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: none; }
  .nav .has-sub.open .sub { display: flex; }
  .hero { min-height: 440px; }
  background-position: 58% bottom
  .hero-home::before { background: linear-gradient(180deg, rgba(255,255,255,.8) 0%, rgba(255,255,255,.62) 55%, rgba(255,255,255,.2) 100%); }
  .hero-home .hero-inner { padding-top: 30px; padding-bottom: 56px; }
  .hero-inner { padding-top: 50px; padding-bottom: 50px; }
  .band-grid { grid-template-columns: 1fr; }
  .band-grid h2 { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.8); padding: 6px 10px 26px; }
  .band-grid p { padding: 26px 10px 6px; }
  .split { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .section { padding: 48px 0; }
  .section.tight { padding: 30px 0; }
  .cta-photo { padding: 48px 0; }
  .tiles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; margin-top: 6px; }
}
@media (max-width: 560px) {
  .svc-grid, .sys-grid, .why-grid, .ben-grid, .steps { grid-template-columns: 1fr; }
  .svc-ico-wrap { width: 150px; height: 150px; }
  .cta-row .pill, .cta-row .rect-btn { width: 100%; }
  .page-banner { min-height: 200px; }
  .page-banner .container { padding-top: 60px; padding-bottom: 24px; }
  .wa-float { width: 52px; height: 52px; left: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .rect-btn { transition: none; }
}
@media print {
  .header, .wa-float, .nav { display: none; }
}

/* ---- Encabezado verde (logo y textos en blanco) ---- */
.header { background: var(--green); box-shadow: 0 1px 0 rgba(0,0,0,.12); }
.nav a, .sub-toggle, .menu-btn { color: #fff; }
.nav a:hover, .sub-toggle:hover { color: #fff; opacity: .8; }
.nav > ul > li > a[aria-current="page"], .has-sub.is-active > .sub-toggle { color: #fff; box-shadow: inset 0 -2px 0 #fff; opacity: 1; }
.nav .sub a { color: var(--ink); }
.nav .sub a:hover { color: var(--green); opacity: 1; }
.nav .sub a[aria-current="page"] { color: var(--green); box-shadow: none; }
@media (max-width: 820px) {
  .nav { background: var(--green); border-bottom: 0; }
  .nav a, .sub-toggle { border-bottom-color: rgba(255,255,255,.25); }
  .nav .sub { background: transparent; }
  .nav .sub a, .nav .sub a[aria-current="page"] { color: #fff; }
  .nav .sub a:hover { color: #fff; opacity: .8; }
}
@media (max-width: 820px) { .nav { box-shadow: 0 14px 28px rgba(0,0,0,.28); } }

/* Sección de servicios con fondo suave para separarla de las filas de abajo */
.section.soft { background: #f3f5f4; border-bottom: 1px solid #e4e8e6; }

/* Filas de la home (texto + foto): menos aire entre una y otra y texto centrado junto a la foto */
.section.rows { padding: 16px 0; }
.section.soft + .section.rows { padding-top: 44px; }
.section.rows:has(+ .cta-photo) { padding-bottom: 44px; }
.rows .split { align-items: center; gap: 48px; }
.rows .cta-row { margin-top: 16px; }
@media (max-width: 820px) { .section.rows { padding: 22px 0; } .rows .split { gap: 22px; } }

/* ---------- Reseñas de Google ---------- */
.section.reviews { padding: 64px 0; border-top: 1px solid #e4e8e6; }
.reviews .title-caps { margin-bottom: .5em; }
.rev-sub { text-align: center; margin: 0 0 36px; color: #5a6267; font-size: .95rem; }
.rev-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.rcard { grid-column: span 2; margin: 0; background: #fff; border: 1px solid #e1e6e3; display: flex; flex-direction: column; }
.rev-body { padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.rev-img { width: 100%; height: 210px; object-fit: cover; border-bottom: 1px solid #e1e6e3; }
.rcard:nth-child(4), .rcard:nth-child(5) { grid-column: span 3; }
.rev-head { display: flex; align-items: center; gap: 12px; }
.rev-av { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 1.05rem; }
.rev-name { font-weight: 600; color: var(--ink); font-size: .98rem; line-height: 1.3; }
.rev-stars { display: flex; gap: 2px; margin-top: 3px; }
.rev-stars svg { width: 16px; height: 16px; fill: #f4b400; }
.rcard blockquote { margin: 0; }
.rcard blockquote p { margin: 0; font-size: .94rem; line-height: 1.7; color: #41484d; }
.rev-link { margin-top: auto; padding-top: 4px; font-size: .86rem; font-weight: 600; }
.rev-cta { justify-content: center; margin-top: 34px; }
@media (max-width: 960px) { .rcard, .rcard:nth-child(4), .rcard:nth-child(5) { grid-column: span 3; } .rcard:nth-child(5) { grid-column: 2 / span 4; } }
@media (max-width: 640px) { .rev-grid { grid-template-columns: 1fr; } .rcard, .rcard:nth-child(n) { grid-column: auto; } .section.reviews { padding: 44px 0; } }
