/* =====================================================
   ECU'S — Reparación de centralitas electrónicas · Direcciones Isacar
   ===================================================== */

/* ── Variables de color ── */
:root {
  --epsr-red:      #00bcd4;
  --epsr-red-dark: #0097a7;
  --epsr-dark:     #060d1a;
  --epsr-navy:     #0a1628;
  --epsr-mid:      #1a2b47;
  --epsr-text:     #e2e8f0;
  --epsr-muted:    #94a3b8;
}

/* ── Animación fade-up al scroll ── */
.epsr-fade {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .65s ease, transform .65s ease;
}
.epsr-fade.visible {
  opacity: 1;
  transform: translateY(0);
}
.epsr-fade[style*="--d:1"] { transition-delay: .1s; }
.epsr-fade[style*="--d:2"] { transition-delay: .2s; }
.epsr-fade[style*="--d:3"] { transition-delay: .3s; }
.epsr-fade[style*="--d:4"] { transition-delay: .4s; }
.epsr-fade[style*="--d:5"] { transition-delay: .5s; }

/* ════════════════════════════════════════════
   1. HERO
   ════════════════════════════════════════════ */
.epsr-hero {
  position: relative;
  background: linear-gradient(125deg, #060d1a 0%, #0d1f3c 45%, #1a3460 100%);
  padding: 110px 0 0;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
}
.epsr-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 90% at 70% 40%, rgba(0,188,212,.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(26,111,196,.15) 0%, transparent 60%);
  pointer-events: none;
}
.epsr-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  gap: 48px;
}
.epsr-hero__left {
  padding-bottom: 80px;
}
.epsr-hero__badge {
  display: inline-block;
  background: #00bcd4;
  color: #0a0a0a;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.epsr-hero__sub-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--epsr-muted);
  margin-bottom: 14px;
}
.epsr-hero__title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -.5px;
}
.epsr-hero__title em {
  font-style: normal;
  color: #00bcd4;
}
.epsr-hero__tagline {
  font-size: 1.08rem;
  color: var(--epsr-muted);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 40px;
}
.epsr-hero__btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.epsr-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .95rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}
.epsr-btn--primary {
  background: #00bcd4;
  color: #0a0a0a;
  box-shadow: 0 6px 28px rgba(0,188,212,.4);
}
.epsr-btn--primary:hover {
  color: #0a0a0a;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 38px rgba(0,188,212,.52);
}
.epsr-btn--outline {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
}
.epsr-btn--outline:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
  transform: translateY(-3px);
}
.epsr-hero__right {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* ── Contenedor modelo 3D ── */
.epsr-model-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
}
.epsr-model-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  border-radius: 20px;
}
.epsr-model-badge {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,22,40,.72);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.8);
  font-size: .75rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 100px;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.12);
  pointer-events: none;
}
.epsr-model-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  font-weight: 600;
}
.epsr-model-loader__bar {
  width: 140px;
  height: 3px;
  background: rgba(255,255,255,.12);
  border-radius: 100px;
  overflow: hidden;
}
.epsr-model-loader__fill {
  height: 100%;
  width: 0%;
  background: #00bcd4;
  border-radius: 100px;
  transition: width .3s ease;
}
@keyframes epsrFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.epsr-hero__img {
  width: 100%;
  max-width: 480px;
  display: block;
  filter: drop-shadow(0 28px 52px color-mix(in srgb, var(--epsr-red) 40%, transparent))
          drop-shadow(0 6px 18px rgba(0,0,0,.55));
  animation: epsrFloat 5s ease-in-out infinite;
}

/* ════════════════════════════════════════════
   2. ¿QUÉ ES?
   ════════════════════════════════════════════ */
.epsr-what {
  background: #f8fafc;
  padding: 96px 0;
}
.epsr-eyebrow {
  display: block;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #00bcd4;
  margin-bottom: 14px;
}
.epsr-section-title {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 900;
  color: #0a1628;
  margin-bottom: 20px;
  letter-spacing: -.3px;
  line-height: 1.2;
}
.epsr-what__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.epsr-what__text p {
  font-size: 1.02rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 14px;
}
.epsr-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.epsr-pillar {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border-left: 3px solid #00bcd4;
  transition: transform .3s ease, box-shadow .3s ease;
}
.epsr-pillar:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
}
.epsr-pillar__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0,188,212,.1);
  color: #00bcd4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.epsr-pillar__title {
  font-size: .95rem;
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 4px;
}
.epsr-pillar__text {
  font-size: .88rem;
  color: #64748b;
  line-height: 1.5;
}

