/* ============================================
   IGLOO — Global Stylesheet v3.0
   Diseno: blanco/premium, mobile-first
   Paleta: #003f63 azul · #ffc11c amarillo · #169F4D ahorro
   Tipografia: Poppins (headings) + Inter (cuerpo)
   igloo.com.mx
============================================ */

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

/* ---------- Variables ---------- */
:root {
  --azul:       #003f63;
  --azul-dk:    #001e32;
  --amarillo:   #ffc11c;
  --amarillo-dk:#e6ae18;
  --blanco:     #ffffff;
  --gris-lt:    #f4f7fa;
  --gris-txt:   #4a5568;
  --gris-borde: #e2e8f0;
  --ahorro:     #169F4D;
  --fh:         'Poppins', sans-serif;
  --fb:         'Inter', sans-serif;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow-sm:  0 2px 8px rgba(0,63,99,.08);
  --shadow:     0 4px 24px rgba(0,63,99,.12);
  --shadow-lg:  0 8px 40px rgba(0,63,99,.16);
  --ease:       cubic-bezier(.4,0,.2,1);
  --transition: 0.25s var(--ease);
}

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

body {
  font-family: var(--fb);
  background: var(--blanco);
  color: var(--gris-txt);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ---------- Tipografia ---------- */
h1 {
  font-family: var(--fh);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--blanco);
}
h2 {
  font-family: var(--fh);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--azul);
}
h3 {
  font-family: var(--fh);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--azul);
}
h4 {
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 600;
  color: var(--azul);
}
p { color: var(--gris-txt); font-size: 1rem; }

.hl   { color: var(--amarillo); }
.hl-g { color: var(--ahorro); }

/* ---------- Layout ---------- */
.container {
  width: 92%;
  max-width: 1160px;
  margin: 0 auto;
}
section { padding: 80px 0; }

/* ---------- Tag / label de seccion ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fh);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--azul);
  background: rgba(0,63,99,.07);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.tag-amarillo {
  color: var(--azul-dk);
  background: rgba(255,193,28,.2);
}
.tag-white {
  color: var(--blanco);
  background: rgba(255,255,255,.15);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fh);
  font-size: .9rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-amarillo {
  background: var(--amarillo);
  color: var(--azul-dk);
  border-color: var(--amarillo);
}
.btn-amarillo:hover {
  background: var(--amarillo-dk);
  border-color: var(--amarillo-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,193,28,.4);
}
.btn-azul {
  background: var(--azul);
  color: var(--blanco);
  border-color: var(--azul);
}
.btn-azul:hover {
  background: var(--azul-dk);
  border-color: var(--azul-dk);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--blanco);
}
.btn-outline-azul {
  background: transparent;
  color: var(--azul);
  border-color: var(--azul);
}
.btn-outline-azul:hover {
  background: var(--azul);
  color: var(--blanco);
}
.btn-sm {
  font-size: .8rem;
  padding: 9px 18px;
}
.btn-lg {
  font-size: 1rem;
  padding: 16px 32px;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--blanco);
  border-bottom: 1px solid var(--gris-borde);
  transition: box-shadow var(--transition);
  height: 70px;
  display: flex;
  align-items: center;
}
.navbar.scrolled {
  box-shadow: var(--shadow);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  flex-shrink: 0;
}
.nav-logo img {
  height: 38px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--fh);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--azul);
  letter-spacing: -.02em;
}
.nav-logo-text span { color: var(--amarillo); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-family: var(--fb);
  font-size: .88rem;
  font-weight: 500;
  color: var(--gris-txt);
  padding: 6px 12px;
  border-radius: 6px;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--azul);
  background: rgba(0,63,99,.06);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-tel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fb);
  font-size: .85rem;
  font-weight: 500;
  color: var(--azul);
  transition: color var(--transition);
}
.nav-tel:hover { color: var(--amarillo-dk); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--azul);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--blanco);
  z-index: 999;
  flex-direction: column;
  padding: 24px;
  gap: 4px;
  border-top: 1px solid var(--gris-borde);
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--fb);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gris-txt);
  padding: 14px 16px;
  border-radius: var(--radius);
  border-bottom: 1px solid var(--gris-borde);
  transition: var(--transition);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--azul); background: var(--gris-lt); }
.mobile-nav .btn {
  margin-top: 16px;
  justify-content: center;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 70px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg .ph-img {
  width: 100%;
  height: 100%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,31,50,.55);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
}
.hero-inner {
  max-width: 700px;
}
.hero-inner h1 {
  margin-bottom: 20px;
}
.hero-inner .subheadline {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Trust bar */
.trust-bar {
  position: relative;
  z-index: 2;
  background: var(--azul-dk);
  padding: 16px 0;
}
.trust-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  font-weight: 500;
}
.trust-item svg { color: var(--amarillo); flex-shrink: 0; }
.trust-sep {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,.2);
}

