/*
 * Nodinet Noelia — home.css
 * Estilos específicos del front-page.
 */

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.nl-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 88px);
  width: 100%;
  background-image: url('/wp-content/themes/nodinet-theme-noelia/assets/img/noelia-hero-fondo.webp');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.nl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #FAFAF9 25%, rgba(250,250,249,.5) 40%, transparent 55%);
  z-index: 1;
}

.nl-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px 36px 10%;
}

.nl-hero-content::before {
  content: '';
  position: absolute;
  left: 6%;
  top: 15%;
  height: 70%;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--nd-color-primary), transparent);
}

.nl-hero h1 {
  font-size: clamp(2.4rem, 3.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 6px;
}

.nl-hero h1 em {
  font-style: italic;
  color: var(--nd-color-primary);
  display: block;
}

.nl-hero-roles {
  font-size: .78rem;
  color: var(--nd-color-text-soft);
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nl-hero-tagline {
  font-size: 1.05rem;
  color: var(--nd-color-text);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 460px;
  border-left: 3px solid var(--nd-color-primary-light);
  padding-left: 18px;
}

.nl-hero-tagline strong {
  font-weight: 600;
  color: var(--nd-color-primary);
}

.nl-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.nl-hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--nd-color-border);
}

.nl-stat { display: flex; flex-direction: column; gap: 4px; }

.nl-stat-num {
  font-family: var(--nd-font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--nd-color-primary);
  line-height: 1;
}

.nl-stat-label {
  font-size: .72rem;
  color: var(--nd-color-text-soft);
  line-height: 1.4;
}

.nl-hero-image {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 24px 12px;
  height: 100%;
}


.nl-hero-img-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  border: 2px solid rgba(107,63,160,.25);
  border-radius: var(--nd-radius);
  overflow: hidden;
  line-height: 0;
}

.nl-hero-img-wrap img {
  display: block;
  width: auto;
  max-width: 340px;
  max-height: min(62vh, 620px);
  height: auto;
}

/* ══════════════════════════════════════
   INTRO STRIP
══════════════════════════════════════ */
.nl-intro-strip {
  background: var(--nd-color-primary);
  padding: 22px 10%;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  position: relative;
  z-index: 2;
}

.nl-intro-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
  font-size: .84rem;
  padding: 6px 24px 6px 0;
  margin-right: 24px;
  border-right: 1px solid rgba(255,255,255,.15);
  white-space: nowrap;
  flex-shrink: 0;
}

.nl-intro-item:last-child { border-right: none; margin-right: 0; }
.nl-intro-item strong { color: #fff; font-weight: 600; }

/* ══════════════════════════════════════
   SOBRE
══════════════════════════════════════ */
.nl-sobre {
  background: #4E2A7A;
  padding: 96px 10%;
}

.nl-sobre-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--nd-container-max);
  margin: 0 auto;
}

.nl-sobre h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: #fff;
  margin-bottom: 24px;
}

.nl-sobre h2 em {
  font-style: italic;
  color: var(--nd-color-accent);
}

.nl-sobre p {
  color: rgba(255,255,255,.90);
  font-size: .97rem;
  margin-bottom: 20px;
  line-height: 1.85;
}

.nl-sobre strong { color: #fff; }

.nl-sobre-quote {
  border-left: 3px solid var(--nd-color-accent);
  padding: 14px 22px;
  margin: 32px 0 0;
  font-family: var(--nd-font-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255,255,255,.88);
  line-height: 1.6;
}

.nl-pilares {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nl-pilar {
  border-left: 2px solid rgba(255,255,255,.12);
  padding: 22px 24px;
  transition: var(--nd-transition);
}

.nl-pilar:hover {
  border-left-color: var(--nd-color-accent);
  background: rgba(139,92,200,.15);
}

.nl-pilar-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.nl-pilar-num {
  font-family: var(--nd-font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--nd-color-accent);
  opacity: .4;
  width: 26px;
  flex-shrink: 0;
}

.nl-pilar h4 {
  font-size: .95rem;
  color: #fff;
  margin: 0;
  font-weight: 600;
}

.nl-pilar p {
  font-size: .84rem;
  color: rgba(255,255,255,.80);
  line-height: 1.6;
  margin: 0;
  padding-left: 38px;
}

/* ══════════════════════════════════════
   TRAYECTORIA — 3 tarjetas en línea
══════════════════════════════════════ */
.nl-trayectoria {
  background: var(--nd-color-bg);
  padding: 96px 10%;
}

.nl-tray-inner {
  max-width: var(--nd-container-max);
  margin: 0 auto;
}

.nl-trayectoria .nd-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
  align-items: stretch;
}

.nl-trayectoria .nd-timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(16.66%);
  right: calc(16.66%);
  height: 2px;
  background: var(--nd-color-primary-light);
  z-index: 0;
}