/* ════════════════════════════════════════════
   3. VENTAJAS
   ════════════════════════════════════════════ */
.epsr-ventajas {
  background: #0a1628;
  padding: 96px 0;
}
.epsr-ventajas .epsr-section-title { color: #fff; }
.epsr-ventajas .epsr-eyebrow { color: #80deea; }
.epsr-ventajas__header {
  text-align: center;
  margin-bottom: 60px;
}
.epsr-ventajas__sub {
  font-size: 1rem;
  color: var(--epsr-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}
.epsr-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.epsr-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 32px 28px;
  transition: transform .35s ease, background .35s ease, border-color .35s ease;
}
.epsr-card:hover {
  transform: translateY(-8px);
  background: rgba(0,188,212,.08);
  border-color: rgba(0,188,212,.35);
}
.epsr-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0,188,212,.15);
  color: #80deea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  transition: background .3s ease;
}
.epsr-card:hover .epsr-card__icon {
  background: rgba(0,188,212,.28);
}
.epsr-card__title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.epsr-card__text {
  font-size: .88rem;
  color: var(--epsr-muted);
  line-height: 1.65;
}

/* ════════════════════════════════════════════
   4. CÓMO FUNCIONA
   ════════════════════════════════════════════ */
.epsr-how {
  background: #f8fafc;
  padding: 96px 0;
}
.epsr-how__header {
  text-align: center;
  margin-bottom: 64px;
}
.epsr-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.epsr-steps::before {
  content: '';
  position: absolute;
  top: 38px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 2px;
  background: linear-gradient(90deg, #00bcd4 0%, #80deea 50%, #00bcd4 100%);
  opacity: .35;
}
.epsr-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.epsr-step__num {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #00bcd4;
  color: #00bcd4;
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,188,212,.22);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.epsr-step__icon {
  font-size: 1.3rem;
}
.epsr-step__title {
  font-size: 1rem;
  font-weight: 800;
  color: #0a1628;
  margin-bottom: 8px;
}
.epsr-step__text {
  font-size: .9rem;
  color: #64748b;
  line-height: 1.65;
}

/* ════════════════════════════════════════════
   5. CTA FINAL
   ════════════════════════════════════════════ */
.epsr-cta {
  background: linear-gradient(135deg, #060d1a 0%, #0d1f3c 60%, #1a3460 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.epsr-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,188,212,.14) 0%, transparent 70%);
  pointer-events: none;
}
.epsr-cta__inner { position: relative; }
.epsr-cta__label {
  display: block;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #80deea;
  margin-bottom: 16px;
}
.epsr-cta__title {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.2;
}
.epsr-cta__sub {
  font-size: 1.05rem;
  color: var(--epsr-muted);
  margin-bottom: 44px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.epsr-btn--cta {
  background: #00bcd4;
  color: #0a0a0a;
  font-size: 1.05rem;
  padding: 18px 52px;
  box-shadow: 0 8px 36px rgba(0,188,212,.45);
}
.epsr-btn--cta:hover {
  color: #0a0a0a;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 50px rgba(0,188,212,.55);
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 960px) {
  .epsr-hero__inner   { grid-template-columns: 1fr; }
  .epsr-hero__right   { display: none; }
  .epsr-hero__left    { padding-bottom: 56px; }
  .epsr-what__inner   { grid-template-columns: 1fr; gap: 40px; }
  .epsr-cards         { grid-template-columns: 1fr 1fr; }
  .epsr-steps::before { display: none; }
}
@media (max-width: 640px) {
  .epsr-hero { padding-top: 88px; }
  .epsr-cards { grid-template-columns: 1fr; }
  .epsr-steps { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Corrección de contraste ── */
.epsr-hero__badge,
.epsr-btn--primary,
.epsr-btn--cta {
  color: #0a0a0a !important;
}
.epsr-btn--primary:hover,
.epsr-btn--cta:hover {
  color: #0a0a0a !important;
}