/* ---------- SECCION HEADER COMUN ---------- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-header p {
  margin-top: 12px;
  font-size: 1.05rem;
}

/* ---------- SERVICIOS ---------- */
.servicios { background: var(--blanco); }

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.servicio-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--gris-borde);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.servicio-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-img {
  width: 100%;
  aspect-ratio: 800/480;
  overflow: hidden;
  background: var(--gris-lt);
}
.card-img .ph-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.servicio-card:hover .card-img .ph-img { transform: scale(1.04); }

.card-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,193,28,.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--azul);
}
.card-body h3 { margin-bottom: 12px; }
.card-body p  { margin-bottom: 20px; }

.card-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.card-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--azul);
}
.card-check svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.card-check.ahorro { color: var(--ahorro); }

.card-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  flex-wrap: wrap;
}
.link-secondary {
  font-size: .88rem;
  font-weight: 600;
  color: var(--azul);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition), color var(--transition);
}
.link-secondary:hover { color: var(--amarillo-dk); gap: 8px; }

/* ---------- DIFERENCIA / STATS ---------- */
.diferencia { background: var(--gris-lt); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--blanco);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gris-borde);
}
.stat-num {
  font-family: var(--fh);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--azul);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: .9rem;
  color: var(--gris-txt);
}

.razones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.razon-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.razon-icon {
  width: 44px;
  height: 44px;
  background: rgba(0,63,99,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azul);
}
.razon-item h4 { margin: 0; }
.razon-item p { font-size: .9rem; }

/* ---------- PROCESO ---------- */
.proceso { background: var(--blanco); }

.proceso-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.proceso-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(10% + 14px);
  right: calc(10% + 14px);
  height: 2px;
  background: var(--gris-borde);
  z-index: 0;
}

.paso {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}
.paso-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--blanco);
  font-family: var(--fh);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
  border: 3px solid var(--blanco);
  box-shadow: var(--shadow-sm);
}
.paso-icon {
  width: 36px;
  height: 36px;
  color: var(--azul);
  margin-bottom: 12px;
}
.paso h4 { margin-bottom: 8px; font-size: .95rem; }
.paso p  { font-size: .82rem; line-height: 1.5; }

/* Ultimo paso con foto */
.paso-final-img {
  margin-top: 40px;
}
.paso-final-img .ph-img {
  border-radius: var(--radius);
  width: 100%;
  height: 140px;
  object-fit: cover;
  margin-top: 8px;
}

/* ---------- MARCAS ---------- */
.marcas { background: var(--gris-lt); }

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}
.logo-item {
  padding: 14px 24px;
  background: var(--blanco);
  border-radius: var(--radius);
  border: 1px solid var(--gris-borde);
  font-family: var(--fh);
  font-size: .85rem;
  font-weight: 700;
  color: var(--azul);
  letter-spacing: .04em;
  transition: var(--transition);
}
.logo-item:hover {
  border-color: var(--azul);
  box-shadow: var(--shadow-sm);
}

.marcas-sep {
  height: 1px;
  background: var(--gris-borde);
  margin: 48px 0;
}

.catalogo-preview h3 {
  margin-bottom: 8px;
}
.catalogo-preview > p {
  margin-bottom: 32px;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.producto-card {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gris-borde);
  overflow: hidden;
  transition: var(--transition);
}
.producto-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.producto-card .card-img-sq {
  aspect-ratio: 1;
  background: var(--gris-lt);
  overflow: hidden;
}
.producto-card .card-img-sq .ph-img {
  width: 100%;
  height: 100%;
}
.producto-info {
  padding: 16px;
}
.producto-marca {
  font-size: .75rem;
  font-weight: 600;
  color: var(--amarillo-dk);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.producto-info h4 {
  font-size: .95rem;
  margin-bottom: 12px;
}
.catalogo-cta {
  text-align: center;
}

/* ---------- TESTIMONIOS ---------- */
.testimonios { background: var(--blanco); }

.testimonios-wrapper {
  position: relative;
  overflow: hidden;
}
.testimonios-track {
  display: flex;
  transition: transform .4s var(--ease);
}
.testimonio {
  min-width: 100%;
  padding: 0 40px;
}
.testimonio-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.estrellas {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
  color: var(--amarillo);
}
.testimonio blockquote {
  font-size: 1.1rem;
  color: var(--azul);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 28px;
  font-family: var(--fb);
  font-weight: 400;
}
.testimonio-autor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.autor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--blanco);
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.autor-info { text-align: left; }
.autor-nombre {
  font-weight: 600;
  color: var(--azul);
  font-size: .95rem;
}
.autor-proyecto {
  font-size: .82rem;
  color: var(--gris-txt);
}