.nl-trayectoria .nd-tl-item {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.nl-trayectoria .nd-tl-content {
  background: #fff;
  border-radius: var(--nd-radius);
  padding: 32px 28px;
  box-shadow: 4px 4px 20px rgba(107,63,160,.12), 0 1px 4px rgba(0,0,0,.06);
  width: 100%;
  height: auto;
  flex-direction: column;
}

.nl-trayectoria .nd-tl-icon {
  width: 44px;
  height: 44px;
  background: var(--nd-color-primary-soft);
  border: 1.5px solid var(--nd-color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.nl-trayectoria .nd-tl-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--nd-color-primary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nl-trayectoria .nd-tl-tag {
  display: inline-block;
  margin-bottom: 16px;
}

.nl-trayectoria .nd-tl-content h3 {
  font-size: 1rem;
  line-height: 1.25;
  margin: 0 0 10px;
}

.nl-trayectoria .nd-tl-org {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--nd-color-primary);
  margin: 0 0 18px;
}

.nl-trayectoria .nd-tl-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nl-trayectoria .nd-tl-list li {
  line-height: 1.5;
}

/* ══════════════════════════════════════
   COMPETENCIAS — tarjetas blancas
══════════════════════════════════════ */
.nl-competencias {
  background: var(--nd-color-bg-soft);
  padding: 96px 10%;
}

.nl-comp-inner {
  max-width: var(--nd-container-max);
  margin: 0 auto;
}

.nl-competencias .nd-card--soft {
  background: #fff;
  border: none;
  box-shadow: 4px 4px 20px rgba(107,63,160,.10), 0 1px 4px rgba(0,0,0,.05);
}

.nl-competencias .nd-card--soft h4 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--nd-color-text);
}

/* ══════════════════════════════════════
   FORMACIÓN
══════════════════════════════════════ */
.nl-formacion {
  background: var(--nd-color-white);
  padding: 96px 10%;
}

.nl-form-inner {
  max-width: var(--nd-container-max);
  margin: 0 auto;
}

.nl-titulo-card {
  background: var(--nd-color-bg-soft);
  border-left: 4px solid var(--nd-color-primary);
  border-radius: 0 var(--nd-radius) var(--nd-radius) 0;
  padding: 28px 32px;
  box-shadow: 4px 4px 20px rgba(107,63,160,.08);
}

.nl-titulo-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--nd-color-text);
}

.nl-titulo-card p {
  font-size: .85rem;
  color: var(--nd-color-text-soft);
  margin: 0;
}

.nl-certs-title {
  font-family: var(--nd-font-heading);
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--nd-color-text);
}

.nl-formacion .nd-pills {
  justify-content: center;
}

/* ══════════════════════════════════════
   VALORES
══════════════════════════════════════ */
.nl-valores {
  background: var(--nd-color-bg-soft);
  padding: 96px 10%;
}

.nl-val-inner {
  max-width: var(--nd-container-max);
  margin: 0 auto;
}

.nl-valores .nd-card {
  box-shadow: 4px 4px 20px rgba(107,63,160,.10), 0 1px 4px rgba(0,0,0,.05);
}

/* ══════════════════════════════════════
   CITA GRANDE
══════════════════════════════════════ */
.nl-cita-grande {
  background: #733783;
  padding: 96px 10%;
  position: relative;
  overflow: hidden;
}

.nl-cita-grande::before {
  content: '"';
  font-family: var(--nd-font-heading);
  font-size: 28rem;
  color: rgba(107,63,160,.07);
  position: absolute;
  top: -100px;
  left: 3%;
  line-height: 1;
  pointer-events: none;
}

.nl-cita-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.nl-cita-grande blockquote {
  font-family: var(--nd-font-heading);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.6;
  margin: 0 0 24px;
}

.nl-cita-grande cite {
  font-size: .75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--nd-color-accent);
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════
   CTA
══════════════════════════════════════ */
.nl-cta {
  background: var(--nd-color-bg);
  padding: 96px 10%;
  text-align: center;
}

.nl-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.nl-cta h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
  line-height: 1.2;
}

.nl-cta h2 em { font-style: italic; color: var(--nd-color-primary); }

.nl-cta p {
  font-size: 1.05rem;
  color: var(--nd-color-text-soft);
  font-weight: 300;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ══════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════ */
.nl-section-header { margin-bottom: 56px; }

.nl-section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 10px;
  color: var(--nd-color-text);
}

.nl-section-header p {
  font-size: 1rem;
  color: var(--nd-color-text-soft);
  font-weight: 300;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 860px) {
  .nl-hero {
    grid-template-columns: 1fr;
    height: auto;
  }
  .nl-hero::before {
    background: linear-gradient(to bottom, #FAFAF9 50%, rgba(250,250,249,.7) 75%, transparent 100%);
  }
  .nl-hero-image {
    height: 60vw;
    order: -1;
  }
  .nl-hero-img-wrap {
    height: 100%;
    border-radius: 0;
    border: none;
    width: 100%;
    max-width: 100%;
  }
  .nl-hero-content {
    padding: 56px 6% 64px;
    text-align: center;
  }
  .nl-hero-content::before { display: none; }
  .nl-hero-tagline {
    border-left: none;
    padding-left: 0;
    max-width: 100%;
  }
  .nl-hero-actions { justify-content: center; }
  .nl-hero-stats   { justify-content: center; }
  .nl-sobre-grid   { grid-template-columns: 1fr; gap: 48px; }
  .nl-intro-strip  { padding: 22px 6%; gap: 12px; }
  .nl-trayectoria .nd-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .nl-trayectoria .nd-timeline::before { display: none; }
  .nl-trayectoria .nd-tl-item { align-items: flex-start; }
}

@media (max-width: 600px) {
  .nl-sobre, .nl-trayectoria, .nl-competencias,
  .nl-formacion, .nl-valores, .nl-cita-grande, .nl-cta {
    padding-left: 5%;
    padding-right: 5%;
  }
  .nl-intro-strip  { flex-direction: column; align-items: flex-start; }
  .nl-intro-item   { border-right: none; padding-right: 0; margin-right: 0; }
}
