/* =====================================================
   CLIMAVOLT — style.css
   Paleta: Azul marino #1a2957 | Ámbar #f5a623 | Azul eléctrico #0096d6
   ===================================================== */

/* ----- Google Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&family=Bebas+Neue&display=swap');

/* ----- Reset & Variables ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1a2957;
  --navy-dark: #0d1b3e;
  --navy-mid: #243372;
  --amber: #f5a623;
  --amber-dark: #e08e00;
  --blue: #0096d6;
  --blue-light: #00b4f0;
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #eef0f5;
  --gray-200: #d8dce8;
  --gray-400: #8b93a8;
  --gray-600: #4a5168;
  --gray-800: #1e2330;
  --gradient-hero: linear-gradient(135deg, #0d1b3e 0%, #1a2957 55%, #0d3d6b 100%);
  --gradient-cta: linear-gradient(135deg, #f5a623 0%, #e08e00 100%);
  --gradient-blue: linear-gradient(135deg, #0096d6 0%, #0067a0 100%);
  --shadow-sm: 0 2px 8px rgba(26, 41, 87, .08);
  --shadow-md: 0 8px 32px rgba(26, 41, 87, .14);
  --shadow-lg: 0 20px 60px rgba(26, 41, 87, .20);
  --shadow-xl: 0 30px 80px rgba(26, 41, 87, .28);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --transition: all .3s cubic-bezier(.4, 0, .2, 1);
  --font-main: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ----- Scrollbar ----- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-mid);
  border-radius: 99px;
}

/* ===================== SCROLL REVEAL ===================== */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal {
  transform: translateY(36px);
}

.reveal-left {
  transform: translateX(-48px);
}

.reveal-right {
  transform: translateX(48px);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* ===================== UTILITIES ===================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-main);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 20px;
}

.section-title span {
  color: var(--blue);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 600px;
  line-height: 1.75;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 99px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-cta);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(245, 166, 35, .35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(245, 166, 35, .5);
}

.btn-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .5);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, .12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(37, 211, 102, .5);
}

.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
  font-family: var(--font-main);
}

/* ===================== HEADER / NAV ===================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  padding: 0;
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.10);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 68px;
  width: auto;
  transition: var(--transition);
}

.nav-logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-family: var(--font-main);
  font-size: 1.10rem;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform .3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-cta .btn {
  padding: 10px 22px;
  font-size: .9rem;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: .99em;
  opacity: .95;
  transition: var(--transition);
}

.nav-phone:hover {
  opacity: 1;
  color: var(--blue);
}

.nav-phone svg {
  flex-shrink: 0;
  stroke: var(--blue);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
  background: transparent;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  transition: var(--transition);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--blue);
  padding-left: 8px;
}

.nav-mobile .btn {
  margin-top: 16px;
  justify-content: center;
}

/* ===================== HERO SLIDER ===================== */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #081226;
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(.4, 0, .2, 1), visibility 1s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 7s ease-out;
}

.hero-slide.active .hero-slide-img {
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(13, 27, 62, 0.92) 0%,
      rgba(13, 27, 62, 0.65) 35%,
      rgba(13, 27, 62, 0.0) 65%);
  pointer-events: none;
  z-index: 2;
}

.hero-particles {
  display: none;
}

.hero-glow {
  display: none;
}

/* Hero Navigation Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.75;
}

.hero-arrow:hover {
  background: var(--white);
  color: var(--navy);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-arrow-prev {
  left: 24px;
}

.hero-arrow-next {
  right: 24px;
}

@media (max-width: 768px) {
  .hero-arrow {
    display: none;
  }
}

/* Hero Progress Indicator Bars / Dots (Murcia Parapente style) */
.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-dot {
  width: 32px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  padding: 0;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.75);
}

.hero-dot.active {
  width: 52px;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(0, 150, 214, 0.6);
}


.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 120px 0 80px;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 27, 62, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 166, 35, .4);
  border-radius: 99px;
  padding: 8px 18px;
  margin-bottom: 28px;
  font-family: var(--font-main);
  font-size: .82rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: fadeInDown .8s ease both;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: .6;
  }
}

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--white);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  margin-bottom: 24px;
  animation: fadeInUp .8s .2s ease both;
  -webkit-text-stroke: 1px #0d1b3e;
  paint-order: stroke fill;
}

.hero-title .highlight {
  position: relative;
  display: inline-flex;
}

.hero-title .highlight span {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -0.5px;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--black);
  paint-order: stroke fill;
  text-shadow: none;
  opacity: 0.85;
  animation: encenderParpadeoBorde 2.2s ease-in-out forwards;
  animation-delay: calc(0.14s * var(--i));
}

