:root {
  --bg: #0A0A0F;
  --text: #ffffff;
  --paper: #ffffff;
  --ink: #111218;
  --amber: #FFB300;
  --electric: #00E5FF;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-edge: rgba(255, 255, 255, 0.24);
  --max: 1180px;
  --radius: 18px;
  --header-h: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Satoshi", "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

main section[id] {
  scroll-margin-top: calc(var(--header-h) + 14px);
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -20% auto;
  height: 78vh;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 179, 0, 0.3), transparent 42%),
    radial-gradient(circle at 75% 18%, rgba(0, 229, 255, 0.25), transparent 38%),
    linear-gradient(110deg, #12131d, #09090d 56%, #0d1017);
  filter: saturate(1.1);
  animation: mesh 12s ease-in-out infinite alternate;
}

@keyframes mesh {
  from {
    transform: translate3d(0, -2%, 0) scale(1);
  }
  to {
    transform: translate3d(0, 2%, 0) scale(1.05);
  }
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.06;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.5px),
    radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.5px),
    radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1.5px);
  background-size: 140px 140px;
}

.shell {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-block: 0.55rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(16, 20, 30, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  display: block;
  width: min(330px, 44vw);
  max-height: 84px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-links a {
  text-decoration: none;
  color: #10141e;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.5rem 0.62rem;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #08363d;
  background: rgba(0, 229, 255, 0.14);
}

.nav-links a.is-active {
  color: #08758a;
  background: transparent;
}

.nav-links .cta-mini {
  border: 1px solid rgba(8, 54, 61, 0.22);
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.14), rgba(0, 229, 255, 0.14));
}

.nav-links .cta-mini.is-active {
  border-color: rgba(255, 179, 0, 0.65);
}

.financing-cta {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  cursor: pointer;
  padding: 0.5rem 0.62rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 179, 0, 0.72);
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.22), rgba(0, 229, 255, 0.18));
  color: #08363d;
}

.financing-cta:hover,
.financing-cta:focus-visible,
.financing-cta.is-open {
  border-color: rgba(255, 179, 0, 0.95);
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.34), rgba(0, 229, 255, 0.24));
  color: #062a30;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(16, 20, 30, 0.3);
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  background: #111218;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav-toggle span:first-child {
  margin-top: -5px;
}

.nav-toggle span:last-child {
  margin-top: 5px;
}

.nav-toggle:hover {
  border-color: rgba(0, 229, 255, 0.42);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(0, 229, 255, 0.65);
  outline-offset: 2px;
}

.nav-scrim {
  display: none;
}

/* ── Language switch (EN/ES) ───────────────────────────────────── */
.lang-switch {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  margin-left: 0.35rem;
  flex-shrink: 0;
}

.lang-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(16, 20, 30, 0.22);
  background: rgba(255, 255, 255, 0.7);
  color: #10141e;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.12);
}

.lang-btn[aria-pressed="true"] {
  border-color: rgba(255, 179, 0, 0.95);
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.22), rgba(0, 229, 255, 0.14));
}

@media (max-width: 760px) {
  .lang-switch {
    position: absolute;
    right: 0.95rem;
    top: 0.95rem;
  }
}


.page-hero {
  min-height: 48vh;
  display: grid;
  align-content: end;
  gap: 1rem;
  padding-block: 3.2rem 2.2rem;
}

.page-main {
  display: grid;
  gap: 2.4rem;
}

.feature-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  border: 1px solid rgba(17, 18, 24, 0.14);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

main {
  display: grid;
  gap: 4.5rem;
  padding-block: 2rem 1rem;
}

/* Video Fondo */
.video-fondo {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-h));
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 78vh;
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  margin: 0 0 1rem;
  color: color-mix(in srgb, var(--electric), #fff 40%);
}

.eyebrow.dark {
  color: #4c6173;
}

h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2rem, 5.8vw, 4.4rem);
  line-height: 1.02;
  max-width: 11ch;
  letter-spacing: -0.03em;
}

.subhead {
  margin-top: 1.1rem;
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.88);
}

.hero-cta {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffbf2f, #ffb300);
  color: #111218;
  box-shadow: 0 7px 24px rgba(255, 179, 0, 0.35);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: -2px auto -2px -32%;
  width: 28%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 0.6) 45%, rgba(255, 255, 255, 0) 80%);
  transform: skewX(-18deg);
  animation: ctaSweep 4.8s ease-in-out infinite;
}

@keyframes ctaSweep {
  0%,
  70% {
    left: -35%;
  }
  100% {
    left: 140%;
  }
}

