/* =====================================================
   EPSR â€” Detalle pÃ¡gina Â· Direcciones Isacar
   ===================================================== */

/* â”€â”€ Variables de color â”€â”€ */
:root {
  --epsr-red:      #f5cc00;
  --epsr-red-dark: #d4ae00;
  --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(245,204,0,.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: #f5cc00;
  color: #fff;
  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: #f5cc00;
}
.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: #f5cc00;
  color: #fff;
  box-shadow: 0 6px 28px rgba(245,204,0,.4);
}
.epsr-btn--primary:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 38px rgba(245,204,0,.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: #f5cc00;
  border-radius: 100px;
  transition: width .3s ease;
}
@keyframes epsrFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
/* Imagen estÃ¡tica en el hero (EPS / EHPS) */
.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: #f5cc00;
  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 #f5cc00;
  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(245,204,0,.1);
  color: #f5cc00;
  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: #ffe566; }
.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(245,204,0,.08);
  border-color: rgba(245,204,0,.35);
}
.epsr-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(245,204,0,.15);
  color: #ffe566;
  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(245,204,0,.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, #f5cc00 0%, #ffe566 50%, #f5cc00 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 #f5cc00;
  color: #f5cc00;
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(245,204,0,.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. AUTORIDAD
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.epsr-authority {
  background: linear-gradient(135deg, #f5cc00 0%, #d4ae00 100%);
  padding: 72px 0;
}
.epsr-authority__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.epsr-authority__title {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.25;
}
.epsr-authority__desc {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
}
.epsr-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.epsr-stat {
  background: rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.2);
  transition: background .3s ease;
}
.epsr-stat:hover { background: rgba(255,255,255,.2); }
.epsr-stat__num {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.epsr-stat__label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   6. SERVICIOS
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.epsr-services {
  background: #fff;
  padding: 96px 0;
}
.epsr-services__header {
  text-align: center;
  margin-bottom: 60px;
}
.epsr-services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.epsr-service {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #f8fafc;
  border-radius: 16px;
  padding: 28px 26px;
  border: 1px solid #e2e8f0;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.epsr-service:hover {
  border-color: #f5cc00;
  box-shadow: 0 8px 28px rgba(245,204,0,.12);
  transform: translateY(-4px);
}
.epsr-service__icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(245,204,0,.1);
  color: #f5cc00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.epsr-service__title {
  font-size: 1rem;
  font-weight: 800;
  color: #0a1628;
  margin-bottom: 6px;
}
.epsr-service__text {
  font-size: .88rem;
  color: #64748b;
  line-height: 1.6;
}
.epsr-trust {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.epsr-trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 700;
  color: #0a1628;
}
.epsr-trust__item i {
  color: #f5cc00;
  font-size: 1rem;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   7. 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(245,204,0,.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: #ffe566;
  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: #f5cc00;
  color: #fff;
  font-size: 1.05rem;
  padding: 18px 52px;
  box-shadow: 0 8px 36px rgba(245,204,0,.45);
}
.epsr-btn--cta:hover {
  color: #fff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 50px rgba(245,204,0,.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-authority__inner { grid-template-columns: 1fr; gap: 40px; }
  .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; }
  .epsr-services__grid { grid-template-columns: 1fr; }
  .epsr-stats { grid-template-columns: 1fr 1fr; }
}


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