.hero-title .highlight span.on {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -0.5px;
  color: #ffffff;
  -webkit-text-stroke: 1.5px var(--white);
  paint-order: stroke fill;
  text-shadow:
    0 0 5px rgba(245, 166, 35, 0.9),
    0 0 18px rgba(245, 166, 35, 0.7);
  opacity: 1;
  animation: none;
}

@keyframes encenderParpadeoBorde {

  /* Pausa inicial: transparente con borde */
  0%,
  15% {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--amber);
    paint-order: stroke fill;
    text-shadow: none;
    opacity: 0.85;
  }

  /* Un único chispazo rápido */
  25% {
    color: rgba(245, 166, 35, 0.5);
    -webkit-text-stroke: 1.5px var(--white);
    paint-order: stroke fill;
    text-shadow: 0 0 12px rgba(245, 166, 35, 0.9);
    opacity: 1;
  }

  /* Encendido total definitivo */
  25%,
  100% {
    color: #ffffff;
    -webkit-text-stroke: 1.5px var(--amber);
    paint-order: stroke fill;
    text-shadow:
      0 0 5px rgba(245, 166, 35, 0.9),
      0 0 18px rgba(245, 166, 35, 0.7),
      0 0 32px rgba(245, 166, 35, 0.4);
    opacity: 1;
  }
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
  opacity: 0;
  box-shadow: 0 0 12px var(--amber);
  animation: lineGlowOnce 1s ease-in-out 0.4s forwards;
}

@keyframes lineGlowOnce {
  0% {
    opacity: 0;
    box-shadow: none;
  }

  100% {
    opacity: 1;
    box-shadow: 0 0 14px rgba(245, 166, 35, 0.9);
  }
}

.hero-sub {
  font-size: 1.15rem;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.95);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 40px;
  animation: fadeInUp .8s .35s ease both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
  animation: fadeInUp .8s .5s ease both;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 24px 32px;
  background: rgba(13, 27, 62, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .15);
  animation: fadeInUp .8s .65s ease both;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-stat-item {}

.hero-stat-num {
  font-family: var(--font-main);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-stat-label {
  font-size: .85rem;
  color: rgba(255, 255, 255, .9);
  font-weight: 500;
  letter-spacing: .03em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.hero-image-side {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 48%;
  max-width: 640px;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  opacity: .9;
  display: none;
}

/* ===================== SERVICES STRIP ===================== */
#services-strip {
  background: var(--white);
  padding: 0;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 36px;
  border-right: 1px solid var(--gray-200);
  transition: var(--transition);
  cursor: default;
}

.strip-item:last-child {
  border-right: none;
}

.strip-item:hover {
  background: var(--gray-50);
}

.strip-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.6rem;
}

.strip-icon.solar {
  background: rgba(245, 166, 35, .15);
}

.strip-icon.clima {
  background: rgba(0, 150, 214, .15);
}

.strip-icon.electric {
  background: rgba(72, 209, 146, .15);
}