.btn-secondary {
  color: #f4f4f6;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  position: relative;
  min-height: 410px;
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  isolation: isolate;
  animation: panelDrift 7s ease-in-out infinite alternate;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

/* Solar panels background pattern */
.solar-panels-bg {
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(
      0deg,
      rgba(10, 45, 70, 0.4) 0px,
      rgba(10, 45, 70, 0.4) 1px,
      transparent 1px,
      transparent 58px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(10, 45, 70, 0.4) 0px,
      rgba(10, 45, 70, 0.4) 1px,
      transparent 1px,
      transparent 58px
    ),
    linear-gradient(
      135deg,
      rgba(0, 150, 200, 0.15) 0%,
      rgba(0, 100, 150, 0.1) 50%,
      rgba(0, 50, 100, 0.15) 100%
    );
  background-size: 59px 59px, 59px 59px, 100% 100%;
  background-position: 0 0, 0 0, 0 0;
  border-radius: calc(var(--radius) + 10px);
  opacity: 0.6;
  z-index: 0;
  animation: panelShimmer 4s ease-in-out infinite alternate;
}

@keyframes panelShimmer {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 0.75;
  }
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-panel.is-live .hero-ring,
.hero-panel.is-live .hero-grid,
.hero-panel.is-live .hero-scan,
.hero-panel.is-live .hero-stat {
  transition: transform 0.2s ease-out;
}

@keyframes panelDrift {
  from {
    transform: translateY(0px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  to {
    transform: translateY(-6px);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
  }
}

.hero-ring {
  position: absolute;
  inset: 10% 18% auto;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.04), 0 0 0 44px rgba(0, 229, 255, 0.06);
  transform: rotate(18deg);
  transform-origin: 50% 50%;
  animation: ringOrbit 9s cubic-bezier(0.4, 0.02, 0.2, 1) infinite;
}

.hero-ring::before,
.hero-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.hero-ring::before {
  border: 1px solid rgba(0, 229, 255, 0.42);
  filter: blur(0.8px);
  animation: ringPulse 3.2s ease-in-out infinite;
}

.hero-ring::after {
  inset: -16px;
  border: 1px solid rgba(255, 179, 0, 0.26);
  opacity: 0.6;
  animation: ringPulse 3.2s ease-in-out infinite reverse;
}

@keyframes ringOrbit {
  0% {
    transform: rotate(18deg) scale(1);
    filter: saturate(1);
  }
  50% {
    transform: rotate(30deg) scale(1.03);
    filter: saturate(1.2);
  }
  100% {
    transform: rotate(18deg) scale(1);
    filter: saturate(1);
  }
}

@keyframes ringPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.45;
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.16);
  }
  50% {
    transform: scale(1.04);
    opacity: 0.9;
    box-shadow: 0 0 26px rgba(0, 229, 255, 0.44);
  }
}

.hero-grid {
  position: absolute;
  inset: auto -8% -18% auto;
  width: 75%;
  aspect-ratio: 1;
  background-image: linear-gradient(rgba(0, 229, 255, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 255, 0.22) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 80%);
  animation: gridSlide 8s linear infinite, gridPulse 3.2s ease-in-out infinite;
}

.hero-scan {
  position: absolute;
  inset: 10% 18% auto;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: conic-gradient(from 0deg, rgba(0, 229, 255, 0) 0deg, rgba(0, 229, 255, 0.18) 28deg, rgba(255, 179, 0, 0.18) 44deg, rgba(0, 229, 255, 0) 62deg, rgba(0, 229, 255, 0) 360deg);
  mix-blend-mode: screen;
  filter: blur(0.6px);
  animation: radialSweep 7.5s linear infinite;
}

.hero-scan::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: #0a0a0f;
}

@keyframes gridSlide {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-20px, -16px, 0);
  }
}

@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.68;
    filter: drop-shadow(0 0 0 rgba(0, 229, 255, 0));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.38));
  }
}

@keyframes radialSweep {
  from {
    transform: rotate(0deg);
    opacity: 0.42;
  }
  50% {
    opacity: 0.75;
  }
  to {
    transform: rotate(360deg);
    opacity: 0.42;
  }
}

.glass {
  backdrop-filter: blur(10px);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
}

.hero-stat {
  position: absolute;
  right: 6%;
  bottom: 8%;
  border-radius: 14px;
  padding: 1rem;
  width: min(440px, 52%);
  animation: statFloat 4.5s ease-in-out infinite;
}

@keyframes statFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero-stat span {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--amber);
}

.hero-stat p {
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
  color: white;
}

.hero-stat-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-stat-link:hover,
.hero-stat-link:focus-visible {
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.38);
}

.hero-stat-image {
  width: 56%;
  height: auto;
  max-height: 152px;
  object-fit: contain;
  background: transparent;
  display: block;
  margin: 0 auto;
}

.section-light {
  background: var(--paper);
  color: var(--ink);
  border-radius: 26px;
  padding: clamp(1.4rem, 4vw, 3rem);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.section-heading {
  margin-bottom: 1.6rem;
}

h2 {
  font-size: clamp(1.52rem, 3.3vw, 2.6rem);
  line-height: 1.08;
  max-width: 20ch;
  letter-spacing: -0.022em;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.service-card {
  flex: 0 1 calc(33.333% - 0.67rem);
  min-width: 200px;
  position: relative;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  padding: 1.1rem;
  border: 1px solid rgba(17, 18, 24, 0.14);
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff, #f8fbff);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -42% auto;
  width: 150px;
  height: 150px;
  border-radius: 24px;
  rotate: 45deg;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(255, 179, 0, 0.13));
}

.service-card:hover {
  transform: perspective(900px) translateY(-5px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
}

.icon {
  width: 44px;
  aspect-ratio: 1;
  border-radius: 12px;
  display: grid;
  place-content: center;
  background: #f2faff;
  margin-bottom: 0.9rem;
}

.icon svg {
  width: 22px;
  stroke: #0d5f6b;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin-bottom: 0.4rem;
}

.service-card p {
  color: #37414d;
  font-size: 0.95rem;
}

.process {
  padding-block: 0.4rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 3%;
  right: 3%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.44), transparent);
}

.step {
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.15));
  opacity: 0;
  transform: translateY(18px);
  transition: 0.45s ease;
}

.step.active {
  opacity: 1;
  transform: translateY(0);
}