.testimonios-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}
.t-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gris-borde);
  background: var(--blanco);
  color: var(--azul);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.t-btn:hover {
  border-color: var(--azul);
  background: var(--azul);
  color: var(--blanco);
}
.t-dots {
  display: flex;
  gap: 8px;
}
.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gris-borde);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.t-dot.active {
  background: var(--azul);
  width: 24px;
  border-radius: 4px;
}

/* ---------- CONTACTO / CTA FINAL ---------- */
.contacto {
  background: var(--azul);
  padding: 80px 0;
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contacto h2 { color: var(--blanco); }
.contacto-intro {
  color: rgba(255,255,255,.8);
  margin: 12px 0 36px;
  font-size: 1.05rem;
}
.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contacto-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contacto-item-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amarillo);
  flex-shrink: 0;
}
.contacto-item-text .label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  margin-bottom: 2px;
}
.contacto-item-text a,
.contacto-item-text span {
  color: var(--blanco);
  font-weight: 500;
  font-size: .95rem;
}
.contacto-item-text a:hover { color: var(--amarillo); }

/* Formulario */
.form-contacto {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-contacto h3 {
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--azul);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gris-borde);
  border-radius: var(--radius);
  font-family: var(--fb);
  font-size: .9rem;
  color: var(--azul-dk);
  background: var(--blanco);
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(0,63,99,.1);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23003f63' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-contacto .btn {
  width: 100%;
  justify-content: center;
}
.form-nota {
  font-size: .78rem;
  color: var(--gris-txt);
  text-align: center;
  margin-top: 12px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--azul-dk);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo-text {
  color: var(--blanco);
  display: block;
  margin-bottom: 14px;
}
.footer-brand p {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
}
.social-icon:hover {
  background: var(--amarillo);
  color: var(--azul-dk);
}

.footer-col h5 {
  font-family: var(--fh);
  font-size: .85rem;
  font-weight: 700;
  color: var(--blanco);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul a:hover { color: var(--blanco); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer-admin {
  font-size: .75rem;
  color: rgba(255,255,255,.25);
  transition: color var(--transition);
}
.footer-admin:hover { color: rgba(255,255,255,.5); }

/* ---------- WHATSAPP FLOTANTE ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
}
.wa-float svg { color: var(--blanco); }

/* Tooltip */
.wa-float::before {
  content: 'Escribenos, respondemos de inmediato';
  position: absolute;
  right: 68px;
  background: var(--azul-dk);
  color: var(--blanco);
  font-family: var(--fb);
  font-size: .78rem;
  padding: 8px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.wa-float:hover::before { opacity: 1; }

/* ---------- PLACEHOLDER IMAGENES ---------- */
.ph-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gris-lt) 0%, #dde6ef 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--azul);
  font-size: .8rem;
  text-align: center;
  padding: 20px;
}
.ph-img svg { opacity: .35; }
.ph-img span {
  opacity: .55;
  font-family: var(--fb);
  font-size: .78rem;
  font-weight: 500;
  max-width: 180px;
}

/* Hero placeholder mas alto */
.hero-bg .ph-img {
  background: linear-gradient(135deg, #001e32 0%, #003f63 100%);
  color: rgba(255,255,255,.4);
  min-height: 100vh;
}

/* Utilidades */
.d-none { display: none; }
.svg-sprite { display: none; }

/* Margenes de texto en secciones */
.mt-sm   { margin-top: 12px; }
.mt-md   { margin-top: 24px; }
.mt-lg   { margin-top: 32px; }
.mb-sm   { margin-bottom: 16px; }
.mb-md   { margin-bottom: 24px; }
.p-body  { margin: 16px 0 28px; }  /* parrafo intro de seccion two-col */

/* CTA banner tag spacing */
.cta-banner .tag { margin-bottom: 16px; }

/* Variante light del bloque contacto-item (pagina contacto.html) */
.contacto-item-icon.light {
  background: rgba(0,63,99,.08);
  color: var(--azul);
}
.contacto-item-text .label.light { color: var(--gris-txt); }
.contacto-item-text .value-light  { color: var(--azul); font-weight: 500; font-size: .95rem; }

/* FAQ centrado en pagina contacto */
.faq-list-centered {
  max-width: 720px;
  margin: 0 auto;
}

/* Ajustes estructurales de seccion */
.diferencia .razones-grid { margin-top: 56px; }
.catalogo-preview .section-header { margin-bottom: 36px; }
.mobile-nav .btn-outline-azul { margin-top: 8px; }

/* ---------- ANIMACIONES SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ============================================
   SUB-PAGES
============================================ */

/* ---------- Page Hero (sub-paginas) ---------- */
.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding-top: 70px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg .ph-img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  background: linear-gradient(135deg, #001e32 0%, #003f63 100%);
  color: rgba(255,255,255,.35);
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,31,50,.6);
  z-index: 1;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 56px 0 48px;
}
.page-hero-content .tag { margin-bottom: 14px; }
.page-hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 14px;
}
.page-hero-content p {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 28px;
}
.page-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.6); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--blanco); }
.breadcrumb span { color: rgba(255,255,255,.35); }

