@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --bg: #f7f8f4;
  --surface: #fff;
  --ink: #17211f;
  --muted: #66716c;
  --line: #dfe5dc;
  --accent: #f4c94d;
  --accent-dark: #d7a71e;
  --soft: #edf1e8;
  --shadow: 0 24px 60px #17211f10;
  color-scheme: light;
}
body.dark {
  --bg: #111715;
  --surface: #19211f;
  --ink: #f3f5ed;
  --muted: #acb8b0;
  --line: #33423c;
  --soft: #202b27;
  --shadow: 0 24px 60px #00000030;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  line-height: 1.6;
  transition:
    background 0.25s,
    color 0.25s;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
}
.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}
.section {
  padding: clamp(76px, 10vw, 140px) 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}
.brand img {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 9px;
}
.brand > span > span {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.8rem;
  font-weight: 700;
}
.main-nav > a:not(.nav-cta) {
  text-decoration: none;
  color: var(--muted);
}
.main-nav > a:hover {
  color: var(--ink);
}
.nav-cta {
  background: var(--accent);
  padding: 10px 15px;
  border-radius: 999px;
  text-decoration: none;
}
.theme-toggle {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  padding: 7px;
}
.menu-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  background: var(--ink);
  margin: 5px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.hero {
  padding-top: clamp(70px, 9vw, 125px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: clamp(35px, 8vw, 110px);
  align-items: center;
}
.eyebrow {
  font:
    500 0.68rem/1.2 "DM Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-dark);
  margin: 0 0 21px;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.93;
  letter-spacing: -0.075em;
  max-width: 700px;
  margin: 0 0 26px;
}
.hero-text {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 570px;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border-radius: 999px;
  text-decoration: none;
  padding: 14px 21px;
  font-weight: 800;
  font-size: 0.82rem;
}
.button-primary {
  background: var(--accent);
  color: #17211f;
}
.button-primary:hover {
  background: #ffd968;
  transform: translateY(-2px);
}
.button-quiet {
  border: 1px solid var(--line);
  background: var(--surface);
}
.button,
.service-card a {
  transition:
    transform 0.2s,
    background 0.2s;
}
.microcopy {
  font:
    400 0.65rem "DM Mono",
    monospace;
  color: var(--muted);
  margin-top: 16px;
}
.hero-art {
  height: 510px;
  position: relative;
  background: #dce6cf;
  border-radius: 50% 50% 8% 8%;
  overflow: hidden;
  isolation: isolate;
}
.hero-art:after {
  content: "";
  position: absolute;
  inset: 50% -20% -25%;
  background: var(--accent);
  border-radius: 50% 50% 0 0;
  z-index: -1;
}
.sun {
  position: absolute;
  width: 160px;
  height: 160px;
  background: var(--accent);
  border-radius: 50%;
  top: 70px;
  right: 13%;
  box-shadow: 0 0 0 18px #f4c94d33;
}
.service-number {
  font:
    500 0.65rem "DM Mono",
    monospace;
  color: var(--accent-dark);
}
.orbit {
  position: absolute;
  border: 1px solid #17211f33;
  border-radius: 50%;
  width: 480px;
  height: 190px;
  right: -24%;
  top: 42%;
  transform: rotate(-28deg);
}
.orbit-two {
  width: 550px;
  height: 280px;
  right: -28%;
  top: 32%;
  transform: rotate(-28deg);
}
.proof {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 25px 0;
  gap: 20px;
}
.proof-grid div {
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 1px solid var(--line);
}
.proof-grid div:last-child {
  border: 0;
}
.proof-grid strong {
  font-size: 0.8rem;
}
.proof-grid span {
  color: var(--muted);
  font-size: 0.72rem;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12%;
  align-items: start;
}
.split h2,
.section-heading h2,
.process h2,
.area h2,
.faq h2,
.contact h2 {
  font-size: clamp(1.85rem, 3.5vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.065em;
  margin: 0;
}
.split p:not(.eyebrow),
.section-heading > p,
.process-grid > div > p:not(.eyebrow),
.area p:not(.eyebrow),
.contact p:not(.eyebrow) {
  color: var(--muted);
  max-width: 520px;
}
.text-link {
  display: inline-flex;
  gap: 25px;
  font-weight: 800;
  text-decoration: none;
  margin-top: 22px;
}
.section-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 10%;
  align-items: end;
  margin-bottom: 55px;
}
.services {
  background: var(--soft);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.service-card {
  background: var(--surface);
  padding: 28px;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  border-radius: 3px;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.service-feature {
  background: var(--ink);
  color: var(--bg);
}
.service-feature .service-number,
.service-feature a {
  color: var(--accent);
}
.service-icon {
  font-size: 2rem;
  margin: 30px 0 18px;
}
.service-card h3 {
  font-size: 1.24rem;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}
.service-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
.service-feature p {
  color: #b4c0b8;
}
.service-card a {
  margin-top: auto;
  padding-top: 22px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 800;
}
.process {
  background: var(--ink);
  color: var(--bg);
}
.process .eyebrow {
  color: var(--accent);
}
.process-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 12%;
  align-items: start;
}
.process-grid > div > p:not(.eyebrow) {
  color: #aab6ae;
  margin: 25px 0 32px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 20px;
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid #ffffff22;
}
.steps li:last-child {
  border: 0;
}
.steps b {
  font:
    500 0.75rem "DM Mono",
    monospace;
  color: var(--accent);
}
.steps h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}
.steps p {
  margin: 0;
  color: #aab6ae;
  font-size: 0.85rem;
}
.area-box {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #17211f;
  padding: clamp(30px, 6vw, 75px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  align-items: center;
}

.area-box > *:not(.area-andalusia-art) {
  position: relative;
  z-index: 1;
}

.area-andalusia-art {
  position: absolute;
  z-index: 0;
  right: -2%;
  top: 4%;
  width: 58%;
  height: 92%;
  opacity: .25;
  pointer-events: none;
  overflow: visible;
}

.andalusia-silhouette {
  position: absolute;
  inset: 0;
  background: #17211f;
  -webkit-mask: url("assets/almeria.svg") center / contain no-repeat;
  mask: url("assets/almeria.svg") center / contain no-repeat;
}

.andalusia-silhouette-cutout {
  inset: 4px;
  background: var(--accent);
}

.area-almeria-focus {
  position: absolute;
  right: 8%;
  bottom: 13%;
  width: 18px;
  height: 18px;
  border: 2px solid #17211f;
  border-radius: 50%;
  stroke: #17211f;
  opacity: .8;
}
.area .eyebrow {
  color: #735800;
}
.area p:not(.eyebrow) {
  color: #49401f;
}
.places {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.places button,
.places span {
  color: #17211f;
  background: transparent;
  border: 1px solid #17211f55;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.75rem;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.area-visual {
  display: grid;
  gap: 20px;
}
.mini-map {
  display: none;
}

.map-points {
  display: none;
}

.places button:hover,
.places button:focus-visible,
.places span:hover {
  color: var(--accent);
  background: #17211f;
  border-color: #17211f;
}

.places button:focus-visible,
.places span:focus-visible {
  outline: 2px solid #17211f;
  outline-offset: 3px;
}

/* Compatibilidad con el marcado antiguo: el mapa ya no se muestra. */
.mini-map {
  position: relative;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 2 / 1;
  margin-inline: auto;
}
.mini-map svg {
  display: block;
  width: 100%;
  height: 100%;
}

.almeria-map-art {
  position: absolute;
  inset: 0;
}

/* El mapa se muestra como perímetro: las divisiones municipales quedan ocultas. */
.map-points {
  position: absolute;
  inset: 0;
}
.map-point {
  position: absolute;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: #17211f;
  box-shadow: 0 0 0 4px #17211f18;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.map-point:hover,
.map-point:focus-visible,
.map-point.is-active {
  background: var(--surface);
  box-shadow: 0 0 0 5px #17211f2b;
  transform: translate(-50%, -50%) scale(1.2);
}
.places button {
  border: 1px solid #17211f55;
  border-radius: 999px;
  padding: 9px 14px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.places button:hover,
.places button:focus-visible,
.places button.is-active {
  background: #17211f;
  border-color: #17211f;
  color: var(--accent);
}
.narrow {
  max-width: 820px;
}
.faq h2 {
  max-width: 700px;
  margin-bottom: 48px;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
}
.faq details p {
  color: var(--muted);
  max-width: 680px;
  margin: 15px 0 0;
}
.contact {
  padding-bottom: 100px;
}
.contact-box {
  background: var(--soft);
  padding: clamp(30px, 6vw, 75px);
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 10%;
  align-items: end;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.button-large {
  width: 100%;
  justify-content: space-between;
  padding: 19px 23px;
}
.contact-detail {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  gap: 2px;
}
.contact-detail span {
  font:
    500 0.65rem "DM Mono",
    monospace;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-detail strong {
  font-size: 1rem;
}
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 45px 0 25px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 25px;
  align-items: center;
}
.footer-grid .brand {
  color: var(--bg);
}
.footer-grid p {
  margin: 0;
  color: #aab6ae;
  font-size: 0.78rem;
}
.footer-grid > div {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.75rem;
}
.footer-grid a {
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid #ffffff22;
  margin-top: 35px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  color: #829088;
  font-size: 0.65rem;
  font-family: "DM Mono", monospace;
}
@media (max-width: 800px) {
  .container {
    width: min(100% - 32px, 620px);
  }
  .main-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav > a,
  .theme-toggle {
    padding: 12px;
    text-align: left;
  }
  .menu-toggle {
    display: block;
  }
  .hero-grid,
  .split,
  .process-grid,
  .area-box,
  .contact-box,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .hero-art {
    height: 350px;
  }
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .proof-grid div:nth-child(2) {
    border: 0;
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-heading {
    margin-bottom: 35px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid > div {
    justify-content: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}
.bolt-stage:hover .bolt-3d {
  transform: rotate(-8deg) translateZ(20px) scale(1.06);
  filter: none;
}
.bolt-face {
  filter: none;
}
.hero-art-final .bolt-stage:hover .bolt-3d {
  transform: rotate(-8deg) translateZ(20px) scale(1.06);
  filter: none;
}
.hero-art-final .bolt-face {
  filter: none;
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 3.25rem;
  }
  .hero-art {
    height: 300px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: 270px;
  }
  .proof-grid {
    gap: 14px;
  }
  .proof-grid div {
    flex-direction: column;
    align-items: flex-start;
    border: 0;
  }
  .button-row .button {
    width: 100%;
    justify-content: space-between;
  }
  .area-box {
    padding: 30px 22px;
  }
  .footer-grid > div {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art,
  .hero-art .sun,
  .hero-art .orbit,
  .hero h1[data-typing-target]::after {
    animation: none;
  }
}


/* Hero: versión original en dos columnas */
.hero {
  min-height: unset;
  display: block;
  padding-top: clamp(70px, 9vw, 125px);
  padding-bottom: clamp(76px, 10vw, 140px);
}
.hero-grid {
  display: grid;
  width: min(1160px, calc(100% - 40px));
  position: static;
  z-index: auto;
  grid-template-columns: 1.03fr 0.97fr;
  gap: clamp(35px, 8vw, 110px);
  align-items: center;
}
.hero-copy {
  position: static;
  z-index: auto;
  max-width: none;
}
.hero h1[data-typing-target] {
  min-height: 1.86em;
}
.hero-art {
  position: relative;
  inset: auto;
  width: auto;
  height: 510px;
  border-radius: 50% 50% 8% 8%;
  opacity: 1;
  background: #dce6cf;
  animation: none;
}
.hero-art::after {
  opacity: 1;
}
.hero-art .sun,
.hero-art .orbit {
  animation: none;
}
.hero-art .sun {
  opacity: 1;
}
.hero-art .orbit {
  opacity: 1;
}
@media (max-width: 800px) {
  .hero {
    min-height: unset;
  }
  .hero-grid {
    display: grid;
    width: min(100% - 32px, 620px);
    grid-template-columns: 1fr;
  }
  .hero-art {
    height: 350px;
  }
}
@media (max-width: 480px) {
  .hero-art {
    height: 300px;
  }
}

/* Imágenes integradas en el contenido, sin crear una sección independiente. */
:root {
  --accent: var(--brand-color, #f4c94d);
}
.intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
}
.intro::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: 0;
  background-image: var(--section-image);
  background-position: center;
  background-size: cover;
  filter: saturate(.45) contrast(.92);
  mix-blend-mode: multiply;
  opacity: .075;
  pointer-events: none;
}
.dark .intro::before {
  mix-blend-mode: screen;
  opacity: .045;
}
.intro > .container {
  position: relative;
  z-index: 1;
}
.service-card-image {
  display: block;
  width: 100%;
  height: 105px;
  margin-top: 18px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 11px;
  filter: saturate(.72) contrast(.97);
  opacity: .86;
  transition: transform .3s ease, filter .3s ease, opacity .3s ease;
}
.service-card-image:hover {
  z-index: 1;
  transform: scale(1.025);
  filter: saturate(1) contrast(1);
  opacity: 1;
}
.service-feature .service-card-image {
  border-color: #ffffff24;
}
/* Footer ampliado y adaptable. */
.site-footer {
  padding: 58px 0 24px;
}
.footer-grid {
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(130px, 1fr));
  gap: 34px;
  align-items: start;
}
.footer-grid > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 9px;
  font-size: .76rem;
}
.footer-brand {
  gap: 16px !important;
}
.footer-brand p {
  max-width: 260px;
}
.footer-column h3 {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: .7rem;
  font-family: "DM Mono", monospace;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-column a,
.footer-column span {
  color: #c0cbc3;
  transition: color .2s ease;
}
.footer-column a:hover {
  color: var(--accent);
}
.footer-bottom {
  gap: 18px;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 22px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .service-card-image {
    height: 94px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
}

/* Configuración definitiva del hero: texto 3/4, arte 1/4. */
.hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 3fr) minmax(180px, 1fr) !important;
}
.hero-art {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 510px;
  height: 510px;
}
.hero-art::before,
.hero-art::after {
  display: none !important;
  content: none !important;
}
@media (max-width: 800px) {
  .hero-grid.hero-grid-final {
    grid-template-columns: 1fr !important;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
  }
  .hero-art {
    min-height: 300px;
    height: 300px;
  }
}

/* Placeholder de arte: rayo 3D */
.hero-grid {
  grid-template-columns: 3fr 1fr;
  gap: clamp(28px, 5vw, 80px);
}
.hero-grid.hero-grid-final {
  grid-template-columns: minmax(0, 3fr) minmax(180px, 1fr) !important;
}
.hero-art {
  min-height: 510px;
  height: 510px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  perspective: 900px;
}
.hero-art.hero-art-final {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.hero-art.hero-art-final::before,
.hero-art.hero-art-final::after {
  display: none !important;
  content: none !important;
}
.hero.hero-final,
.hero-grid.hero-grid-final {
  overflow: visible;
}
.hero-copy {
  position: relative;
  z-index: 3;
}
.hero h1[data-typing-target] {
  position: relative;
  z-index: 4;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  min-height: 1em;
}
.hero-art.hero-art-final {
  position: relative;
  z-index: 1;
}
.hero {
  overflow: visible !important;
}
@media (max-width: 800px) {
  .hero h1[data-typing-target] {
    width: auto;
    max-width: 100%;
    white-space: normal;
    min-height: 1.86em;
  }
}
.hero-art::before,
.hero-art::after {
  display: none;
}
.bolt-stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: bolt-stage-float 5s ease-in-out infinite;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bolt-stage:hover {
  transform: rotateY(-16deg) rotateX(10deg) scale(1.08);
}
.bolt-3d {
  width: min(78%, 230px);
  height: auto;
  overflow: visible;
  transform: rotate(-8deg) translateZ(20px);
  transition: filter 0.45s ease;
}
.bolt-stage:hover .bolt-3d {
  filter: drop-shadow(16px 20px 0 #9d7310) drop-shadow(0 0 32px #f4c94dcc);
}
.bolt-depth {
  fill: #9d7310;
  transform: translate(15px, 18px);
}
.bolt-face {
  fill: var(--accent);
  stroke: #ffe38a;
  stroke-width: 3;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 18px #f4c94d80);
}
@keyframes bolt-stage-float {
  0%,
  100% {
    transform: translateY(0) rotateZ(-1deg);
  }
  50% {
    transform: translateY(-12px) rotateZ(2deg);
  }
}
@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    min-height: 300px;
    height: 300px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bolt-stage {
    animation: none;
  }
  .bolt-stage:hover {
    transform: none;
  }
}

/* Acabado final del panel eléctrico del hero. */
.hero-art {
  overflow: hidden;
  background:
    radial-gradient(circle at 65% 34%, #f4c94d22 0 9%, transparent 25%),
    linear-gradient(145deg, #101917 0%, #172720 52%, #273c32 100%);
  border: 1px solid #ffffff12;
  border-radius: 32px;
  box-shadow:
    inset 0 1px 0 #ffffff14,
    0 24px 55px #17211f24;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid #f4c94d22;
  border-radius: 50%;
  transform: rotate(-25deg) scaleX(1.35);
}
.hero-art::after {
  display: none;
}
.hero-bolt {
  width: clamp(170px, 42%, 290px);
  filter: drop-shadow(12px 18px 0 #a77b12) drop-shadow(0 0 22px #f4c94d99);
}
.hero-bolt path {
  stroke: #ffe38a;
  stroke-width: 3;
}
.bolt-glow {
  width: clamp(190px, 48%, 330px);
  opacity: 0.24;
  filter: blur(34px);
}

/* Escena orbital: energía solar, electricidad y náutica. */
.hero-art {
  background: #101917;
  border-color: #ffffff12;
}
.hero-art::before {
  inset: 8%;
  border-color: #f4c94d18;
  transform: rotate(-18deg) scaleX(1.25);
}
.orbital-scene {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.scene-glow {
  animation: scene-glow-pulse 5s ease-in-out infinite;
  transform-origin: 300px 280px;
}
.scene-sun {
  fill: var(--accent);
  stroke: #ffe38a;
  stroke-width: 3;
  filter: drop-shadow(0 0 18px #f4c94d99);
  animation: scene-sun-pulse 5s ease-in-out infinite;
  transform-origin: 300px 280px;
}
.orbital-scene .orbit {
  fill: none;
  stroke: #f4c94d66;
  stroke-width: 1.5;
  transform-origin: 300px 280px;
}
.orbital-scene .orbit-a {
  animation: orbit-spin 18s linear infinite;
}
.orbital-scene .orbit-b {
  animation: orbit-spin-reverse 25s linear infinite;
}
.scene-bolt {
  fill: var(--accent);
  stroke: #ffe38a;
  stroke-width: 3;
  stroke-linejoin: round;
  filter: drop-shadow(8px 10px 0 #a77b12) drop-shadow(0 0 12px #f4c94d99);
  transform-origin: 390px 150px;
  animation: bolt-orbit 8s ease-in-out infinite;
}
.scene-anchor {
  fill: none;
  stroke: #dce6cf;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.82;
  transform-origin: 200px 400px;
  animation: anchor-drift 7s ease-in-out infinite;
}
@keyframes scene-glow-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.08);
  }
}
@keyframes scene-sun-pulse {
  0%,
  100% {
    transform: scale(0.96);
  }
  50% {
    transform: scale(1.06);
  }
}
@keyframes orbit-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes orbit-spin-reverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}
@keyframes bolt-orbit {
  0%,
  100% {
    transform: rotate(-4deg) translateY(0);
  }
  50% {
    transform: rotate(7deg) translateY(-10px);
  }
}
@keyframes anchor-drift {
  0%,
  100% {
    transform: rotate(-5deg) translateY(0);
  }
  50% {
    transform: rotate(5deg) translateY(8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .scene-glow,
  .scene-sun,
  .orbital-scene .orbit,
  .scene-bolt,
  .scene-anchor {
    animation: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.slogan {
  font:
    500 0.78rem/1.2 "DM Mono",
    monospace;
  letter-spacing: 0.05em;
  margin: -8px 0 20px;
  color: var(--ink);
}
.hero h1[data-typing-target]::after {
  content: "";
  display: inline-block;
  width: 0.07em;
  height: 0.8em;
  margin-left: 0.08em;
  vertical-align: -0.06em;
  background: var(--accent);
  animation: typing-cursor 0.85s steps(1) infinite;
}
@keyframes typing-cursor {
  50% {
    opacity: 0;
  }
}
.theme-icon {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
  width: 1.4em;
  text-align: center;
}
.brand-image {
  width: auto;
  height: 29px;
  object-fit: contain;
}
.brand-image[hidden],
.brand-logo[hidden],
.brand-text[hidden] {
  display: none;
}
.button[data-whatsapp],
.nav-cta {
  background: var(--accent);
  color: #17211f;
  border-color: var(--accent);
}
.button[data-whatsapp]:hover,
.nav-cta:hover {
  background: color-mix(in srgb, var(--accent) 82%, white);
}
.contact .button-large {
  justify-content: center;
  gap: 12px;
}
.wa-icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: -0.2em;
}
.service-card a[data-whatsapp] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.whatsapp-float {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #062b13;
  box-shadow: 0 12px 28px #062b1340;
  text-decoration: none;
  transition:
    transform 0.2s,
    background 0.2s;
}
.whatsapp-float:hover {
  background: #42e47b;
  transform: translateY(-4px) scale(1.04);
}
.whatsapp-float .wa-icon {
  width: 31px;
  height: 31px;
}
.whatsapp-float span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.whatsapp-float[hidden] {
  display: none;
}
.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  padding-block: clamp(42px, 7vw, 90px);
}
.hero h1[data-typing-target] {
  min-height: 1.86em;
}
.hero-art {
  position: absolute;
  z-index: 0;
  top: 0;
  right: -8%;
  bottom: 0;
  left: 38%;
  width: auto;
  height: auto;
  border-radius: 0;
  opacity: 0.2;
  background: transparent;
  transform: translateZ(0);
  animation: hero-art-float 12s ease-in-out infinite;
}
.hero-grid {
  position: relative;
  display: block;
  width: 100%;
  z-index: 1;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero-art::after {
  opacity: 0.28;
}
.hero-art .sun {
  opacity: 0.5;
  animation: hero-sun-pulse 8s ease-in-out infinite;
}
.hero-art .orbit {
  opacity: 0.5;
  animation: hero-orbit-drift 14s ease-in-out infinite alternate;
}
.hero-art .orbit-two {
  animation-delay: -4s;
}
.hero-art .orbit-three {
  width: 390px;
  height: 240px;
  right: -18%;
  top: 37%;
  transform: rotate(24deg);
  animation-delay: -8s;
}
@keyframes hero-art-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.015);
  }
}
@keyframes hero-sun-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.68;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.9;
  }
}
@keyframes hero-orbit-drift {
  from {
    margin-left: -8px;
  }
  to {
    margin-left: 12px;
  }
}
@media (max-width: 480px) {
  .hero-art {
    left: 0;
    right: 0;
    opacity: 0.14;
  }
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }
}
.brand-logo {
  display: block;
  width: 132px;
  height: 25px;
  background-color: var(--brand-color, var(--accent));
  -webkit-mask-image: var(--brand-logo-image, url("assets/logo.svg"));
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-image: var(--brand-logo-image, url("assets/logo.svg"));
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
}
.brand-logo[hidden] {
  display: none;
}
.footer-grid .brand-logo {
  width: 150px;
  height: 29px;
}

/* Hero: rayo energético */
.hero-art {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 510px;
  background:
    radial-gradient(circle at 65% 34%, #f4c94d22 0 9%, transparent 25%),
    linear-gradient(145deg, #101917 0%, #172720 52%, #273c32 100%);
  border: 1px solid #ffffff12;
  border-radius: 32px;
  box-shadow:
    inset 0 1px 0 #ffffff14,
    0 24px 55px #17211f24;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid #f4c94d22;
  border-radius: 50%;
  transform: rotate(-25deg) scaleX(1.35);
}
.hero-art::after {
  display: none;
}
.hero-bolt {
  position: relative;
  z-index: 1;
  width: clamp(170px, 42%, 290px);
  height: auto;
  overflow: visible;
  color: var(--accent);
  filter: drop-shadow(12px 18px 0 #a77b12) drop-shadow(0 0 22px #f4c94d99);
  animation: bolt-float 4.5s ease-in-out infinite;
}
.hero-bolt path {
  fill: currentColor;
  stroke: #ffe38a;
  stroke-width: 3;
  stroke-linejoin: round;
}
.bolt-glow {
  position: absolute;
  width: clamp(190px, 48%, 330px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.24;
  filter: blur(34px);
  animation: bolt-glow 2.8s ease-in-out infinite;
}
@keyframes bolt-float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}
@keyframes bolt-glow {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.12;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.24;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bolt,
  .bolt-glow {
    animation: none;
  }
}

/* Restablece el hero a la composición original de dos columnas. */
.hero {
  min-height: unset;
  display: block;
  padding-top: clamp(70px, 9vw, 125px);
  padding-bottom: clamp(76px, 10vw, 140px);
}
.hero-grid {
  display: grid;
  width: min(1160px, calc(100% - 40px));
  position: static;
  z-index: auto;
  grid-template-columns: 1.03fr 0.97fr;
  gap: clamp(35px, 8vw, 110px);
  align-items: center;
}
.hero-copy {
  position: static;
  z-index: auto;
  max-width: none;
}
.hero-art {
  position: relative;
  inset: auto;
  width: auto;
  height: 510px;
  border-radius: 50% 50% 8% 8%;
  opacity: 1;
  background: #dce6cf;
  animation: none;
}
.hero-art::after {
  opacity: 1;
}
.hero-art .sun,
.hero-art .orbit {
  animation: none;
  opacity: 1;
}
@media (max-width: 800px) {
  .hero {
    min-height: unset;
  }
  .hero-grid {
    display: grid;
    width: min(100% - 32px, 620px);
    grid-template-columns: 1fr;
  }
  .hero-art {
    height: 350px;
  }
}
@media (max-width: 480px) {
  .hero-art {
    height: 300px;
  }
}

/* Hero fusionado: bloque único al final para respetar toda la cascada anterior. */
.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  padding-block: clamp(42px, 7vw, 90px);
}
.hero-grid {
  width: min(1160px, calc(100% - 40px));
  position: relative;
  z-index: 1;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 700px;
}
.hero h1[data-typing-target] {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  min-height: 1em;
}
.hero-grid.hero-grid-final {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: clamp(32px, 6vw, 88px);
}
.hero-fusion {
  position: relative;
  min-height: 510px;
  display: grid;
  place-items: center;
  overflow: visible;
}
.hero-fusion svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.fusion-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .2;
  filter: blur(50px);
  animation: fusion-glow 5s ease-in-out infinite;
}
.fusion-orbit {
  fill: none;
  stroke: #8b9c91;
  stroke-width: 1.5;
  transform-origin: 300px 300px;
}
.fusion-orbit-main { animation: fusion-spin 20s linear infinite; }
.fusion-orbit-secondary { stroke: #f4c94d99; animation: fusion-spin-reverse 28s linear infinite; }
.fusion-sun {
  filter: drop-shadow(0 0 18px #f4c94d99);
  transform-origin: 300px 300px;
  animation: fusion-sun-pulse 5s ease-in-out infinite;
}
.fusion-sun-ring {
  fill: none;
  stroke: #f4c94d55;
  stroke-width: 12;
  animation: fusion-sun-pulse 5s ease-in-out infinite;
}
.fusion-panel {
  fill: none;
  stroke: #d8ad32;
  stroke-width: 5;
  filter: drop-shadow(12px 15px 0 #9a7517);
  transform-origin: 190px 444px;
  animation: fusion-panel-float 6s ease-in-out infinite;
}
.fusion-panel path:not(.fusion-panel-stand) { stroke: #76a69a88; stroke-width: 2; }
.fusion-panel-stand { stroke: #d8ad32; stroke-width: 5; }
.fusion-bolt {
  transform-origin: 420px 170px;
  filter: drop-shadow(9px 12px 0 #9d7310) drop-shadow(0 0 12px #f4c94d88);
  animation: fusion-bolt-float 4s ease-in-out infinite;
}
.fusion-bolt-depth { fill: #9d7310; }
.fusion-bolt-face { fill: var(--accent); stroke: #ffe38a; stroke-width: 3; stroke-linejoin: round; }
.fusion-anchor { fill: none; stroke: #9ccbc2; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; animation: none; }
.fusion-point { fill: var(--accent); stroke: #101917; stroke-width: 4; animation: fusion-point-pulse 2.5s ease-in-out infinite; }
.fusion-point-two { animation-delay: -1.2s; }
@keyframes fusion-spin { to { transform: rotate(360deg); } }
@keyframes fusion-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes fusion-sun-pulse { 50% { transform: scale(1.06); } }
@keyframes fusion-glow { 50% { transform: scale(1.15); opacity: .3; } }
@keyframes fusion-panel-float { 50% { transform: translateY(-9px) rotate(-2deg); } }
@keyframes fusion-bolt-float { 50% { transform: translateY(-12px) rotate(5deg); } }
@keyframes fusion-point-pulse { 50% { opacity: .45; transform: scale(1.35); } }
@media (max-width: 800px) {
  .hero-grid.hero-grid-final {
    grid-template-columns: 1fr !important;
  }
  .hero-fusion {
    min-height: 360px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fusion-glow,
  .fusion-orbit,
  .fusion-sun,
  .fusion-sun-ring,
  .fusion-panel,
  .fusion-bolt,
  .fusion-anchor,
  .fusion-point {
    animation: none;
  }
}