.node {
  width: 44px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: rgba(0, 229, 255, 0.16);
  border: 1px solid rgba(0, 229, 255, 0.5);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step p {
  color: rgba(255, 255, 255, 0.78);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.metrics article {
  border-radius: 14px;
  border: 1px solid rgba(17, 18, 24, 0.16);
  padding: 1rem;
  background: linear-gradient(180deg, #fefefe, #f5f8ff);
}

.metrics span {
  display: block;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 900;
  color: #0f2738;
  margin-bottom: 0.35rem;
}

.metrics p {
  color: #3f4957;
  font-size: 0.94rem;
}

.flagship-project {
  margin-bottom: 1.3rem;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  border: none;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.12), rgba(5, 8, 12, 0.4)),
    radial-gradient(circle at 85% 12%, rgba(0, 229, 255, 0.22), transparent 36%);
}

.flagship-head {
  margin-bottom: 0.8rem;
}

.flagship-head h3 {
  font-size: clamp(1.2rem, 2.7vw, 1.8rem);
  letter-spacing: 0.01em;
}

.flagship-desc {
  margin-top: 0.45rem;
  max-width: 74ch;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}

.flagship-gallery {
  display: grid;
  grid-template-columns: 1.28fr 1fr;
  gap: 0.85rem;
}

.flagship-photo {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  border: none;
  min-height: 160px;
}

.flagship-photo--main {
  grid-row: auto;
  min-height: 280px;
}

.flagship-photo:not(.flagship-photo--main) {
  aspect-ratio: 4 / 5;
}

.flagship-img--02 {
  transform: rotate(0deg);
}

.flagship-photo .flagship-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transition: transform 0.6s ease;
}

.flagship-photo:hover .flagship-img {
  transform: scale(1.08) !important;
}

.flagship-img--01 {
  transform-origin: center;
}

.flagship-img--02 {
  transform-origin: center;
}

.skandia-project {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.1), rgba(5, 8, 12, 0.38));
}

.skandia-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.skandia-photo {
  min-height: 320px;
}

.skandia-video-wrap {
  border-radius: 14px;
  overflow: hidden;
  min-height: 320px;
  background: #000;
  display: flex;
  align-items: stretch;
}

.skandia-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flagship-img--skandia {
  transform: scale(1.05);
  transform-origin: center;
  transition: transform 0.6s ease;
}

.skandia-photo:hover .flagship-img--skandia {
  transform: scale(1.12);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.project {
  min-height: 180px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.35)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 6px, transparent 6px 13px);
}

.project::before {
  content: "";
  position: absolute;
  inset: -35% 45% auto auto;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(0, 229, 255, 0.34);
  border-radius: 46px;
  rotate: 35deg;
}

.project:nth-child(1),
.project:nth-child(4) {
  grid-column: span 7;
}

.project:nth-child(2),
.project:nth-child(3) {
  grid-column: span 5;
}

.project p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.93rem;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.contact {
  position: relative;
}

.contact-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(17, 18, 24, 0.18);
  background: #ffffff;
  color: #111218;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.contact-close-btn:hover,
.contact-close-btn:focus-visible {
  background: #f0f4ff;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.87rem;
  font-weight: 500;
  color: #28303d;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(17, 18, 24, 0.16);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.8rem;
  font: inherit;
  color: #10141e;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid rgba(0, 229, 255, 0.35);
  border-color: rgba(0, 229, 255, 0.5);
}

.contact-card {
  border-radius: 16px;
  padding: 1rem;
  align-content: center;
  color: #111;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(243, 248, 255, 0.72));
}

.contact-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.25rem, 1fr));
  gap: 0.75rem;
  margin-top: 0.2rem;
  width: 100%;
  max-width: 28rem;
  justify-content: center;
}

.social-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  width: 100%;
  min-width: 0;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 14px 28px rgba(0, 0, 0, 0.22),
    0 0 24px rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease,
    border-color 0.18s ease, background-position 0.18s ease;
  overflow: hidden;
  isolation: isolate;
}

.social-links a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.38), transparent 42%, transparent 58%, rgba(255, 255, 255, 0.16));
  opacity: 0.36;
  mix-blend-mode: screen;
  pointer-events: none;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 18px 36px rgba(0, 0, 0, 0.26),
    0 0 30px rgba(255, 255, 255, 0.14);
  filter: saturate(1.08) brightness(1.03);
  border-color: rgba(255, 255, 255, 0.3);
}

.social-link--instagram {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 52%, #8134af 100%);
}

.social-link--facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0f5cc0 100%);
}

.social-link__icon {
  width: 1.12rem;
  height: 1.12rem;
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  .social-links {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

.wa-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 9;
  background: #12ce5e;
  color: #08120d;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.82rem 1.05rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.wa-float:hover,
.wa-float:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.38);
}

.footer {
  margin-top: 2rem;
  padding-block: 1.9rem 2.45rem;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(8, 18, 34, 0.58), rgba(10, 20, 38, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  align-items: center;
  justify-content: center;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.98);
  text-decoration: none;
  font-weight: 700;
}

