/* =========================================================
   VoltFlux — Estilos
   Colores tomados del logo
   ========================================================= */
:root {
  --azul: #4a6378;
  --azul-osc: #2f4252;
  --gris: #3b3b3d;
  --gris-med: #6b6f74;
  --gris-cl: #eef0f2;
  --blanco: #ffffff;
  --dorado: #e8a317;
  --dorado-osc: #c98a0c;
  --wsp: #25d366;
  --radio: 14px;
  --sombra: 0 10px 30px rgba(20, 30, 40, .10);
  --max: 1180px;
  --fuente: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fuente);
  color: var(--gris);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--gris); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--gris { background: var(--gris-cl); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section__head p { color: var(--gris-med); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dorado-osc); margin-bottom: .6em;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn--wsp { background: var(--wsp); color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.btn--wsp:hover { background: #1ebe5a; }
.btn--dorado { background: var(--dorado); color: #1f1f1f; }
.btn--dorado:hover { background: var(--dorado-osc); }
.btn--borde { border-color: currentColor; color: inherit; background: transparent; }
.btn--azul { background: var(--azul); color: #fff; }
.btn--azul:hover { background: var(--azul-osc); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); border-bottom: 1px solid #e3e6e9;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand span { font-weight: 800; font-size: 1.3rem; color: var(--gris); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--gris); }
.nav a:hover, .nav a.activo { color: var(--azul); }
.nav .btn { padding: .65em 1.2em; font-size: .9rem; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--gris);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(31, 44, 56, .94) 0%, rgba(47, 66, 82, .86) 55%, rgba(74, 99, 120, .70) 100%),
    var(--hero-img, none) center / cover no-repeat, var(--azul-osc);
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -40px; width: 320px; height: 120%;
  background: var(--dorado); opacity: .9; transform: skewX(-18deg); clip-path: inset(0 82% 0 0);
}
.hero__inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px;
  align-items: center; padding: clamp(56px, 9vw, 110px) 0;
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--dorado); }
.hero__lead { font-size: 1.15rem; opacity: .92; max-width: 560px; margin-bottom: 1.6em; }
.hero__checks { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; gap: 8px; }
.hero__checks li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.hero__checks li::before {
  content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--dorado); color: #1f1f1f; font-size: .8rem; font-weight: 800; flex: none;
}
.hero__logo {
  justify-self: center; width: min(340px, 80%); aspect-ratio: 1; border-radius: 50%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35));
}
.hero__logo img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Tarjetas de servicios ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radio); padding: 30px; box-shadow: var(--sombra);
  border-top: 4px solid var(--azul); display: flex; flex-direction: column;
}
.card--dorado { border-top-color: var(--dorado); }
.card__icon {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gris-cl); color: var(--azul); margin-bottom: 18px;
}
.card__icon svg { width: 30px; height: 30px; }
.card ul { padding-left: 1.1em; margin: 0 0 1.4em; color: var(--gris-med); }
.card ul li { margin-bottom: .3em; }
.card .btn { margin-top: auto; align-self: flex-start; }