/* ---------- Content sections ---------- */
.content-section { background: var(--blanco); }
.content-section-alt { background: var(--gris-lt); }

/* ---------- Tipos de equipo / grid de cards ---------- */
.tipos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tipo-card {
  border: 1px solid var(--gris-borde);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--blanco);
  transition: var(--transition);
}
.tipo-card:hover {
  border-color: var(--azul);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.tipo-card .card-icon {
  margin-bottom: 16px;
  background: rgba(0,63,99,.07);
}
.tipo-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.tipo-card p { font-size: .88rem; margin-bottom: 16px; }
.tipo-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tipo-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--gris-txt);
}
.tipo-card li svg { color: var(--azul); flex-shrink: 0; }

/* ---------- Feature list (inverter benefits, etc.) ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--blanco);
  border-radius: var(--radius);
  border: 1px solid var(--gris-borde);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,193,28,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azul);
  flex-shrink: 0;
}
.feature-item h4 { margin-bottom: 4px; font-size: .95rem; }
.feature-item p { font-size: .85rem; }

/* ---------- Sistemas solares ---------- */
.sistemas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sistema-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gris-borde);
  transition: var(--transition);
}
.sistema-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.sistema-card-header {
  background: var(--azul);
  padding: 24px;
  text-align: center;
}
.sistema-card-header.solar-hibrido { background: var(--azul-dk); }
.sistema-card-header.solar-bateria  { background: #0a3352; }
.sistema-card-header svg { color: var(--amarillo); margin-bottom: 12px; }
.sistema-card-header h3 { color: var(--blanco); font-size: 1.1rem; }
.sistema-card-header p  { color: rgba(255,255,255,.7); font-size: .82rem; margin-top: 6px; }
.sistema-card-body { padding: 24px; }
.sistema-card-body ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.sistema-card-body li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
}
.sistema-card-body li svg { color: var(--ahorro); flex-shrink: 0; margin-top: 2px; }
.badge-ideal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(22,159,77,.1);
  color: var(--ahorro);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .75rem;
  font-weight: 600;
}

/* ---------- Ahorro calculator visual ---------- */
.ahorro-visual {
  background: var(--azul);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--blanco);
}
.ahorro-visual h3 { color: var(--blanco); margin-bottom: 24px; }
.ahorro-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .9rem;
}
.ahorro-row:last-child { border-bottom: none; }
.ahorro-row .label { color: rgba(255,255,255,.7); }
.ahorro-row .value { font-weight: 700; font-size: 1rem; color: var(--blanco); }
.ahorro-row .value.verde { color: #4ade80; }
.ahorro-row .value.amarillo { color: var(--amarillo); }
.ahorro-nota {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  margin-top: 16px;
  line-height: 1.6;
}

/* ---------- Valores (nosotros) ---------- */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.valor-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.valor-card:hover { border-color: var(--azul); box-shadow: var(--shadow-sm); }
.valor-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0,63,99,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azul);
  flex-shrink: 0;
}
.valor-card h4 { margin-bottom: 6px; }
.valor-card p { font-size: .88rem; }

/* ---------- Timeline (nosotros historia) ---------- */
.timeline {
  position: relative;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--azul) 0%, var(--amarillo) 100%);
  border-radius: 2px;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--azul);
  border: 3px solid var(--blanco);
  box-shadow: 0 0 0 2px var(--azul);
}
.timeline-year {
  font-family: var(--fh);
  font-size: .75rem;
  font-weight: 700;
  color: var(--amarillo-dk);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 4px;
}
.timeline-item h4 { margin-bottom: 4px; }
.timeline-item p  { font-size: .88rem; }