.footer-contact a:hover,
.footer-contact a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.62rem;
  margin-top: 0.15rem;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  justify-content: center;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.2rem 0.56rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.footer img {
  display: block;
  width: min(420px, 84vw);
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: brightness(0) invert(1) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
  image-rendering: -webkit-optimize-contrast;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 761px) and (max-width: 1024px) {
  .page-hero {
    min-height: auto;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
  }

  .page-hero h1 {
    max-width: 13ch;
    font-size: clamp(2.2rem, 4.2vw, 3.15rem);
  }

  .page-hero .subhead {
    max-width: 46ch;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 0.75rem;
  }

  .cards .service-card {
    flex-basis: calc(50% - 0.5rem);
  }

  .cards .service-card:last-child:nth-child(odd) {
    flex-basis: calc(50% - 0.5rem);
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    display: none !important;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flagship-gallery {
    grid-template-columns: 1fr;
  }

  .skandia-media {
    grid-template-columns: 1fr;
  }

  .skandia-photo,
  .skandia-video-wrap {
    min-height: 260px;
  }

  .flagship-photo--main {
    grid-row: auto;
    min-height: 220px;
  }

  .flagship-photo {
    min-height: 160px;
  }

  .project,
  .project:nth-child(1),
  .project:nth-child(2),
  .project:nth-child(3),
  .project:nth-child(4) {
    grid-column: span 12;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-block: 0.7rem;
  }

  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "brand lang toggle"
      "links links links";
    align-items: center;
    row-gap: 0.7rem;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
  }

  .brand img {
    width: min(220px, 52vw);
    max-height: 70px;
  }

  .nav-toggle {
    grid-area: toggle;
    display: inline-flex;
    position: relative;
    justify-self: end;
    z-index: 14;
    width: 46px;
    height: 46px;
  }

  .nav-toggle[aria-expanded="true"] {
    border-color: rgba(0, 229, 255, 0.42);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    margin-top: 0;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    margin-top: 0;
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(6, 10, 18, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, visibility 0.24s ease;
    z-index: 9;
  }

  .nav-scrim.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .flagship-project {
    padding: 0.85rem;
  }

  .flagship-photo,
  .flagship-photo--main {
    min-height: 200px;
  }

  .skandia-photo {
    min-height: 210px;
  }

  .nav-links {
    grid-area: links;
    position: static;
    width: 100%;
    top: auto;
    left: auto;
    right: auto;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.98));
    border: 1px solid rgba(16, 20, 30, 0.12);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.26);
    padding: 0.72rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.985);
    z-index: 12;
  }

  .lang-switch {
    grid-area: lang;
    position: static;
    right: auto;
    top: auto;
    margin-left: 0;
    gap: 0.18rem;
    justify-self: end;
  }

  .lang-switch .lang-btn {
    padding: 0.34rem 0.48rem;
    min-width: 2.1rem;
    font-size: 0.76rem;
  }

  .nav-links a {
    color: #10141e;
    border-radius: 10px;
    padding: 0.62rem 0.66rem;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    color: #08363d;
    background: rgba(0, 229, 255, 0.12);
  }

  .nav-links.open {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links .cta-mini {
    text-align: center;
    margin-top: 0.28rem;
    border-color: rgba(8, 54, 61, 0.22);
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.14), rgba(0, 229, 255, 0.14));
  }

  .hero-stat {
    right: 4%;
    width: min(360px, 84%);
  }

  .cards .service-card {
    flex-basis: 100%;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .brand {
    width: min(230px, 58vw);
  }

  .video-fondo {
    position: absolute;
    top: var(--header-h);
    height: 62vh;
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Monitoring Dashboard */
.monitoring-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Water pumping + PDF page section */
.water-pumping-section,
.pdf-page-seven-section {
  padding-block: 0.5rem 1.5rem;
}

.water-pumping-grid {
  display: grid;
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
}

.water-pumping-card {
  border-radius: 20px;
  padding: 1.5rem 1.4rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.92));
  border: 1px solid rgba(17, 18, 24, 0.12);
}

.water-pumping-card h3 {
  margin: 0 0 0.6rem;
  color: #111218;
}

.water-pumping-card p {
  color: #444;
  line-height: 1.6;
  margin: 0 0 0.8rem;
}

.water-pumping-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #3b3b3b;
  line-height: 1.65;
}

.pdf-seven-content {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.pdf-seven-card {
  border-radius: 20px;
  padding: 1.25rem 1.3rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.92));
  border: 1px solid rgba(17, 18, 24, 0.12);
}

.pdf-seven-card h3 {
  margin: 0 0 0.65rem;
  color: #111218;
}

.pdf-seven-card p {
  margin: 0 0 0.8rem;
  color: #444;
  line-height: 1.6;
}

.pdf-seven-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #3b3b3b;
  line-height: 1.65;
}

.pdf-inline-link {
  margin-top: 0.7rem;
  text-align: center;
}

.pdf-inline-link a {
  color: #0a6f7c;
  font-weight: 600;
  text-decoration: none;
}

.pdf-inline-link a:hover,
.pdf-inline-link a:focus-visible {
  text-decoration: underline;
}

/* Energy Flow Diagram */
.energy-flow-diagram {
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  border-radius: 20px;
  border: 1px solid rgba(0, 229, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.energy-flow-diagram svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.flow-line {
  stroke-dasharray: 8, 4;
  animation: flow-dash 30s linear infinite;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.flow-line:hover {
  opacity: 1;
}

@keyframes flow-dash {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -12;
  }
}

.flow-particle {
  animation: particle-fade 2s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

@keyframes particle-fade {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.3;
  }
}

.value-pv,
.value-inverter,
.value-grid,
.value-consumption,
.value-battery {
  animation: value-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.home-energy-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(248, 251, 255, 0.95), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(16, 20, 30, 0.08);
}

.home-energy-image {
  width: min(100%, 900px);
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.home-house-scene {
  position: relative;
  width: min(100%, 900px);
  border-radius: 18px;
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 62%, #dcfce7 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.12), inset 0 24px 32px rgba(15, 23, 42, 0.05), inset 0 -18px 26px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  aspect-ratio: 900 / 520;
}

.home-house-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
}

.home-house-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.home-house-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(219, 234, 254, 0.15) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 70%, rgba(15, 23, 42, 0.18) 100%);
  pointer-events: none;
}

.home-house-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.9) contrast(1.03);
}

.home-house-svg--overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  filter: none;
  pointer-events: none;
}

.home-sun {
  transform-box: fill-box;
  transform-origin: center;
  animation: sun-breathe 4.5s ease-in-out infinite;
}

.home-sun-halo {
  animation: sun-halo-pulse 2.2s ease-in-out infinite;
}

.home-sun-core {
  animation: sun-core-glow 1.8s ease-in-out infinite;
}

.home-sun-rays {
  transform-box: fill-box;
  transform-origin: center;
  animation: sun-rays-spin 10s linear infinite, sun-rays-pulse 1.4s ease-in-out infinite;
}