.big-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.big-card {
  position: relative; border-radius: 20px; overflow: hidden; color: #fff; padding: 40px;
  min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none; transition: transform .2s ease;
}
.big-card:hover { transform: translateY(-4px); }
.big-card--elec { background: linear-gradient(160deg, var(--azul) 0%, var(--azul-osc) 100%); }
.big-card--aire { background: linear-gradient(160deg, #555a60 0%, #2c2e31 100%); }
.big-card h3 { color: #fff; font-size: 1.7rem; }
.big-card p { opacity: .9; }
.big-card__icon { position: absolute; top: 30px; right: 30px; width: 90px; height: 90px; opacity: .25; }
.big-card__link { font-weight: 700; color: var(--dorado); }

/* ---------- Beneficios ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.feature { text-align: center; padding: 10px; }
.feature__icon {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: var(--dorado); color: #1f1f1f;
}
.feature__icon svg { width: 30px; height: 30px; }
.feature p { color: var(--gris-med); font-size: .95rem; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: paso; }
.step { background: #fff; border-radius: var(--radio); padding: 28px; box-shadow: var(--sombra); position: relative; }
.step::before {
  counter-increment: paso; content: counter(paso); display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--azul); color: #fff;
  font-weight: 800; margin-bottom: 14px;
}
.step p { color: var(--gris-med); margin: 0; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery__item {
  position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; cursor: zoom-in;
  background: #dfe3e7; border: 0; padding: 0;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:focus-visible { outline: 3px solid var(--dorado); outline-offset: 3px; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 14, 18, .92);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.lightbox.abierto { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox__cerrar { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__contador { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; opacity: .8; font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 12px; box-shadow: var(--sombra); padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex;
  justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--azul); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--gris-med); padding-bottom: 18px; margin: 0; }

/* ---------- Contacto ---------- */
.contacto { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contacto__datos { display: grid; gap: 14px; }
.dato {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff;
  border-radius: 12px; box-shadow: var(--sombra); text-decoration: none; transition: transform .15s;
}
.dato:hover { transform: translateX(4px); }
.dato__icon {
  width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--azul); color: #fff;
}
.dato__icon svg { width: 22px; height: 22px; }
.dato small { display: block; color: var(--gris-med); font-size: .8rem; }
.dato strong { font-size: 1rem; word-break: break-word; }

.form { background: #fff; padding: 32px; border-radius: var(--radio); box-shadow: var(--sombra); }
.form h3 { margin-bottom: .3em; }
.form > p { color: var(--gris-med); font-size: .95rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 14px; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: .8em 1em; font: inherit; font-weight: 400;
  border: 1.5px solid #d3d8dd; border-radius: 10px; background: #fafbfc; color: var(--gris);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--azul); background: #fff; }
.form textarea { min-height: 110px; resize: vertical; }
.form .btn { width: 100%; }
.form__nota { font-size: .8rem; color: var(--gris-med); text-align: center; margin: 10px 0 0; }

/* ---------- Banda CTA ---------- */
.cta-band { background: var(--azul-osc); color: #fff; padding: 48px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { margin: .3em 0 0; opacity: .85; }

/* ---------- Footer ---------- */
.footer { background: #1f2329; color: #c5cbd2; padding: 56px 0 24px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--dorado); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer__brand img { width: 56px; height: 56px; }
.footer__brand span { color: #fff; font-weight: 800; font-size: 1.3rem; }
.redes { display: flex; gap: 10px; margin-top: 14px; }
.redes a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s;
}
.redes a:hover { background: var(--dorado); color: #1f1f1f; }
.redes svg { width: 20px; height: 20px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; text-align: center; font-size: .85rem; }

/* ---------- WhatsApp flotante + barra móvil ---------- */
.floats {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.float-btn {
  width: 60px; height: 60px; border-radius: 50%; color: #fff; display: grid; place-items: center;
  transition: transform .15s ease;
}
.float-btn:hover { transform: scale(1.08); }
.float-btn svg { width: 32px; height: 32px; }
.float-btn--ig {
  width: 54px; height: 54px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 10px 25px rgba(214, 36, 159, .4);
}
.float-btn--ig svg { width: 28px; height: 28px; }
.wsp-float { background: var(--wsp); box-shadow: 0 10px 25px rgba(37, 211, 102, .45); animation: pulso 2.4s infinite; }
@keyframes pulso {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.mobile-bar { display: none; }

/* ---------- Página gracias ---------- */
.gracias { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 16px; }
.gracias__icon {
  width: 90px; height: 90px; border-radius: 50%; background: var(--wsp); color: #fff;
  display: grid; place-items: center; margin: 0 auto 20px; font-size: 2.6rem; font-weight: 800;
}

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wsp-float { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__logo { display: none; }
  .hero::after { display: none; }
  .big-cards, .contacto { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 16px 18px; border-bottom: 1px solid #e3e6e9;
    box-shadow: 0 14px 24px rgba(0, 0, 0, .08); display: none;
  }
  .nav.abierto { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid #f0f2f4; }
  .nav .btn { margin-top: 12px; border: 0; padding: .9em; }

  /* Barra fija inferior en celulares: llamar + WhatsApp */
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .12);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 8px;
    font-weight: 700; text-decoration: none; color: #fff;
  }
  .mobile-bar svg { width: 20px; height: 20px; }
  .mobile-bar__tel { background: var(--azul); }
  .mobile-bar__wsp { background: var(--wsp); }
  .wsp-float { display: none; }
  .floats { right: 16px; bottom: 74px; }
  body { padding-bottom: 58px; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .big-card { padding: 28px; min-height: 300px; }
  .btn-row .btn { width: 100%; }
  .brand span { font-size: 1.1rem; }
  .brand img { width: 44px; height: 44px; }
}
