/* =========================================================
   MJ | GESTORÍA INTEGRAL DEL AUTOMOTOR — PAGE: INDEX
   CSS específico del Home — overrides y layouts únicos
   ========================================================= */

/* ---------------------------------------------------------
   HERO — AJUSTES ÚNICOS DEL HOME
   --------------------------------------------------------- */
.hero {
  /* El home tiene el logo flotando en top-left */
}

/* H1 SEO oculto visualmente (accesible para motores) */
.hero-h1-seo {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Título display dividido en 2 líneas dramáticas */
.hero-title-line {
  display: block;
}

.hero-title-line-accent {
  display: block;
  color: var(--primary);
}

/* Scroll indicator minimalista */
.hero-scroll-hint {
  position: absolute;
  bottom: 5.5rem;
  right: var(--container-pad);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.hero-scroll-hint:hover { opacity: 0.8; }

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: var(--text);
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero-scroll-label {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  writing-mode: vertical-rl;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ---------------------------------------------------------
   SERVICIOS — NÚMEROS CON ACENTO LIMA (HOME VERSION)
   --------------------------------------------------------- */
/* Números sobre fondo oscuro: lima semitransparente */
.servicios-section .servicio-num {
  color: var(--primary);
  opacity: 0.15;
}

/* ---------------------------------------------------------
   MANDATARIO — LAYOUT ASIMÉTRICO PRONOUNCED
   --------------------------------------------------------- */
.mandatario-layout {
  /* En el home, el split es 42/58 */
  grid-template-columns: 42% 58%;
}

/* PROCESO — eliminado */

/* ---------------------------------------------------------
   TRAMITES — STICKY VISUAL BOX INTERIOR
   --------------------------------------------------------- */
.tramites-visual-inner {
  aspect-ratio: 4/5;
  width: 100%;
  background-color: #0a0a0a;
  background-image: url('../../img/imgi_34_500592987_1392255225229540_4905592103877606132_n.jpg');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  position: relative;
}

.tramites-visual-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13, 21, 0, 0) 40%,
    rgba(13, 21, 0, 0.9) 100%
  );
  z-index: 1;
}

.tramites-visual-content {
  position: relative;
  z-index: 2;
}

.tramites-visual-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.tramites-visual-stat {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw + 0.5rem, 4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.04em;
}

.tramites-visual-stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}

/* ---------------------------------------------------------
   STATS — CONTADOR + IMAGEN
   --------------------------------------------------------- */
/* El + del número grande */
.stat-number .suffix {
  font-size: 0.6em;
  vertical-align: super;
}

/* ---------------------------------------------------------
   TESTIMONIOS — QUOTE MARK DECORATIVA
   --------------------------------------------------------- */
.testimonio-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
  display: block;
  margin-bottom: -0.5rem;
}

/* ---------------------------------------------------------
   CTA FINAL — TEXTO CENTRADO + TAMAÑO AUMENTADO
   --------------------------------------------------------- */
.cta-tagline {
  font-size: clamp(1.375rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.cta-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* ---------------------------------------------------------
   FOOTER — ACENTO DISPLAY
   --------------------------------------------------------- */
footer {
  /* Línea lima decorativa en el top del footer */
  border-top: 1px solid rgba(181, 242, 61, 0.25);
}

.footer-logo-display {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
  margin-bottom: -1rem;
}

/* ---------------------------------------------------------
   RESPONSIVE — INDEX SPECIFICS
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .mandatario-layout {
    grid-template-columns: 1fr;
  }
}

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

  .tramites-visual-inner {
    aspect-ratio: 16/7;
  }
}