@keyframes sun-breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.home-sun,
.home-sun-halo,
.home-sun-core,
.home-sun-rays,
.home-power-line,
.home-power-node {
  transform: none;
}

.home-sun {
  animation: sun-breathe 4.5s ease-in-out infinite !important;
}

.home-sun-halo {
  left: 36.8%;
}

.home-sun-core {
  left: 63.8%;
}

.home-sun-rays {
  transform: none;
}

.home-power-line {
  animation: home-power-dash 0.6s linear infinite, home-power-line-pulse 0.9s ease-in-out infinite !important;
}

.home-power-node {
  left: 35.8%;
}

@media (min-width: 761px) and (max-width: 1024px) {
  .home-energy-badge--pv {
    top: 8.6%;
    left: 17.2%;
  }

  .home-energy-badge--home {
    top: 8.6%;
    left: 32.4%;
  }

  .home-energy-badge--grid {
    right: 10.8%;
    bottom: 6.2%;
    left: auto;
  }
}

@keyframes sun-core-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(251, 191, 36, 0));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.82));
  }
}

@keyframes sun-rays-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes sun-rays-pulse {
  0%,
  100% {
    opacity: 0.55;
    filter: drop-shadow(0 0 0 rgba(245, 158, 11, 0));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.65));
  }
}

.house-metric-label {
  font-size: 11px;
  font-weight: 500;
  fill: #6b7280;
}

.house-metric-value {
  font-size: 18px;
  font-weight: 700;
  fill: #111827;
}

.home-energy-arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.home-energy-badges {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.home-flow-line {
  --flow-speed: 2.1s;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 8 8;
  animation: flow-dash-energy var(--flow-speed) linear infinite, flow-pulse-energy 1.8s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.15));
}

.home-flow-line--pv {
  stroke: #f59e0b;
  --flow-speed: 1.6s;
}

.home-flow-line--cons {
  stroke: #f59e0b;
  --flow-speed: 1.9s;
}

.home-flow-line--grid {
  stroke: #ef4444;
  --flow-speed: 1.15s;
}

.home-flow-point {
  fill: #f8fafc;
  stroke: #94a3b8;
  stroke-width: 1.2;
  opacity: 0.95;
}

.home-flow-guide {
  fill: none;
  stroke: #94a3b8;
  stroke-width: 1.4;
  stroke-dasharray: 3 4;
  opacity: 0.85;
}

.home-flow-guide-point {
  fill: #cbd5e1;
  opacity: 0.9;
}

.home-power-line {
  fill: none;
  stroke: #ef4444;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 4 10;
  animation: home-power-dash 0.6s linear infinite, home-power-line-pulse 0.9s ease-in-out infinite;
  will-change: stroke-dashoffset, opacity;
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.35));
}

.home-power-node {
  fill: #ef4444;
  animation: home-power-node-pulse 1.2s ease-in-out infinite;
}

@keyframes flow-dash-energy {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -42;
  }
}

@keyframes flow-pulse-energy {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes home-power-dash {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 28;
  }
}

@keyframes home-power-line-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes home-power-node-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.home-flow-label {
  font-size: 16px;
  font-weight: 700;
  fill: #0f172a;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 5px;
  stroke-linejoin: round;
}

.home-energy-badge {
  position: absolute;
  min-width: 148px;
  padding: 0.32rem 0.52rem;
  border-radius: 10px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.home-energy-badge::after {
  content: none;
}

.home-energy-badge span {
  display: block;
  font-size: 0.56rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #334155;
}

.home-energy-badge strong {
  display: block;
  margin-top: 0.05rem;
  font-size: 1.32rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.home-energy-badge small {
  display: block;
  margin-top: 0;
  color: #64748b;
  font-size: 0.52rem;
}

/* Los badges se ocultan: las métricas ahora viven en la tarjeta del SVG superpuesto */
.home-energy-badges {
  position: static;
  inset: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem 0;
  pointer-events: none;
}

.home-energy-badge {
  position: static;
  min-width: 0;
  flex: 1 1 140px;
  max-width: 200px;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.94));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
  text-align: left;
  backdrop-filter: blur(6px);
}

.home-energy-badge::after {
  content: "";
  position: absolute;
  display: none;
}

.home-energy-badge span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
}

