/* ==========================================================
   LEXA · Página de Derecho laboral
   Usa los mismos colores y tipografías de lexa.css
   (cámbialos allá y se actualizan las dos páginas).
========================================================== */

.lx-laboral {
  background: var(--navy-deep);
  color: #fff;
  font-family: var(--sans);
}

.lx-laboral *,
.lx-laboral *::before,
.lx-laboral *::after { box-sizing: border-box; }

.lx-container { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }

.lx-stage {
  min-height: 88svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0;
  scroll-margin-top: 84px;
}

.lx-stage-dark { background: var(--navy-deep); color: #fff; }
.lx-stage-light { background: var(--papel); color: var(--texto); }

#proceso-laboral { background: var(--navy-deep) url("assets/img/fondo-proceso.jpg") center / cover no-repeat; }
.lx-contact-stage { background: var(--navy-deep) url("assets/img/fondo-contacto.jpg") center / cover no-repeat; }

/* ========================================
   ETAPA 01 · PORTADA
======================================== */

.lx-hero {
  position: relative;
  min-height: calc(100svh - 84px);
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-deep) url("assets/img/fondo-laboral.webp") 52% center / cover no-repeat;
}

.lx-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(40px, 5vw, 90px);
  align-items: center;
}

.lx-hero-content { min-width: 0; }

.lx-hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6.2vw, 6rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 32px;
}
.lx-hero h1 span { display: block; color: var(--agua); font-style: italic; }

