/* FIEM — estilos del sitio */
:root { --ease-out: cubic-bezier(0.23,1,0.32,1); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #F5F7F4; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
[id] { scroll-margin-top: 110px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: #34A853; color: #002B40; }
a, button, select, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus { outline: none; }
:focus-visible { outline: 3px solid #004668; outline-offset: 3px; border-radius: 8px; }
.dark :focus-visible { outline-color: #34A853; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.display { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; letter-spacing: -0.035em; line-height: .95; margin: 0; }
.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: #34A853; color: #002B40; font-weight: 600; padding: 12px 18px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Nav */
.nav { position: sticky; top: 12px; height: 0; z-index: 50; padding: 0 12px; }
.nav-in { max-width: 1256px; margin: 0 auto; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; background: rgba(255,255,255,.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid #D6DFE3; border-radius: 24px; padding: 8px 8px 8px 20px; color: #0B2230; box-shadow: 0 4px 24px -12px rgba(0,43,64,.1); }
.brand-img { height: 44px; width: auto; display: block; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.nl { color: #4A5F6B; text-decoration: none; font-size: 15px; font-weight: 600; padding: 10px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; box-sizing: border-box; transition: color 150ms ease, background-color 150ms ease; }
.nl.on { color: #004668; background: #E4EEF2; }
.dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px; background: #FFFFFF; color: #004668; border-radius: 18px; padding: 8px; box-shadow: 0 24px 48px -12px rgba(0,43,64,.15); z-index: 60; visibility: hidden; opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top left; pointer-events: none; transition: opacity 100ms ease-out, transform 100ms ease-out, visibility 0s linear 100ms; }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s; }
.dd-menu a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.35; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; font-family: inherit; font-weight: 600; font-size: 16px; text-decoration: none; border-radius: 999px; padding: 6px 6px 6px 22px; min-height: 52px; box-sizing: border-box; border: 0; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 150ms ease; }
.btn .ic { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; transition: transform 220ms var(--ease-out); }
.btn-sm { min-height: 44px; font-size: 15px; padding: 4px 4px 4px 18px; }
.btn-sm .ic { width: 36px; height: 36px; }
.btn-petrol { background: #004668; color: #FFFFFF; } .btn-petrol .ic { background: #34A853; color: #002B40; }
.btn-green { background: #34A853; color: #002B40; } .btn-green .ic { background: #002B40; color: #34A853; }
.btn-line { background: transparent; color: inherit; border: 1.5px solid currentColor; padding: 0 24px; }
.btn:active { transform: scale(.97); }

/* Cards */
.card { display: block; text-decoration: none; color: inherit; background: #FFFFFF; border: 1px solid #D6DFE3; border-radius: 24px; transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.arrow { display: inline-block; transition: transform 200ms var(--ease-out); }
.flink { color: #A9BCB1; text-decoration: none; display: inline-block; padding: 4px 0; transition: color 150ms ease; }

/* Animations */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.track { display: flex; align-items: center; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.rise { animation: rise 800ms var(--ease-out) both; }
.d1 { animation-delay: 70ms; } .d2 { animation-delay: 140ms; } .d3 { animation-delay: 210ms; } .d4 { animation-delay: 280ms; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.span2 { grid-column: span 2; }
@media (max-width: 640px) { .span2 { grid-column: auto; } }

/* Hovers */
@media (hover: hover) and (pointer: fine) {
  .nl:hover { color: #004668; background: #E4EEF2; }
  .dd-menu a:hover { background: #E4EEF2; }
  .btn:hover .ic { transform: rotate(-45deg); }
  .btn-petrol:hover { background: #0A5C82; }
  .btn-green:hover { background: #7CC46A; }
  .card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -24px rgba(0,43,64,.45); }
  .card:hover .arrow { transform: translateX(4px); }
  .flink:hover { color: #FFFFFF; }
}
@media (hover: none) { .dd-menu { display: none !important; } }
@media (max-width: 760px) { .nav { position: relative; top: 0; height: auto; background: #FFFFFF; padding: 8px; border-bottom: 1px solid #D6DFE3; } .nav-in { border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 4px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .track, .rise { animation: none; } .btn, .card, .dd-menu, .arrow, .btn .ic { transform: none !important; } }

/* Páginas internas */
.crumb a { color: #4A5F6B; text-decoration: none; }
.crumb a:hover { color: #004668; text-decoration: underline; }
.h-title { font-size: clamp(64px, 10vw, 140px); color: #004668; }
.h-title .dot { color: #34A853; }
.sec-h { font-size: clamp(40px, 5.4vw, 72px); color: #004668; }
.outline-num { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 52px; line-height: .9; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px #004668; }
.go { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid #004668; color: #004668; display: inline-flex; align-items: center; justify-content: center; flex: none; transition: transform 220ms var(--ease-out), background-color 150ms ease, color 150ms ease; }
.row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px 32px; align-items: center; text-decoration: none; color: inherit; border-top: 1px solid #D6DFE3; padding: 26px 20px; border-radius: 0; transition: background-color 150ms ease; }
.tl { display: grid; grid-template-columns: 120px 28px minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; text-decoration: none; color: inherit; padding: 24px 20px; border-radius: 24px; transition: background-color 150ms ease; }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; background: #34A853; box-shadow: 0 0 0 6px #E3F3E3; justify-self: center; }
.tile { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 76px; padding: 12px 16px; box-sizing: border-box; border-radius: 18px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: -0.01em; color: #004668; }
.chip { font-family: inherit; font-weight: 600; font-size: 15px; border: 1.5px solid #004668; border-radius: 999px; padding: 10px 20px; min-height: 46px; cursor: pointer; background: transparent; color: #004668; text-decoration: none; display: inline-flex; align-items: center; transition: background-color 150ms ease, color 150ms ease; }
.chip[aria-pressed="true"], .chip.on { background: #004668; color: #FFFFFF; }
.lbl { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; color: #0B2230; }
.opt { font-weight: 400; color: #4A5F6B; }
.field { width: 100%; box-sizing: border-box; min-height: 52px; padding: 12px 16px; border: 1.5px solid #D6DFE3; border-radius: 14px; background: #F5F7F4; color: #0B2230; font: inherit; font-size: 16px; transition: border-color 150ms ease, box-shadow 150ms ease; }
.field:focus { outline: none; border-color: #004668; box-shadow: 0 0 0 4px rgba(0, 70, 104, .15); background: #FFFFFF; }
textarea.field { min-height: 140px; resize: vertical; line-height: 1.5; }
@media (max-width: 720px) { .row { grid-template-columns: minmax(0, 1fr) auto; } .row .dt { grid-column: 1 / -1; } .tl { grid-template-columns: 28px minmax(0, 1fr) auto; } .tl .yr { grid-column: 2 / -1; } .tl-dot { grid-row: 1; } .tl-line { display: none; } }
@media (hover: hover) and (pointer: fine) {
  .row:hover, .tl:hover { background: #E4EEF2; }
  .row:hover .go, .tl:hover .go { background: #004668; color: #FFFFFF; transform: rotate(-45deg); }
  .chip:hover { background: #E4EEF2; }
  .chip[aria-pressed="true"]:hover, .chip.on:hover { background: #0A5C82; }
}
@media (prefers-reduced-motion: reduce) { .go { transform: none !important; } }
.err { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: #B42318; }
.field[aria-invalid="true"] { border-color: #B42318; background: #FFFFFF; }
.alert { padding: 14px 16px; border-radius: 14px; background: #FDECEA; color: #8A1C12; font-weight: 600; font-size: 15px; }
.btn:disabled { opacity: .7; cursor: wait; }
.appear { animation: rise 500ms var(--ease-out) both; }

/* Pulido visual */
body { text-rendering: optimizeLegibility; font-optical-sizing: auto; }
.hero { overflow: hidden; }
.hero > .wrap { position: relative; }
.brand-img { height: 64px; }
.nav-in { padding: 6px 8px 6px 18px; }
/* Fondo eólico: aspas que giran y ráfagas que cruzan (solo transform y opacity) */
.wind { position: absolute; right: 0; bottom: 0; width: min(780px, 62%); height: auto; pointer-events: none; }
.wt-spin { transform-origin: 0 0; animation: wt-spin 16s linear infinite; }
.wt-spin.s2 { animation-duration: 11s; }
.wt-spin.s3 { animation-duration: 8s; }
@keyframes wt-spin { to { transform: rotate(360deg); } }
.gusts { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.gust { position: absolute; left: 0; opacity: 0; animation: gust 10s linear infinite; }
.gust svg { display: block; }
@keyframes gust { 0% { transform: translateX(-320px); opacity: 0; } 12% { opacity: .28; } 80% { opacity: .28; } 100% { transform: translateX(100vw); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wt-spin { animation: none; } .gusts { display: none; } }
.card { box-shadow: 0 1px 2px rgba(0,43,64,.04), 0 10px 28px -18px rgba(0,43,64,.18); }
.card[style*="overflow: hidden"] img { transition: transform 700ms var(--ease-out); }
.nav-in { box-shadow: 0 1px 2px rgba(0,43,64,.05), 0 12px 32px -16px rgba(0,43,64,.18); }
.tile { border: 1px solid rgba(0,70,104,.08); transition: transform 200ms var(--ease-out), background-color 150ms ease, color 150ms ease; }
.field { box-shadow: inset 0 1px 2px rgba(0,43,64,.04); }
@media (hover: hover) and (pointer: fine) {
  .card[style*="overflow: hidden"]:hover img { transform: scale(1.045); }
  .card:hover { box-shadow: 0 2px 4px rgba(0,43,64,.05), 0 28px 48px -24px rgba(0,43,64,.42); }
  .tile:hover { transform: translateY(-2px); background: #004668 !important; color: #FFFFFF; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(24px) scale(.985); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    section .card, section .tile, section .tl, section .row { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  }
}
@media (prefers-reduced-motion: reduce) { .card img, .tile { transition: none; transform: none !important; } }
/* Banner con logo centrado */
.banner { background: #FFFFFF; border-bottom: 1px solid #D6DFE3; padding: 26px 24px; display: flex; justify-content: center; }
.banner a { display: block; border-radius: 12px; }
.banner img { height: 136px; width: auto; display: block; }
.nav-in { justify-content: center; padding: 8px; }
.links { justify-content: center; }
@media (max-width: 760px) { .banner { padding: 18px 16px; } .banner img { height: 96px; } }
/* Escenas del encabezado: molinos, solar, biocombustibles, reciclado (se funden cada 7 s) */
.scenes { position: absolute; right: 0; bottom: 0; width: min(780px, 62%); aspect-ratio: 780 / 440; pointer-events: none; }
.scenes svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene { opacity: 0; animation: scene 28s linear infinite; }
.scene.sc2 { animation-delay: 7s; }
.scene.sc3 { animation-delay: 14s; }
.scene.sc4 { animation-delay: 21s; }
@keyframes scene { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 100% { opacity: 0; } }
.sun-rays { transform-origin: 0 0; animation: wt-spin 40s linear infinite; }
.recycle { transform-origin: 0 0; animation: wt-spin 26s linear infinite; }
.recycle.r2 { animation-duration: 18s; }
.drop { animation: bob 3.2s ease-in-out infinite alternate; }
.drop.d2 { animation-duration: 2.4s; }
@keyframes bob { to { transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .scene { animation: none; } .scene.sc1 { opacity: 1; } .sun-rays, .recycle, .drop { animation: none; } }
/* Carrusel de sponsors con logos */
.logo-chip { flex: none; height: 92px; padding: 12px 20px; margin-right: 16px; box-sizing: border-box; background: #FFFFFF; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; }
.logo-chip img { height: 68px; width: auto; max-width: 210px; object-fit: contain; display: block; }
.logo-tile { background: #FFFFFF !important; min-height: 108px; padding: 14px 18px; }
.logo-tile img { max-height: 72px; max-width: 100%; width: auto; object-fit: contain; display: block; }
@media (hover: hover) and (pointer: fine) { .logo-tile:hover { background: #FFFFFF !important; box-shadow: 0 16px 32px -20px rgba(0,43,64,.4); } }