.home-energy-badge strong {
  margin-top: 0.18rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.home-energy-badge small {
  margin-top: 0.05rem;
  font-size: 0.72rem;
  color: #64748b;
}

.home-energy-summary {
  position: static;
  z-index: 2;
  width: min(92%, 760px);
  margin: 1rem auto 0;
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.home-energy-summary span {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.home-energy-summary p {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(248, 250, 252, 0.88);
}

@media (max-width: 960px) {
  .home-energy-badges {
    position: absolute;
    inset: 0;
    display: block;
    width: auto;
    margin-top: 0;
    pointer-events: none;
  }

  .home-energy-badge {
    position: absolute;
    inset: auto;
    min-width: 104px;
    max-width: 132px;
    padding: 0.18rem 0.26rem;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-energy-badge::after {
    display: none;
  }

  .home-energy-badge span {
    font-size: 0.44rem;
    line-height: 1.02;
    white-space: nowrap;
  }

  .home-energy-badge strong {
    font-size: 0.78rem;
    margin-top: 0.02rem;
    line-height: 1.02;
    white-space: nowrap;
  }

  .home-energy-badge small {
    font-size: 0.42rem;
    line-height: 1.02;
  }
}

@media (max-width: 640px) {
  .home-energy-badges {
    position: absolute;
    inset: 0;
    display: block;
    width: auto;
    margin-top: 0;
    pointer-events: none;
  }

  .home-energy-badge {
    position: absolute;
    inset: auto;
    min-width: 104px;
    max-width: 132px;
    padding: 0.18rem 0.26rem;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-energy-badge span {
    font-size: 0.44rem;
    line-height: 1.02;
    white-space: nowrap;
  }

  .home-energy-badge strong {
    font-size: 0.78rem;
    margin-top: 0.02rem;
    line-height: 1.02;
    white-space: nowrap;
  }

  .home-energy-badge small {
    font-size: 0.42rem;
    line-height: 1.02;
  }

  .home-energy-badge--pv {
    top: 6.8%;
    left: 8.2%;
    transform: translate(3mm, -2mm);
  }

  .home-energy-badge--home {
    top: 5.8%;
    left: 49.2%;
    transform: translate(-28px, -8px);
  }

  .home-energy-badge--grid {
    left: 67.4%;
    right: auto;
    bottom: 7.2%;
    max-width: 122px;
    transform: translate(5mm, 4mm);
  }
}

@media (max-width: 420px) {
  .home-energy-badge--pv {
    top: 5.2%;
    left: 7.6%;
    transform: translate(3mm, -2mm);
  }

  .home-energy-badge--home {
    top: 5.2%;
    left: 47.8%;
    transform: translate(-28px, -8px);
  }

  .home-energy-badge--grid {
    left: 65.4%;
    transform: translate(5mm, 4mm);
  }
}

@keyframes value-pop {
  0% {
    opacity: 0;
    transform: scale(0.78);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 960px) {
  .energy-flow-diagram {
    padding: 1rem;
  }

  .energy-flow-diagram svg {
    height: auto;
  }

  .pdf-seven-content {
    grid-template-columns: 1fr;
  }
}

/* ── Beneficios Tributarios ───────────────────────────────────── */
.tax-benefits {
  padding-block: 1rem 2rem;
}

.tax-intro {
  max-width: 62ch;
  margin: 0.6rem auto 2.2rem;
  text-align: center;
  color: #555;
  font-size: 0.97rem;
  line-height: 1.6;
}

.tax-grid {
  display: grid;
  grid-template-columns: minmax(0, 600px);
  gap: 1.5rem;
  justify-content: center;
}

.tax-card {
  border: 1px solid rgba(17, 18, 24, 0.12);
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  background: linear-gradient(160deg, #ffffff 60%, #f0f9ff);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.tax-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.tax-card-header svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.tax-law {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0EA5E9;
  margin-bottom: 0.25rem;
}

.tax-card:first-child .tax-law {
  color: #d97706;
}

.tax-card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: #111218;
}

.tax-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.tax-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.tax-seal {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.tax-inline-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.tax-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.tax-icon--green { background: #dcfce7; }
.tax-icon--blue  { background: #e0f2fe; }

.tax-list li strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #111218;
  margin-bottom: 0.15rem;
}

.tax-list li p {
  margin: 0;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.5;
}

.tax-procedure {
  border-top: 1px solid rgba(14, 165, 233, 0.2);
  padding-top: 1rem;
}

.tax-procedure h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0EA5E9;
  margin: 0 0 0.75rem;
}

.tax-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.tax-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: #444;
  line-height: 1.5;
}

.tax-steps li span {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0EA5E9;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.tax-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: #888;
  text-align: center;
}

@media (max-width: 700px) {
  .tax-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CARRUSEL DE CLIENTES
   ============================================================ */
.clients-section {
  padding: 4rem 0;
  background: #f8fafc;
  overflow: hidden;
}

.clients-section .section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.clients-section .section-heading h2 {
  font-size: 1.6rem;
  color: #111218;
  margin-bottom: 0.4rem;
}

.clients-section .section-heading p {
  color: #666;
  font-size: 0.95rem;
}

.clients-track-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Degradados laterales para efecto fade */
.clients-track-wrapper::before,
.clients-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.clients-track-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #f8fafc, transparent);
}

.clients-track-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #f8fafc, transparent);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: clientsScroll 18s linear infinite;
  -webkit-animation: clientsScroll 18s linear infinite;
}

.clients-track:hover {
  animation-play-state: paused;
  -webkit-animation-play-state: paused;
}

@-webkit-keyframes clientsScroll {
  0%   { -webkit-transform: translateX(0); transform: translateX(0); }
  100% { -webkit-transform: translateX(-2400px); transform: translateX(-2400px); }
}

@keyframes clientsScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-2400px); }
}

.client-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
}

.client-logo img {
  max-height: 90px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: grayscale(80%) opacity(0.75);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.client-logo img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.07);
}

@media (max-width: 600px) {
  .client-logo img {
    max-height: 65px;
    max-width: 140px;
  }

  .clients-track {
    gap: 2rem;
  }
}

/* -- Thank-you overlay ------------------------------------------- */
.thankyou-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem;
  animation: fadeIn 0.35s ease;
}

.thankyou-overlay[hidden] {
  display: none;
}

.thankyou-card {
  max-width: 460px;
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.thankyou-icon {
  width: 72px;
  height: 72px;
}

.thankyou-icon circle {
  stroke: var(--amber);
}

.thankyou-icon path {
  stroke: var(--amber);
}

.thankyou-card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--text);
}

.thankyou-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.mini-granjas-info-btn {
  margin-top: 0.9rem;
  width: fit-content;
  padding: 0.7rem 1rem;
  font-size: 0.86rem;
}

.info-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(10, 10, 15, 0.84);
  backdrop-filter: blur(6px);
}

.info-modal-overlay[hidden] {
  display: none;
}