.lx-lead { max-width: 560px; color: #fff; font-size: clamp(1.15rem, 1.6vw, 1.38rem); line-height: 1.55; margin-bottom: 20px; }
.lx-description { max-width: 510px; color: #cfd9e1; font-size: 1rem; line-height: 1.8; }

.lx-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 38px; }

/* Botones */
.lx-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 14px 26px;
  font-size: .92rem;
  font-weight: 600;
  text-align: center;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: background var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.lx-button-gold { color: var(--navy-deep); background: #fff; }   /* (el nombre "gold" se conserva por compatibilidad) */
.lx-button:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .lx-button-gold:hover { background: var(--rosa); } }

.lx-text-link { color: #fff; font-size: .9rem; border-bottom: 1px solid var(--rosa); padding-bottom: 6px; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .lx-text-link:hover { color: var(--rosa); } }

/* Cuadro de la primera asesoría (aquí va el rosa) */
.lx-free-card {
  position: relative;
  background: rgba(8, 19, 31, .84);
  border: 1px solid rgba(252, 163, 143, .55);
  padding: clamp(26px, 3vw, 44px);
  width: 100%;
  max-width: 440px;
  justify-self: end;
}

.lx-card-top { display: flex; align-items: center; gap: 12px; font-size: .68rem; font-weight: 600; letter-spacing: .16em; color: var(--rosa); margin-bottom: 40px; }
.lx-card-mark { display: inline-block; width: 9px; height: 9px; background: var(--rosa); border-radius: 50%; }
.lx-card-label { font-size: .74rem; font-weight: 600; letter-spacing: .18em; color: #bccad6; margin-bottom: 10px; }

.lx-free-card h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 4.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.01em; color: #fff; margin: 0; }
.lx-gold { color: var(--rosa); }

.lx-card-divider { width: 56px; height: 2px; background: var(--rosa); margin: 26px 0; }
.lx-card-description { color: #d6dee5; font-size: .96rem; line-height: 1.75; margin-bottom: 28px; }

.lx-card-button { width: 100%; background: var(--rosa); color: var(--navy-deep); }
@media (hover: hover) and (pointer: fine) { .lx-card-button:hover { background: #fff; } }

.lx-card-note { color: #a9b8c5; font-size: .76rem; line-height: 1.6; margin: 16px 0 0; text-align: center; }

.lx-scroll-cue {
  position: absolute;
  left: max(32px, calc((100% - 1180px) / 2));
  bottom: 26px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--agua);
  font-size: .66rem;
  letter-spacing: .18em;
  transition: color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) { .lx-scroll-cue:hover { color: var(--rosa); } }

/* Fondo fotográfico de LEXA Laboral.
   La imagen conserva su aspecto original; la oscuridad se aplica
   como velo CSS para mantener legibles el texto y la tarjeta. */
.lx-laboral .lx-hero > .hero-agua,
.lx-laboral .lx-hero > .hero-sombra {
  display: none !important; /* solo se quitan en la portada laboral */
}

.lx-laboral .lx-hero > .hero-velo {
  /* Ajusta la opacidad (último número de rgba) para oscurecer o aclarar. */
  background:
    linear-gradient(90deg,
      rgba(7, 20, 33, .63) 0%,
      rgba(7, 20, 33, .26) 49%,
      rgba(7, 20, 33, .53) 100%),
    linear-gradient(0deg,
      rgba(7, 20, 33, .46) 0%,
      rgba(7, 20, 33, .08) 64%,
      rgba(7, 20, 33, .18) 100%);
}

/* Recuadro de consulta: un poco más translúcido, sin perder contraste. */
.lx-laboral .lx-hero .lx-free-card {
  background: rgba(8, 19, 31, .86);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

@media (max-width: 700px) {
  .lx-laboral .lx-hero {
    background-position: 60% center;
  }
  .lx-laboral .lx-hero > .hero-velo {
    background:
      linear-gradient(180deg,
        rgba(7, 20, 33, .64) 0%,
        rgba(7, 20, 33, .50) 52%,
        rgba(7, 20, 33, .79) 100%);
  }
}

/* ========================================
   TÍTULOS DE SECCIÓN
======================================== */

.lx-section-heading { max-width: 780px; margin-bottom: 64px; }

.lx-section-heading h2,
.lx-contact-content h2 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.01em;
  margin: 0 0 26px;
}

.lx-section-heading h2 em,
.lx-contact-content h2 em { font-style: italic; color: var(--azul); }
.lx-stage-dark .lx-section-heading h2 em,
.lx-contact-content h2 em { color: var(--agua); }
.lx-stage-light .lx-section-heading h2 { color: var(--navy); }

.lx-section-heading p { max-width: 610px; font-size: 1.06rem; line-height: 1.8; color: var(--muted); }
.lx-stage-dark .lx-section-heading p { color: #d0dae2; }

/* ========================================
   ETAPA 02 · SERVICIOS
======================================== */

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

.lx-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--linea);
  min-height: 330px;
  padding: 40px 36px 36px;
  transition: transform var(--t-hover) var(--ease-out), box-shadow var(--t-hover) ease, background var(--t-hover) ease, border-color var(--t-hover) ease;
}
.lx-service-card:active { transform: scale(.985); }

.lx-service-card .icono { width: 50px; height: 50px; margin-bottom: 26px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--t-hover) ease; }

.lx-service-card h3 { margin-top: 4px; font-family: var(--serif); font-size: 2.05rem; font-weight: 400; line-height: 1.1; margin: 0 0 14px; color: var(--navy); transition: color var(--t-hover) ease; }
.lx-service-card p { font-size: .98rem; line-height: 1.7; color: var(--muted); margin: 0; transition: color var(--t-hover) ease; }

@media (hover: hover) and (pointer: fine) {
  .lx-service-card:hover { transform: translateY(-4px); background: var(--navy); border-color: var(--navy); box-shadow: 0 26px 50px rgba(15, 34, 54, .28); }
  .lx-service-card:hover .icono { stroke: #fff; }
  .lx-service-card:hover h3 { color: #fff; }
  .lx-service-card:hover p { color: #cbd7e1; }
}

/* ========================================
   ETAPA 03 · PROCESO
======================================== */

.lx-process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }

.lx-process-item { border-top: 1px solid rgba(207, 224, 238, .35); padding-top: 26px; position: relative; }
.lx-process-item:first-child { border-top: 2px solid var(--rosa); }
.lx-process-item::before { content: ""; position: absolute; top: -5px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--rosa); }
.lx-process-item:first-child::before { top: -6px; }

.lx-process-item > span { font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--agua); }
.lx-process-item h3 { font-family: var(--serif); font-weight: 400; color: #fff; font-size: 2rem; line-height: 1.1; margin: 24px 0 14px; }
.lx-process-item p { color: #cfd9e1; font-size: .98rem; line-height: 1.8; margin: 0; }

/* ========================================
   ETAPA 04 · PREGUNTAS
======================================== */

.lx-faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }

.lx-faq details { border-top: 1px solid var(--linea); }
.lx-faq details:last-child { border-bottom: 1px solid var(--linea); }
.lx-faq details[open] { border-top: 2px solid var(--navy); }

.lx-faq summary {
  position: relative;
  display: block;
  padding: 28px 64px 28px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--navy);
}
.lx-faq summary::-webkit-details-marker { display: none; }

.lx-faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  width: 36px; height: 36px;
  margin-top: -18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rosa-oscuro);
  border-radius: 50%;
  color: var(--rosa-oscuro);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: background var(--t-hover) ease, color var(--t-hover) ease;
}
.lx-faq summary { user-select: none; -webkit-user-select: none; }
@media (hover: hover) and (pointer: fine) { .lx-faq summary:hover::after { background: var(--rosa); color: var(--navy); } }
.lx-faq details[open] summary::after { content: "−"; background: var(--rosa); border-color: var(--rosa); color: var(--navy); }

.lx-faq details p { margin: -6px 0 0; padding: 0 64px 28px 0; color: var(--muted); line-height: 1.8; font-size: 1rem; animation: entra 220ms var(--ease-out) backwards; --sube: 6px; }

/* ========================================
   ETAPA 05 · CONTACTO
======================================== */

.lx-contact-stage { text-align: center; min-height: 80svh; }
.lx-contact-content { max-width: 850px; }
.lx-contact-content p { max-width: 590px; color: #d6dee5; line-height: 1.8; margin: 0 auto 34px; font-size: 1.1rem; }
.lx-contact-content .lx-button { margin: 0 auto; }
.lx-contact-content .lx-contact-note { font-size: .8rem; color: var(--rosa); margin-top: 26px; }

/* ========================================
   BARRA DE PROGRESO Y NAVEGACIÓN POR ETAPAS
======================================== */

.lx-progress { position: fixed; top: 0; left: 0; z-index: 200; width: 100%; height: 3px; pointer-events: none; }
.lx-progress span { display: block; width: 100%; height: 100%; background: var(--rosa); transform: scaleX(0); transform-origin: left; will-change: transform; }

.lx-stage-nav { position: fixed; top: 50%; right: 20px; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 10px; }

.lx-stage-nav a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(207, 224, 238, .45);
  background: rgba(8, 19, 31, .82);
  color: var(--agua);
  font-size: .73rem;
  user-select: none; -webkit-user-select: none;
  transition: background var(--t-hover) ease, border-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.lx-stage-nav a:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .lx-stage-nav a:hover { border-color: var(--rosa); color: #fff; } }
.lx-stage-nav a.lx-active { color: var(--navy-deep); background: var(--rosa); border-color: var(--rosa); }

.iconos-fuente { position: absolute; width: 0; height: 0; overflow: hidden; }
.icono-btn { width: 1.05em; height: 1.05em; flex: none; vertical-align: -.12em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .lx-button:hover .icono-btn, .lx-text-link:hover .icono-btn { transform: translate(2px, -2px); } }

/* ========================================
   ANIMACIONES AL DESPLAZARSE
======================================== */

/* Bloques que entran al hacer scroll (una sola animación; el hover queda libre) */
.lx-motion .lx-reveal:not(.lx-visible) { opacity: 0; }
.lx-motion .lx-reveal.lx-visible { animation: entra var(--t-entrada) var(--ease-out) backwards; --sube: 16px; }
.lx-motion .lx-reveal.lx-visible:nth-child(2) { animation-delay: 70ms; }
.lx-motion .lx-reveal.lx-visible:nth-child(3) { animation-delay: 130ms; }

/* Portada: un solo nivel de entrada. El título lidera, lo demás lo sigue. */
.lx-hero-content > * { animation: entra var(--t-entrada) var(--ease-out) backwards; --sube: 10px; }
.lx-hero-content > :nth-child(1) { animation-name: abre; animation-duration: 400ms; }
.lx-hero-content > :nth-child(2) { --sube: 16px; animation-delay: 40ms; }
.lx-hero-content > :nth-child(3) { animation-delay: 130ms; }
.lx-hero-content > :nth-child(4) { --sube: 8px; animation-delay: 200ms; }
.lx-hero-content > :nth-child(5) { --sube: 8px; animation-delay: 250ms; }
.lx-hero .lx-free-card { animation: entra 700ms var(--ease-out) 160ms backwards; --sube: 18px; }

/* Accesibilidad */
.lx-laboral a:focus-visible,
.lx-laboral summary:focus-visible { outline: 3px solid var(--rosa); outline-offset: 4px; }

/* ========================================
   TABLET Y CELULARES
======================================== */

@media (max-width: 1000px) {
  .lx-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .lx-free-card { max-width: 560px; justify-self: start; }
  .lx-hero .hero-sombra { height: 90%; right: -25%; opacity: .55; }
  .lx-services, .lx-process { grid-template-columns: 1fr; }
  .lx-service-card { min-height: auto; }
  .lx-faq-grid { grid-template-columns: 1fr; gap: 18px; }
  .lx-stage-nav { display: none; }
}

@media (max-width: 700px) {
  .lx-container { width: calc(100% - 36px); }
  .lx-stage { padding: 85px 0; min-height: auto; }
  .lx-hero { min-height: auto; padding-bottom: 115px; }
  .lx-hero h1 { font-size: clamp(3.4rem, 5.7vw, 6rem); }
  .lx-actions { align-items: stretch; flex-direction: column; }
  .lx-text-link { align-self: flex-start; }
  .lx-free-card { padding: 28px; }
  .lx-section-heading { margin-bottom: 38px; }
  .lx-scroll-cue { left: 20px; }
  .lx-faq summary { font-size: 1.02rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lx-hero-content > *, .lx-hero .lx-free-card, .lx-motion .lx-reveal.lx-visible, .lx-faq details p { animation: abre 300ms ease backwards; animation-delay: 0ms; }
  .lx-button, .lx-service-card { transition: none; }
}

/* LEXA LABORAL - AJUSTE DE PORTADA */

@media (min-width: 1001px) {
  .lx-laboral .lx-hero {
    min-height: calc(100svh - 84px);
    padding-block: 36px 65px;
  }

  .lx-laboral .lx-hero h1 {
    font-size: clamp(3rem, 5vw, 5.6rem);
    margin-bottom: 20px;
  }

  .lx-laboral .lx-lead {
    margin-bottom: 14px;
  }

  .lx-laboral .lx-actions {
    margin-top: 26px;
  }

  .lx-laboral .lx-scroll-cue {
    bottom: 18px;
  }
}

@media (max-width: 1000px) {
  .lx-laboral .lx-hero {
    padding-block: 45px 70px;
  }
}

@media (max-width: 700px) {
  .lx-laboral .lx-hero {
    padding-top: 44px;
    padding-bottom: 85px;
  }

  .lx-laboral .lx-actions {
    margin-top: 22px;
  }
}