.strip-text h3 {
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.strip-text p {
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ===================== ABOUT (NOSOTROS) ===================== */
#nosotros {
  padding: 100px 0;
  background: var(--gray-50);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-main {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  height: 500px;
}

.about-img-badge {
  position: absolute;
  bottom: 28px;
  right: -24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
  min-width: 140px;
}

.about-img-badge strong {
  display: block;
  font-family: var(--font-main);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}

.about-img-badge span {
  font-size: .82rem;
  color: var(--gray-600);
  font-weight: 500;
}

.about-content {}

.about-values {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-value {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 3px solid var(--amber);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.about-value:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.about-value-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--gray-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-value-text h4 {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.about-value-text p {
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ===================== SERVICES (DETALLE) ===================== */
#servicios {
  padding: 100px 0;
  background: var(--white);
}

.services-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.services-header .section-label {
  justify-content: center;
}

.services-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-card-img {
  transform: scale(1.04);
}

.service-card-img-wrap {
  overflow: hidden;
}

.service-card-body {
  padding: 28px;
}

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.service-card h3 {
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 22px;
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.service-card ul li {
  font-size: .88rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card ul li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: .9rem;
  color: var(--blue);
  transition: var(--transition);
}

.service-card-link:hover {
  gap: 12px;
}

.service-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

/* ===================== CTA BANNER ===================== */
#cta-banner {
  background: var(--gradient-hero);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

#cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
}

.cta-text h2 span {
  color: var(--amber);
}

.cta-text p {
  color: rgba(255, 255, 255, .7);
  font-size: 1.05rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  flex-shrink: 0;
}

/* ===================== CASOS DE ÉXITO / BLOG ===================== */
#blog {
  padding: 100px 0;
  background: var(--gray-50);
}

.blog-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.blog-header .section-label {
  justify-content: center;
}

.blog-header .section-subtitle {
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.blog-card-img-wrap {
  overflow: hidden;
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .4s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.06);
}

.blog-card-body {
  padding: 28px;
}

.blog-tag {
  background: var(--gray-100);
  color: var(--navy);
}

.blog-tag.solar {
  background: rgba(245, 166, 35, .12);
  color: var(--amber-dark);
}

.blog-tag.clima {
  background: rgba(0, 150, 214, .1);
  color: var(--blue);
}

.blog-tag.electric {
  background: rgba(72, 209, 146, .1);
  color: #059669;
}

.blog-card h3 {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin: 14px 0 10px;
  line-height: 1.35;
}

.blog-card p {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 20px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--gray-400);
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===================== TESTIMONIOS ===================== */
#testimonios {
  padding: 100px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

#testimonios::before {
  content: '"';
  position: absolute;
  top: -40px;
  right: 5%;
  font-size: 400px;
  font-family: var(--font-main);
  font-weight: 900;
  color: rgba(255, 255, 255, .03);
  line-height: 1;
  pointer-events: none;
}

.testimonios-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.testimonios-header .section-label {
  justify-content: center;
}

.testimonios-header .section-title {
  color: var(--white);
}

.testimonios-header .section-subtitle {
  color: rgba(255, 255, 255, .6);
  margin: 0 auto;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonio-card {
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.testimonio-card:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateY(-4px);
}

.stars {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
}

.star {
  color: var(--amber);
  font-size: 1.1rem;
}

.testimonio-card blockquote {
  font-size: .97rem;
  color: rgba(255, 255, 255, .82);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--white);
  font-size: .95rem;
}

.author-info span {
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
}

/* ===================== CONTACT ===================== */
#contacto {
  padding: 100px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.contact-info h2 span {
  color: var(--blue);
}

.contact-info>p {
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  text-decoration: none;
}

.contact-channel:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.channel-icon.phone {
  background: rgba(0, 150, 214, .1);
}

.channel-icon.whatsapp {
  background: rgba(37, 211, 102, .1);
}

.channel-icon.email {
  background: rgba(245, 166, 35, .1);
}

.channel-text strong {
  display: block;
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--navy);
  font-size: .95rem;
}

.channel-text span {
  font-size: .85rem;
  color: var(--gray-400);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: 44px;
  border: 1px solid var(--gray-100);
}

.contact-form-wrap h3 {
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.contact-form-wrap>p {
  font-size: .9rem;
  color: var(--gray-400);
  margin-bottom: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: var(--font-main);
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-600);
  letter-spacing: .02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 150, 214, .12);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  margin-top: 8px;
  grid-column: 1 / -1;
}

.form-submit .btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
}

.form-note {
  margin-top: 14px;
  font-size: .8rem;
  color: var(--gray-400);
  text-align: center;
  line-height: 1.5;
}

/* ===================== FOOTER ===================== */
#footer {
  background: var(--navy-dark);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-brand img {
  height: 56px;
  width: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .3));
}

.footer-brand p {
  font-size: .9rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .7);
  font-size: 1rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-main);
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 24px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: .88rem;
  color: rgba(255, 255, 255, .5);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: var(--amber);
  gap: 10px;
}

.footer-col ul li a::before {
  content: '›';
  font-size: 1rem;
  opacity: .5;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-contact-item span:first-child {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a,
.footer-contact-item span:last-child {
  font-size: .88rem;
  color: rgba(255, 255, 255, .5);
  transition: var(--transition);
  line-height: 1.5;
}

.footer-contact-item a:hover {
  color: var(--amber);
}

.footer-bottom {
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: .83rem;
  color: rgba(255, 255, 255, .35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, .35);
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--amber);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

/* ===================== FLOATING WHATSAPP ===================== */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, .45);
  transition: var(--transition);
  animation: wiggle 4s ease 3s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 40px rgba(37, 211, 102, .6);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

@keyframes wiggle {

  0%,
  90%,
  100% {
    transform: rotate(0);
  }

  92% {
    transform: rotate(-12deg);
  }

  96% {
    transform: rotate(12deg);
  }
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-img-badge {
    right: 12px;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonios-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .strip-grid {
    grid-template-columns: 1fr;
  }

  .strip-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .strip-item:last-child {
    border-bottom: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .testimonios-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-buttons {
    justify-content: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full {
    grid-column: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-stats {
    gap: 28px;
  }

  .hero-stat-num {
    font-size: 1.9rem;
  }

  .contact-form-wrap {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    justify-content: center;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
}