.info-modal-card {
  width: min(860px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 18px;
  background: #f7f9fc;
  color: #111218;
  border: 1px solid rgba(17, 18, 24, 0.12);
  padding: 2.2rem 2rem 1.5rem;
  position: relative;
}

.info-modal-card h2 {
  margin: 0 2rem 1rem 0;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #13213f;
}

.info-modal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.info-modal-list li {
  color: #22252f;
  font-size: 1.02rem;
  line-height: 1.45;
  position: relative;
  padding-left: 1.15rem;
}

.info-modal-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: #0f1f45;
  font-weight: 700;
}

.financing-modal-text {
  margin: 0 0 1rem;
  color: #22252f;
  font-size: 1.02rem;
  line-height: 1.55;
}

.financing-modal-text:last-of-type {
  margin-bottom: 0;
}

.info-modal-actions {
  margin-top: 1.2rem;
  display: flex;
  justify-content: flex-end;
}

.info-modal-cta {
  white-space: nowrap;
}

.info-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  border: 1px solid rgba(17, 18, 24, 0.2);
  background: #ffffff;
  color: #111218;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.info-modal-close:hover {
  background: #f0f4ff;
}

body.modal-open {
  overflow: hidden;
}

/* -- Banner de proyectos (marquee animado) ----------------------- */
.projects-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 1.5rem 0 2.25rem;
  padding: 0.5rem 0;
  /* Fade en los bordes laterales */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.projects-marquee__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: projectsMarquee 55s linear infinite;
  will-change: transform;
}

.projects-marquee:hover .projects-marquee__track,
.projects-marquee:focus-within .projects-marquee__track {
  animation-play-state: paused;
}

.project-card {
  flex: 0 0 320px;
  margin: 0;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0A0A0F;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 40px rgba(245, 166, 35, 0.25), 0 8px 18px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

.project-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.1rem 1.1rem 0.95rem;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.92) 0%, rgba(10, 10, 15, 0.55) 55%, rgba(10, 10, 15, 0) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  pointer-events: none;
}

.project-card figcaption strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}

.project-card figcaption span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber, #f5a623);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@keyframes projectsMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Accesibilidad: respetar usuarios con reduced motion */
@media (prefers-reduced-motion: reduce) {
  .projects-marquee__track {
    animation-duration: 180s;
  }
}

/* -- Videos de proyectos ----------------------------------------- */
.projects-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-video-card {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #15181f 0%, #0A0A0F 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(245, 166, 35, 0.2), 0 12px 28px rgba(0, 0, 0, 0.4);
}

