:root {
  /* Colores muestreados del logotipo corporativo original. */
  --teal: #0f5d78;
  --teal-dark: #0a4357;
  --orange: #ea7f43;
  --orange-dark: #c55e27;
  --ink: #173c4a;
  --dark: #082f3d;
  --muted: #5b7078;
  --mist: #eef5f7;
  --sand: #fff5ef;
  --line: #d4e2e7;
  --white: #fff;
  --shadow: 0 22px 60px rgba(15, 93, 120, .14);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 98px; }
body { margin: 0; font: 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--white); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.8rem, 5.7vw, 5.6rem); line-height: 1.03; letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.45rem); line-height: 1.12; letter-spacing: -.04em; }
h3 { line-height: 1.25; }
small, .muted { color: var(--muted); }
.container { width: min(1180px, 92%); margin-inline: auto; }

.skip { position: absolute; top: -70px; left: 10px; z-index: 50; padding: 10px 14px; background: white; border-radius: 8px; }
.skip:focus { top: 10px; }
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(15,93,120,.16); backdrop-filter: blur(16px); }
.nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo { width: clamp(190px, 20vw, 250px); height: auto; }
.brand-logo.compact { width: 220px; }
.links { display: flex; gap: 24px; align-items: center; font-size: .91rem; font-weight: 700; }
.links a:not(.btn) { border-bottom: 2px solid transparent; }
.links a:not(.btn):hover { color: var(--teal); border-color: var(--orange); }
.menu-toggle { display: none; border: 1px solid var(--line); padding: 10px 13px; background: white; border-radius: 9px; color: var(--ink); font: inherit; font-weight: 750; }

.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--orange); border-radius: 9px; padding: 13px 22px; background: var(--orange); color: white; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(234,127,67,.2); transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { color: white; background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(234,127,67,.27); }
.btn.alt { color: var(--teal); background: white; border-color: rgba(17,114,131,.35); box-shadow: none; }
.btn.alt:hover { color: var(--teal-dark); border-color: var(--teal); }
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }

.hero { position: relative; overflow: hidden; padding: 78px 0 88px; background: linear-gradient(120deg, #f7fbfc 0%, #edf5f7 60%, #fff4ee 100%); }
.hero::before { content: ""; position: absolute; width: 390px; height: 390px; top: -210px; left: -120px; border: 62px solid rgba(15,93,120,.07); border-radius: 50%; }
.hero-grid { position: relative; display: grid; grid-template-columns: .88fr 1.12fr; gap: 54px; align-items: center; }
.hero h1 strong { color: var(--teal); font-weight: inherit; }
.hero p { max-width: 620px; color: #506a73; font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow { color: var(--orange-dark); text-transform: uppercase; letter-spacing: .15em; font-size: .75rem; font-weight: 850; margin-bottom: 12px; }
.hero-media, .framed-media { position: relative; }
.hero-media img, .framed-media img { width: 100%; object-fit: cover; border: 9px solid white; border-radius: 22px; box-shadow: var(--shadow); }
.hero-media img { height: 515px; }
.framed-media img { min-height: 430px; max-height: 530px; }
.media-label { position: absolute; left: -22px; bottom: 24px; max-width: 280px; padding: 16px 20px; background: white; border-left: 5px solid var(--orange); border-radius: 9px; box-shadow: 0 14px 35px rgba(11,64,74,.18); font-weight: 800; }
.media-label small { display: block; font-weight: 600; }

.section { padding: 92px 0; }
.section.light { background: var(--mist); }
.section.sand { background: var(--sand); }
.section.dark { color: white; background: var(--dark); }
.section.dark .eyebrow { color: #ffad54; }
.section.dark p { color: #d2e5e7; }
.intro { max-width: 760px; color: var(--muted); font-size: 1.04rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 25px rgba(8,63,73,.07); transition: transform .22s, box-shadow .22s, border-color .22s; }
.card:hover { transform: translateY(-5px); border-color: rgba(234,127,67,.45); box-shadow: 0 17px 35px rgba(8,63,73,.12); }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.number { color: var(--teal); font-size: 2rem; font-weight: 900; margin-bottom: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; align-items: center; gap: 16px; max-width: 650px; margin-inline: auto; padding: 18px; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; color: white; text-align: center; border: 1px solid rgba(255,255,255,.28); border-radius: 40px; background: rgba(255,255,255,.08); box-shadow: 0 0 0 rgba(0,0,0,0); transition: transform .24s ease, background .24s ease, border-color .24s ease, box-shadow .24s ease; }
.pill:hover { color: white; background: rgba(255,255,255,.14); border-color: rgba(240,120,0,.8); box-shadow: 0 12px 25px rgba(0,0,0,.18); transform: translateY(-5px) scale(1.025); }

.renewable-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 62px; align-items: center; }
.process-list { display: grid; gap: 17px; margin: 30px 0; }
.process-item { display: grid; grid-template-columns: 50px 1fr; gap: 16px; align-items: start; }
.process-item b { display: grid; place-items: center; width: 46px; height: 46px; color: white; background: var(--teal); border-radius: 50%; }
.process-item h3 { margin-bottom: 5px; }
.process-item p { margin: 0; color: var(--muted); }
.brand-strip { position: relative; overflow: hidden; padding: 34px; border: 1px solid rgba(15,93,120,.22); border-top: 5px solid var(--orange); border-radius: 20px; background: linear-gradient(110deg, white, #eff6f8); }
.brand-strip img { width: min(250px, 82%); margin-bottom: 22px; }
.brand-slogan { max-width: 520px; margin-bottom: 0; color: var(--teal-dark); font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 800; letter-spacing: -.015em; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 8px 25px rgba(8,63,73,.07); }
.blog-thumb { display: block; overflow: hidden; aspect-ratio: 16 / 7; background: var(--mist); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.025); }
.blog-content { padding: 25px; }
.blog-card h3 { font-size: 1.16rem; }
.blog-card p { color: var(--muted); font-size: .93rem; }
.blog-card a { color: var(--teal); font-weight: 800; }
.section-action { margin: 28px 0 0; }
.article-list { display: grid; gap: 26px; }
.article-list-card { display: grid; grid-template-columns: minmax(240px, .8fr) 1.2fr; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 9px 30px rgba(8,63,73,.08); }
.article-list-card img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.article-list-content { padding: 32px; }
.article-list-content h2 { font-size: clamp(1.55rem, 2.7vw, 2.35rem); }
.article-list-content p { color: var(--muted); }
.article-shell { width: min(860px, 92%); margin-inline: auto; }
.article-header { padding: 64px 0 38px; }
.article-header h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
.article-hero { width: 100%; max-height: 520px; object-fit: cover; border: 9px solid white; border-radius: 22px; box-shadow: var(--shadow); }
.article-body { padding: 54px 0 92px; color: #294d59; font-size: 1.04rem; }
.article-body > p:first-child { color: var(--ink); font-size: 1.18rem; }
.article-body h2 { margin-top: 46px; font-size: clamp(1.55rem, 3vw, 2.25rem); }
.article-body h3 { margin-top: 34px; font-size: 1.3rem; }
.article-body li { margin-bottom: 10px; }
.article-body a { color: var(--teal); font-weight: 750; text-decoration: underline; }
.article-back { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-size: .86rem; font-weight: 750; }
.form input, .form textarea, .form select { width: 100%; margin-top: 7px; padding: 13px; color: var(--ink); background: white; border: 1px solid #c9dcdf; border-radius: 8px; font: inherit; }
.form input:focus, .form textarea:focus { outline: 3px solid rgba(15,93,120,.16); border-color: var(--teal); }
.full { grid-column: 1 / -1; }
.privacy-check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; line-height: 1.55; }
.privacy-check input { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; }
.privacy-check span { min-width: 0; }
.privacy-check a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.map { width: 100%; min-height: 300px; border: 0; border-radius: 14px; }
.notice { padding: 14px; margin-bottom: 18px; border: 1px solid #b1dace; border-radius: 9px; background: #e5f7f3; }
.notice.error { border-color: #efcccc; background: #fff0f0; }
.legal { color: var(--muted); font-size: .85rem; }
.turnstile-slot { min-height: 66px; }
.office-card { position: relative; overflow: hidden; padding: 34px; border: 1px solid rgba(15,93,120,.2); border-top: 5px solid var(--orange); border-radius: 20px; background: linear-gradient(145deg, #fff 0%, #f3f8f9 72%, #fff4ed 100%); box-shadow: 0 18px 48px rgba(8,63,73,.12); }
.office-card::after { content: ""; position: absolute; z-index: 0; top: -88px; right: -82px; width: 190px; height: 190px; border: 34px solid rgba(15,93,120,.055); border-radius: 50%; pointer-events: none; }
.office-card > * { position: relative; z-index: 1; }
.office-card h3 { margin-bottom: 22px; font-size: clamp(1.7rem, 3vw, 2.25rem); }
.office-address { display: grid; gap: 3px; padding: 20px 0; font-style: normal; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.office-address strong { margin-bottom: 4px; color: var(--teal-dark); letter-spacing: .02em; }
.office-phone { display: inline-flex; margin: 20px 0 18px; color: var(--teal); font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.office-hours { display: flex; justify-content: space-between; gap: 18px; padding: 13px 15px; border: 1px solid rgba(15,93,120,.14); border-radius: 10px; background: rgba(255,255,255,.78); }
.office-hours strong { color: var(--orange-dark); }
.office-note { margin: 20px 0 0; color: var(--muted); }
.office-card .map-consent { margin-top: 24px; background: white; }
.office-legal { margin: 14px 0 0; }

.project-card { overflow: hidden; padding: 0; }
.project-card img, .project-card video { width: 100%; height: 240px; object-fit: cover; }
.project-content { padding: 25px; }
.empty { padding: 30px; border: 1px dashed #9ec3c8; border-radius: 15px; background: white; }
.footer { padding: 58px 0 30px; color: #dcebee; background: var(--dark); }
.footer a { color: #bce8eb; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 38px; }
.footer-logo-wrap { display: inline-block; margin-bottom: 18px; padding: 10px 14px; background: white; border-radius: 12px; }
.footer-logo { width: 250px; }
.footer-link { padding: 0; color: #bce8eb; background: none; border: 0; font: inherit; cursor: pointer; }
.footer-link:hover { color: var(--orange); }
.footer-legal-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.footer-grid .footer-legal-actions { align-items: stretch; flex-direction: column; }
.footer-legal-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 14px; color: white !important; border: 1px solid rgba(255,255,255,.42); border-radius: 9px; background: rgba(255,255,255,.08); font-weight: 800; text-align: center; text-decoration: none; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.footer-legal-button:hover, .footer-legal-button[aria-current="page"] { border-color: var(--orange); background: rgba(241,122,32,.18); transform: translateY(-1px); }
.footer-legal-button.secondary { color: #bce8eb !important; }
.footer-divider { margin: 18px 0; border: 0; border-top: 1px solid rgba(255,255,255,.15); }

.map-consent { display: grid; min-height: 300px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--mist); }
.map-placeholder { display: grid; place-content: center; justify-items: start; padding: 32px; }
.map-placeholder p { max-width: 470px; color: var(--muted); }
.cookie-banner { position: fixed; z-index: 80; right: 22px; bottom: 22px; left: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; max-width: 1180px; margin-inline: auto; padding: 24px; border: 1px solid #aacfd3; border-radius: 16px; background: white; box-shadow: 0 24px 70px rgba(6,45,55,.24); }
.cookie-banner h2 { margin-bottom: 5px; font-size: 1.35rem; letter-spacing: -.02em; }
.cookie-banner p { margin-bottom: 4px; color: var(--muted); }
.cookie-banner a { color: var(--teal); font-weight: 800; text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie-choice { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; color: white; border: 1px solid var(--teal); border-radius: 9px; background: var(--teal); font: inherit; font-weight: 800; cursor: pointer; }
.cookie-choice:hover { background: var(--teal-dark); }
.consent-modal { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(3,27,33,.72); }
.consent-dialog { position: relative; width: min(650px, 100%); max-height: 90vh; overflow: auto; padding: 32px; border-radius: 18px; background: white; box-shadow: 0 24px 80px rgba(0,0,0,.3); }
.consent-dialog h2 { padding-right: 44px; font-size: 1.8rem; }
.consent-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 1.6rem; cursor: pointer; }
.consent-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin: 16px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.consent-row p, .consent-row small { display: block; margin: 5px 0 0; color: var(--muted); }
.consent-row input { width: 24px; height: 24px; accent-color: var(--teal); }
.legal-page .container { max-width: 900px; }
.legal-page h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.legal-page h2 { margin-top: 42px; font-size: clamp(1.45rem, 3vw, 2rem); }
.legal-page h3 { margin: 28px 0 10px; font-size: 1.2rem; }
.legal-page a { color: var(--teal); font-weight: 750; text-decoration: underline; }
.legal-summary { margin: 28px 0 34px; padding: 20px 22px; border-left: 5px solid var(--orange); border-radius: 0 12px 12px 0; background: var(--mist); }
.legal-intro { max-width: 780px; font-size: 1.08rem; color: var(--muted); }
.legal-toc { margin: 34px 0 46px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--mist); }
.legal-toc strong { display: block; margin-bottom: 12px; color: var(--teal-dark); font-size: 1.1rem; }
.legal-toc ol { columns: 2; gap: 36px; margin: 0; padding-left: 22px; }
.legal-toc li { break-inside: avoid; margin: 7px 0; }
.legal-section { scroll-margin-top: 110px; }
.legal-section p { line-height: 1.75; }
.legal-list { padding-left: 24px; }
.legal-list li { margin: 10px 0; line-height: 1.65; }
.legal-data { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.legal-data div { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.legal-data div:last-child { border-bottom: 0; }
.legal-data dt { font-weight: 800; }
.legal-data dd { margin: 0; }
.legal-pending { color: #9b3b2c; font-weight: 800; }
.legal-updated { margin-top: 45px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table th, .legal-table td { padding: 14px; text-align: left; vertical-align: top; border: 1px solid var(--line); }
.legal-table th { background: var(--mist); }
.legal-footer { padding: 30px 0; }
.admin-shell { max-width: 850px; }
.installer-shell { max-width: 720px; }
.installer-logo { margin-bottom: 35px; }
.admin-title { font-size: 2.8rem; }
.admin-actions { text-align: right; }
.admin-list-heading { margin-top: 45px; }
.admin-card { margin-bottom: 12px; }

@media (max-width: 930px) {
  .menu-toggle { display: block; }
  .links { display: none; position: absolute; top: 87px; left: 0; right: 0; flex-direction: column; padding: 23px; background: white; box-shadow: 0 14px 24px rgba(0,0,0,.13); }
  .links.open { display: flex; }
  .hero-grid, .split, .contact-grid, .renewable-grid, .article-list-card { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 70px; }
  .hero-media img { height: 430px; }
  .media-label { left: 14px; }
  .cards, .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .nav { min-height: 78px; }
  .brand-logo, .brand-logo.compact { width: 200px; }
  .links { top: 77px; }
  .section { padding: 66px 0; }
  .hero-media img, .framed-media img { height: 320px; min-height: 0; }
  .cards, .blog-grid, .footer-grid, .form { grid-template-columns: 1fr; }
  .article-list-card img { min-height: 220px; }
  .full { grid-column: auto; }
  .brand-strip { padding: 24px; }
  .cookie-banner { right: 10px; bottom: 10px; left: 10px; grid-template-columns: 1fr; gap: 16px; max-height: calc(100vh - 20px); overflow: auto; padding: 18px; }
  .cookie-actions { align-items: stretch; flex-direction: column; }
  .cookie-actions > * { width: 100%; }
  .consent-dialog { padding: 24px 18px; }
  .consent-row { align-items: flex-start; }
  .legal-data div { grid-template-columns: 1fr; gap: 4px; }
  .legal-toc ol { columns: 1; }
  .office-card { padding: 24px; }
  .office-hours { align-items: flex-start; flex-direction: column; gap: 2px; }
}

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