/* ---------- FAQ accordion ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--gris-borde);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blanco);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  font-family: var(--fb);
  font-size: .92rem;
  font-weight: 600;
  color: var(--azul);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--gris-lt); }
.faq-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--azul);
  transition: transform var(--transition);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-answer-inner {
  padding: 0 20px 18px;
  font-size: .9rem;
  color: var(--gris-txt);
  line-height: 1.7;
  border-top: 1px solid var(--gris-borde);
  padding-top: 14px;
}
.faq-item.open .faq-answer { max-height: 300px; }

/* ---------- Canales de contacto ---------- */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1.5px solid var(--gris-borde);
  border-radius: var(--radius-lg);
  background: var(--blanco);
  text-decoration: none;
  transition: var(--transition);
}
.channel-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.channel-card.wa:hover  { border-color: #25D366; }
.channel-card.tel:hover { border-color: var(--amarillo); }
.channel-card.mail:hover { border-color: var(--azul); }
.channel-card.ig:hover  { border-color: #E1306C; }
.channel-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.channel-icon-wrap.wa   { background: rgba(37,211,102,.12); color: #25D366; }
.channel-icon-wrap.tel  { background: rgba(255,193,28,.12); color: var(--amarillo-dk); }
.channel-icon-wrap.mail { background: rgba(0,63,99,.08); color: var(--azul); }
.channel-icon-wrap.ig   { background: rgba(225,48,108,.08); color: #E1306C; }
.channel-label { font-size: .75rem; color: var(--gris-txt); margin-bottom: 2px; }
.channel-value { font-size: .9rem; font-weight: 600; color: var(--azul); }

/* ---------- Two-col layout helper ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.two-col.align-center { align-items: center; }
.two-col .col-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.two-col .col-img .ph-img {
  width: 100%;
  height: 100%;
}

/* ---------- CTA banner (bottom of sub-pages) ---------- */
.cta-banner {
  background: var(--azul);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--blanco); margin-bottom: 12px; }
.cta-banner p  { color: rgba(255,255,255,.75); margin-bottom: 32px; font-size: 1.05rem; }
.cta-banner-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- RESPONSIVE sub-pages ---------- */
@media (max-width: 1024px) {
  .tipos-grid    { grid-template-columns: repeat(2, 1fr); }
  .sistemas-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col       { gap: 40px; }
}
@media (max-width: 768px) {
  .page-hero { min-height: 300px; }
  .page-hero-bg .ph-img { min-height: 300px; }
  .tipos-grid    { grid-template-columns: 1fr; }
  .sistemas-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .valores-grid  { grid-template-columns: 1fr; }
  .channels-grid { grid-template-columns: 1fr; }
  .two-col       { grid-template-columns: 1fr; gap: 32px; }
  .two-col .col-img { aspect-ratio: 16/9; }
  .cta-banner    { padding: 48px 0; }
}
@media (max-width: 480px) {
  .page-hero-ctas { flex-direction: column; }
  .page-hero-ctas .btn { width: 100%; justify-content: center; }
  .cta-banner-btns { flex-direction: column; align-items: center; }
  .ahorro-visual { padding: 24px; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .razones-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
  .proceso-timeline { grid-template-columns: repeat(3, 1fr); }
  .proceso-timeline::before { display: none; }
  .productos-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }

  .nav-links,
  .nav-tel  { display: none; }
  .hamburger { display: flex; }
  .nav-cta .btn { display: none; }

  .hero-content { padding: 60px 0 40px; }
  .hero-inner .subheadline { font-size: 1rem; }

  .trust-bar .container {
    gap: 16px;
  }
  .trust-sep { display: none; }

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

  .stats-grid    { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .razones-grid  { grid-template-columns: 1fr 1fr; gap: 16px; }

  .proceso-timeline { grid-template-columns: 1fr; gap: 32px; }
  .proceso-timeline::before { display: none; }
  .paso { flex-direction: row; text-align: left; gap: 16px; align-items: flex-start; }
  .paso-num { margin-bottom: 0; flex-shrink: 0; width: 44px; height: 44px; font-size: .95rem; }

  .logos-grid { gap: 8px; }
  .logo-item  { padding: 10px 16px; font-size: .78rem; }

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

  .contacto-grid { grid-template-columns: 1fr; gap: 40px; }

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

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

  .testimonio { padding: 0 8px; }
}

@media (max-width: 480px) {
  .stats-grid     { grid-template-columns: 1fr 1fr; }
  .razones-grid   { grid-template-columns: 1fr; }
  .productos-grid { grid-template-columns: 1fr; }
  .hero-ctas      { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .form-contacto  { padding: 24px 20px; }
}