.project-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.project-video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-video-card figcaption {
  padding: 1.1rem 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.project-video-card figcaption strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.project-video-card figcaption span {
  font-size: 0.88rem;
  color: var(--amber, #f5a623);
  font-weight: 500;
}

@media (max-width: 720px) {
  .project-card {
    flex: 0 0 240px;
  }

  .projects-videos {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* -- NAP / Dirección + Mapa (Local SEO) -------------------------- */
.footer-address {
  margin: 0.4rem 0 0.8rem;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.footer-address strong {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-address a {
  color: var(--amber, #f5a623);
  text-decoration: none;
  font-weight: 600;
}

.footer-address a:hover {
  text-decoration: underline;
}

.contact-card__address {
  margin: 0.6rem 0 0.3rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(17, 18, 24, 0.85);
}

.contact-card__map {
  margin-top: 0.85rem;
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid currentColor;
  color: var(--amber, #f5a623);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-ghost:hover {
  background: var(--amber, #f5a623);
  color: #fff;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  border-radius: 999px;
}

.map-section {
  padding: 2.5rem 0 3.5rem;
}

.map-section .section-heading {
  text-align: center;
  margin-bottom: 1.5rem;
}

.map-section .section-heading h2 {
  color: #13213f;
}

.map-section .section-sub {
  color: rgba(17, 18, 24, 0.65);
  max-width: 60ch;
  margin: 0.5rem auto 0;
}

.map-embed {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(17, 18, 24, 0.12);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  background: #e5e7eb;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

@media (max-width: 640px) {
  .map-embed iframe {
    height: 320px;
  }
}

/* -- Habeas Data / Consentimiento expreso ------------------------- */
.consent-block {
  margin: 0.25rem 0 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.consent-check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(17, 18, 24, 0.82);
}

.consent-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
}

.consent-check__box {
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(17, 18, 24, 0.45);
  border-radius: 5px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: 1px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.consent-check__box::after {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.consent-check input[type="checkbox"]:checked + .consent-check__box {
  background: var(--amber, #f5a623);
  border-color: var(--amber, #f5a623);
}

.consent-check input[type="checkbox"]:checked + .consent-check__box::after {
  opacity: 1;
}

.consent-check input[type="checkbox"]:focus-visible + .consent-check__box {
  outline: 2px solid var(--amber, #f5a623);
  outline-offset: 2px;
}

.consent-check__label {
  display: grid;
  gap: 0.35rem;
}

.consent-link {
  background: none;
  border: 0;
  padding: 0;
  color: #13213f;
  text-decoration: underline;
  text-underline-offset: 3px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  justify-self: start;
}

.consent-link:hover {
  color: var(--amber, #f5a623);
}

.consent-error {
  margin: 0;
  font-size: 0.85rem;
  color: #b00020;
  font-weight: 600;
}

.consent-error[hidden] {
  display: none;
}

/* -- Habeas Data Modal --------------------------------------------- */
.habeas-modal__card {
  width: min(760px, 100%);
  max-height: 90vh;
  padding: 2.2rem 1.8rem 1.5rem;
}

.habeas-updated {
  margin: -0.4rem 0 1.2rem;
  font-size: 0.82rem;
  color: rgba(17, 18, 24, 0.55);
  font-style: italic;
}

.habeas-scroll {
  max-height: calc(90vh - 200px);
  overflow-y: auto;
  padding: 0.4rem 0.8rem 0.4rem 0.2rem;
  margin: 0 -0.2rem 0 0;
}

.habeas-section {
  margin-bottom: 1.1rem;
}

.habeas-section h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #13213f;
  letter-spacing: 0.01em;
}

.habeas-section p {
  margin: 0 0 0.55rem;
  color: #22252f;
  font-size: 0.92rem;
  line-height: 1.55;
}

.habeas-section p:last-child {
  margin-bottom: 0;
}

.habeas-section--accent {
  background: rgba(245, 166, 35, 0.08);
  border-left: 3px solid var(--amber, #f5a623);
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin-top: 1.4rem;
}

.habeas-list {
  margin: 0 0 0.55rem;
  padding-left: 1.1rem;
  color: #22252f;
  font-size: 0.92rem;
  line-height: 1.55;
}

.habeas-list li {
  margin-bottom: 0.3rem;
}

.habeas-list--plain {
  list-style: none;
  padding-left: 0;
}

.habeas-scroll::-webkit-scrollbar {
  width: 8px;
}

.habeas-scroll::-webkit-scrollbar-thumb {
  background: rgba(17, 18, 24, 0.25);
  border-radius: 4px;
}

.habeas-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(17, 18, 24, 0.45);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* -- Nosotros page ----------------------------------------------- */
.section-sub {
  color: rgba(255, 255, 255, 0.68);
  max-width: 60ch;
  margin: 0.5rem auto 0;
  font-size: 0.95rem;
  text-align: center;
}

.section-light .section-sub {
  color: rgba(17, 18, 24, 0.68);
}

.metrics--lg {
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metrics--lg article span {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

/* Timeline */
.nosotros-timeline-section {
  padding-block: 4rem;
}

.nosotros-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 820px;
  margin: 2.5rem auto 0;
}

.nosotros-timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--amber), rgba(255, 179, 0, 0.15));
}

.nt-item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}

.nt-item:last-child {
  padding-bottom: 0;
}

.nt-marker {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  position: relative;
  z-index: 1;
}

.nt-marker svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.nt-content {
  padding-top: 0.6rem;
}

.nt-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.3rem;
}

.nt-content h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
}

.nt-content p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.93rem;
  margin: 0;
  max-width: 60ch;
}

/* Values grid */
.nosotros-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.nosotros-value-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nosotros-value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(255, 179, 0, 0.12);
}

.nv-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 179, 0, 0.12);
  border-radius: 12px;
  color: var(--amber);
}

.nv-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.nosotros-value-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.nosotros-value-card p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.section-light .nosotros-value-card {
  background: rgba(17, 18, 24, 0.04);
  border: 1px solid rgba(17, 18, 24, 0.08);
}

.section-light .nosotros-value-card h3 {
  color: var(--ink);
}

.section-light .nosotros-value-card p {
  color: rgba(17, 18, 24, 0.72);
}

.section-light .nv-icon {
  background: rgba(255, 179, 0, 0.08);
  color: var(--amber);
}

/* Services list */
.nosotros-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.ns-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.22s ease, background 0.22s ease;
}

.ns-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.12);
}

.ns-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 179, 0, 0.1);
  border-radius: 10px;
  color: var(--amber);
}

.ns-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.ns-item > div h3 {
  margin: 0 0 0.2rem;
  font-size: 0.97rem;
}

.ns-item > div p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.section-light .ns-item {
  background: rgba(17, 18, 24, 0.04);
  border: 1px solid rgba(17, 18, 24, 0.08);
}

.section-light .ns-item > div h3 {
  color: var(--ink);
}

.section-light .ns-item > div p {
  color: rgba(17, 18, 24, 0.68);
}

.section-light .ns-icon {
  background: rgba(255, 179, 0, 0.08);
  color: var(--amber);
}

.ns-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--amber);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ns-item:hover .ns-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* CTA final */
.nosotros-cta-section {
  padding-block: 5rem;
}

.nosotros-cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.nosotros-cta-inner h2 {
  margin: 0;
}

.nosotros-cta-inner p {
  color: rgba(17, 18, 24, 0.7);
  max-width: 52ch;
  margin: 0;
}

.nosotros-cta-inner .hero-cta {
  justify-content: center;
}

/* Responsive nosotros */
@media (max-width: 900px) {
  .nosotros-values {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .nosotros-values {
    grid-template-columns: 1fr;
  }

  .nosotros-services {
    grid-template-columns: 1fr;
  }

  .nosotros-timeline::before {
    left: 22px;
  }

  .nt-marker {
    width: 46px;
    height: 46px;
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .home-energy-badges {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: auto !important;
    margin-top: 0 !important;
    pointer-events: none !important;
  }

  .home-energy-badge {
    position: absolute !important;
    inset: auto !important;
    min-width: 112px !important;
    max-width: 148px !important;
    padding: 0.2rem 0.3rem !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .home-energy-badge span {
    font-size: 0.5rem !important;
    line-height: 1.02 !important;
    white-space: nowrap !important;
  }

  .home-energy-badge strong {
    font-size: 1rem !important;
    margin-top: 0.02rem !important;
    line-height: 1.02 !important;
    white-space: nowrap !important;
  }

  .home-energy-badge small {
    font-size: 0.46rem !important;
    line-height: 1.02 !important;
  }

  .home-energy-badge--pv {
    top: 12% !important;
    left: 10% !important;
    transform: translate(13mm, -3mm) !important;
  }

  .home-energy-badge--home {
    top: 12% !important;
    left: 35% !important;
    transform: translateY(-3mm) !important;
  }

  .home-energy-badge--grid {
    right: 10% !important;
    bottom: 10% !important;
    left: auto !important;
    transform: translate(-2mm, -1mm) !important;
  }
}

@media (min-width: 1025px) {
  .home-energy-badge--grid {
    transform: translate(-2mm, -4mm);
  }
}
