:root {
  --ink: #101411;
  --ink-soft: #1c241f;
  --green: #71dc13;
  --green-dark: #317a0f;
  --yellow: #ffd42a;
  --blue: #00a8ff;
  --paper: #ffffff;
  --mist: #f3f5f1;
  --line: #dfe4dc;
  --muted: #5d675f;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(16, 20, 17, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Manrope", system-ui, sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--yellow); font-weight: 800; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 100; color: #fff; background: rgba(9,11,10,.96); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(16px); }
.header-inner { min-height: 82px; display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 30px; }
.brand img { width: 175px; height: auto; }
.main-nav { display: flex; justify-content: center; gap: 8px; }
.nav-button { display: inline-flex; min-height: 40px; align-items: center; padding: 8px 15px; border: 1px solid transparent; border-radius: 10px; font-size: .86rem; font-weight: 700; transition: .2s ease; }
.nav-button:hover, .nav-button:focus-visible { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); }
.nav-button.active { color: var(--ink); background: var(--green); box-shadow: 0 6px 18px rgba(113,220,19,.2); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 20px; padding: 12px 20px; border: 1px solid transparent; border-radius: 10px; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button-primary { color: #fff; background: linear-gradient(135deg, #47b615, #73db18); box-shadow: 0 10px 25px rgba(71,182,21,.22); }
.button-yellow { color: var(--ink); background: var(--yellow); box-shadow: 0 12px 25px rgba(255,212,42,.18); }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.05); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px 0; background: #fff; }

.hero { position: relative; min-height: 690px; display: grid; align-items: center; overflow: hidden; background: var(--ink); }
.hero-visual { position: absolute; inset: 0 0 0 44%; background: url("assets/diagnostico-termico.jpg") center/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, #101411 0%, #101411 41%, rgba(16,20,17,.78) 58%, rgba(16,20,17,.08) 100%); }
.hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: 31%; top: 12%; border: 1px solid rgba(113,220,19,.45); border-radius: 50%; }
.hero-content { position: relative; z-index: 2; color: #fff; padding: 88px 0 180px; }
.hero-content > * { max-width: 650px; }
.eyebrow { margin: 0 0 14px; color: var(--yellow); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.green { color: var(--green-dark); }
.hero h1 { margin: 0; font-size: clamp(3rem, 6vw, 5.6rem); line-height: .98; letter-spacing: -.065em; }
.hero h1 span { color: var(--green); }
.hero-copy { margin: 28px 0 32px; color: #d7ddd8; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-strip { position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; grid-template-columns: repeat(3,1fr); color: #fff; background: rgba(26,33,28,.93); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.trust-item { position: relative; padding: 25px 26px 25px 70px; border-right: 1px solid rgba(255,255,255,.12); }
.trust-item:last-child { border-right: 0; }
.trust-number { position: absolute; left: 24px; top: 24px; color: var(--green); font-weight: 800; }
.trust-item strong, .trust-item small { display: block; }
.trust-item small { color: #aab4ac; }

.section { padding: 110px 0; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: end; margin-bottom: 44px; }
.section-heading h2, .about-copy h2, .contact h2 { margin: 0; font-size: clamp(2rem, 4.2vw, 3.8rem); line-height: 1.08; letter-spacing: -.05em; }
.section-heading > p { margin: 0 0 8px; color: var(--muted); }
.services { background: var(--mist); }
.service-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.service-card { min-height: 290px; grid-column: span 2; padding: 26px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(16,20,17,.04); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card.featured, .service-card.solar-card { grid-column: span 3; }
.service-card.featured { background: var(--yellow); border-color: var(--yellow); }
.service-card.dark { color: #fff; background: var(--ink); border-color: var(--ink); }
.service-card.solar-card { color: #fff; background: linear-gradient(135deg, #2e780c, #70d916); border-color: transparent; }
.service-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--green-dark); background: rgba(113,220,19,.14); border-radius: 12px; font-size: 1.7rem; }
.dark .service-icon, .solar-card .service-icon { color: var(--green); background: rgba(255,255,255,.1); }
.card-index { margin: -40px 0 34px auto; color: var(--green-dark); font-size: .8rem; font-weight: 800; }
.dark .card-index, .solar-card .card-index { color: #c7ff9a; }
.service-card h3 { margin: 0 0 10px; font-size: 1.25rem; }
.service-card p:not(.card-index) { margin: 0 0 24px; color: var(--muted); font-size: .9rem; }
.service-card.dark p:not(.card-index), .service-card.solar-card p:not(.card-index) { color: #d4ddd6; }
.service-card a { margin-top: auto; font-size: .88rem; font-weight: 800; }

.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: center; }
.about-image-wrap { position: relative; }
.about-image-wrap::before { content: ""; position: absolute; left: -18px; top: -18px; width: 120px; height: 120px; background: var(--yellow); border-radius: 18px; }
.about-image-wrap img { position: relative; width: 100%; height: 590px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.image-label { position: absolute; right: -28px; bottom: 35px; padding: 20px 25px; color: #fff; background: var(--ink); border-radius: 12px; }
.image-label span, .image-label strong { display: block; }
.image-label span { color: var(--green); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.about-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.check-list { padding: 0; margin: 30px 0; list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 700; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; display: grid; place-items: center; color: #fff; background: var(--green-dark); border-radius: 50%; font-size: .75rem; }
.text-link { display: inline-flex; gap: 18px; padding-bottom: 5px; border-bottom: 2px solid var(--green); font-weight: 800; }

.approach { color: #fff; background: var(--ink); }
.section-heading.light > p { color: #adb8b0; }
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgba(255,255,255,.16); }
.process-grid article { padding: 32px 26px; border-right: 1px solid rgba(255,255,255,.16); }
.process-grid article:last-child { border-right: 0; }
.process-grid span { color: var(--green); font-size: .82rem; font-weight: 800; }
.process-grid h3 { margin: 35px 0 12px; }
.process-grid p { margin: 0; color: #adb8b0; font-size: .9rem; }

.solar { position: relative; min-height: 620px; display: grid; align-items: center; color: #fff; overflow: hidden; }
.solar-image { position: absolute; inset: 0; background: url("assets/energia-solar.jpg") center 26%/cover no-repeat; transform: scale(1.02); }
.solar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,20,17,.96), rgba(16,20,17,.72) 45%, rgba(16,20,17,.12)); }
.solar-content { position: relative; z-index: 1; }
.solar-content > * { max-width: 620px; }
.solar h2 { margin: 0; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .96; letter-spacing: -.06em; }
.solar p:not(.eyebrow) { margin: 25px 0 30px; color: #d9e0da; font-size: 1.08rem; }

.clients { position: relative; overflow: hidden; background: #fff; }
.clients::before { content: ""; position: absolute; right: -120px; top: -150px; width: 360px; height: 360px; border: 70px solid rgba(113,220,19,.08); border-radius: 50%; }
.clients-heading { position: relative; }
.clients-grid { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.client-card { min-height: 170px; padding: 32px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(16,20,17,.06); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.client-card:hover, .client-card:focus-visible { transform: translateY(-5px); border-color: rgba(49,122,15,.5); box-shadow: var(--shadow); }
.client-card img { width: 100%; max-width: 210px; max-height: 95px; object-fit: contain; }
.client-card-red { background: #c9212d; border-color: #c9212d; }
.client-card-red img { max-width: 150px; max-height: 110px; }

.contact { background: var(--mist); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.contact-grid > div > p:not(.eyebrow) { color: var(--muted); }
.contact-links { margin-top: 34px; display: grid; gap: 12px; }
.contact-links a { padding: 18px 20px; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s ease, transform .2s ease; }
.contact-links a:hover { transform: translateY(-2px); border-color: var(--green-dark); }
.contact-links span { color: var(--green-dark); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-links strong { overflow-wrap: anywhere; }
.contact-form { padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.website-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-form label { display: grid; gap: 8px; font-size: .83rem; font-weight: 800; }
.contact-form label:nth-child(3), .contact-form label:nth-child(4), .contact-form label:nth-child(5), .contact-form button, .form-status { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; color: var(--ink); background: #fbfcfa; outline: 0; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(113,220,19,.14); }
.form-status { min-height: 24px; margin: 0; color: var(--green-dark); font-size: .88rem; font-weight: 700; }
.form-status.error { color: #ad271d; }

.site-footer { padding: 65px 0 25px; color: #fff; background: #090b0a; }
.footer-inner { display: grid; grid-template-columns: 200px 1fr auto; gap: 60px; align-items: center; }
.footer-inner img { width: 185px; }
.footer-inner p { color: #aab4ac; }
.footer-inner a { color: var(--green); font-weight: 800; }
.footer-bottom { margin-top: 45px; padding-top: 20px; display: flex; justify-content: space-between; gap: 24px; align-items: center; color: #778078; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; }
.developer-credit { position: relative; }
.developer-credit summary { color: #9aa39c; font-weight: 700; cursor: pointer; list-style: none; transition: color .2s ease; }
.developer-credit summary::-webkit-details-marker { display: none; }
.developer-credit summary:hover, .developer-credit summary:focus-visible { color: var(--green); }
.developer-card { position: absolute; right: 0; bottom: calc(100% + 14px); z-index: 4; width: min(290px, calc(100vw - 40px)); padding: 20px; display: grid; gap: 7px; color: #dce4de; background: #151917; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; box-shadow: 0 18px 45px rgba(0,0,0,.4); }
.developer-card strong { color: #fff; }
.developer-card a { color: var(--green); overflow-wrap: anywhere; }
.developer-card button { justify-self: start; margin-top: 8px; padding: 7px 12px; color: #111; background: var(--green); border: 0; border-radius: 7px; font-weight: 800; cursor: pointer; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 165px 1fr auto; }
  .header-cta { display: none; }
  .main-nav { justify-content: end; }
  .hero-visual { inset-left: 35%; }
  .service-card, .service-card.featured, .service-card.solar-card { grid-column: span 3; }
  .about-grid, .contact-grid { gap: 50px; }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .clients-grid { grid-template-columns: repeat(2,1fr); }
  .process-grid article:nth-child(2) { border-right: 0; }
  .process-grid article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.16); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 620px); }
  .header-inner { min-height: 72px; grid-template-columns: 150px 1fr; }
  .brand img { width: 150px; }
  .menu-toggle { display: block; justify-self: end; }
  .main-nav { position: absolute; top: 72px; left: 14px; right: 14px; padding: 14px; display: none; flex-direction: column; background: #101411; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .nav-button { justify-content: center; }
  .hero { min-height: 800px; align-items: start; }
  .hero-visual { inset: 0; opacity: .42; }
  .hero-overlay { background: linear-gradient(180deg, rgba(16,20,17,.62), #101411 67%); }
  .hero::after { display: none; }
  .hero-content { padding: 90px 0 260px; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4.3rem); }
  .hero-copy { font-size: 1rem; }
  .hero-actions .button { width: 100%; }
  .trust-strip { bottom: 20px; grid-template-columns: 1fr; }
  .trust-item { padding: 14px 18px 14px 58px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .trust-number { top: 14px; left: 20px; }
  .section { padding: 78px 0; }
  .section-heading, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 26px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card, .service-card.featured, .service-card.solar-card { grid-column: auto; }
  .about-image-wrap { max-width: 430px; }
  .about-image-wrap img { height: 480px; }
  .image-label { right: -8px; }
  .process-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .process-grid article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .solar { min-height: 650px; }
  .solar h2 { font-size: clamp(2.9rem, 14vw, 4.4rem); }
  .contact-form { padding: 22px; grid-template-columns: 1fr; }
  .contact-form label { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
  .developer-card { right: auto; left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
