/* ============================================================
   empresa.css — estilos compartidos de las 4 subpáginas Empresa
   ============================================================ */

/* ============ HERO INTERNO (escala unificada en las 5 subpáginas) ============ */
.page-hero {
  padding-top: clamp(8rem, 15vh, 12rem);
  padding-bottom: clamp(3rem, 6vh, 5rem);
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--label-gray);
  margin-bottom: 2rem;
  display: block;
}
.page-hero .page-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--graphite);
  margin: 0 0 2rem;
  max-width: 900px;
}
.page-hero .page-lead {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.65;
  color: var(--graphite);
  opacity: 0.75;
  max-width: 640px;
  margin: 0;
}

/* ============ HERO CON BANNER (servicios) ============ */
.page-hero-wrapper {
  padding: 1.25rem 1.25rem 0;
  background: var(--cream);
}
@media (max-width: 900px) { .page-hero-wrapper { padding: 1rem 1rem 0; } }

.page-hero-with-banner {
  position: relative;
  padding-top: clamp(6rem, 12vh, 9rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
  border-radius: 28px;
  overflow: hidden;
  min-height: 480px;
  background: var(--forest-deep);
  display: flex;
  align-items: center;
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.85);
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 42, 31, 0.55) 0%, rgba(14, 42, 31, 0.7) 100%);
}
/* Con banner: texto crema sobre la imagen */
.page-hero-with-banner .eyebrow { color: rgba(245, 243, 236, 0.65); }
.page-hero-with-banner .page-title { color: var(--cream); }
.page-hero-with-banner .page-lead { color: rgba(245, 243, 236, 0.8); }

/* ============ VIDEO YOUTUBE ============ */
.video-section {
  padding: clamp(2rem, 5vh, 4rem) 0 clamp(4rem, 8vh, 6rem);
  background: var(--cream);
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--forest-deep);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Placeholder mientras no hay video confirmado */
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(245, 243, 236, 0.75);
  text-align: center;
  padding: 2rem;
}
.video-placeholder .play {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(184, 232, 50, 0.5);
  display: grid; place-items: center;
  color: var(--lime-bright);
}
.video-placeholder p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  max-width: 32ch;
}

/* ============ SPLIT EDITORIAL ============ */
.editorial-split { padding: var(--section-py) 0; background: var(--cream); }
.split-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 4rem;
  align-items: start;
}
.split-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0.35rem 0 1.25rem;
}
.split-text p {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--graphite);
  opacity: 0.8;
  margin-bottom: 1.25rem;
}
.split-values {
  padding: 2.5rem;
  background: var(--forest-deep);
  color: var(--cream);
  border-radius: var(--radius-sm);
}
.split-values .eyebrow { color: rgba(245, 243, 236, 0.5); margin-bottom: 0.7rem; }
.values-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.values-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1rem;
  align-items: start;
}
.value-icon {
  width: 24px; height: 24px;
  color: var(--lime-bright);
  flex-shrink: 0;
  margin-top: 2px;
}
.values-list span {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(245, 243, 236, 0.85);
}
.values-list strong { color: var(--cream); font-weight: 500; }

/* ============ IMAGEN + TEXTO ALTERNADO ============ */
.editorial-image-block { padding: clamp(4rem, 8vh, 6rem) 0; background: var(--cream); }
.image-block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.image-block-reverse { direction: rtl; }
.image-block-reverse > * { direction: ltr; }
.image-block-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.image-block-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Variante apilada: texto arriba, imagen full-width abajo (para mostrar el móvil completo) */
.editorial-image-block--stacked .container {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}
.image-block-text--stacked { max-width: 720px; }
.image-block-media--wide {
  width: 100%;
  aspect-ratio: 16 / 10;
}
.image-block-media--wide img { object-position: center; }
.image-block-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0.35rem 0 1.1rem;
}
.image-block-text p {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--graphite);
  opacity: 0.8;
  margin-bottom: 1rem;
}
.btn-editorial {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--lime-bright);
  color: var(--forest-deep);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform 0.2s var(--ease-out);
}
.btn-editorial:hover { transform: translateY(-1px); }
.btn-editorial span { transition: transform 0.2s var(--ease-out); }
.btn-editorial:hover span { transform: translateX(3px); }

/* ============ GRID DE VALORES CON ICONOS ============ */
.values-grid-section { padding: var(--section-py) 0; background: var(--cream); }
.values-grid-section .section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--graphite);
  margin: 0.35rem 0 2.25rem;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.values-grid-3-2 { grid-template-columns: repeat(3, 1fr); }
.value-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(20, 20, 20, 0.06);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.value-card:hover {
  border-color: rgba(184, 232, 50, 0.4);
  transform: translateY(-2px);
}
.value-card-icon {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--forest-deep);
  color: var(--lime-bright);
  margin-bottom: 1.5rem;
}
.value-card-icon svg { width: 24px; height: 24px; }
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--graphite);
  margin: 0 0 0.75rem;
}
.value-card p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--graphite);
  opacity: 0.7;
  margin: 0;
}

/* ============ GRID DE ORGANISMOS (capacitacion) ============ */
.orgs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.org-item {
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(20, 20, 20, 0.06);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.org-item strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--forest-deep);
  font-weight: 500;
}
.org-item span {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--graphite);
  opacity: 0.65;
  line-height: 1.4;
}

/* ============ TIMELINE DE CAPACITACIONES ============ */
.training-timeline { padding: var(--section-py) 0; background: var(--forest-deep); color: var(--cream); }
.training-timeline .eyebrow { color: rgba(245, 243, 236, 0.55); }
.training-timeline .section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 400;
  color: var(--cream);
  margin: 0.35rem 0 2.25rem;
}
.timeline-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2rem;
  position: relative;
}
.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(245, 243, 236, 0.12);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--lime-bright);
  font-weight: 400;
}
.timeline-item p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(245, 243, 236, 0.85);
  margin: 0;
}
.timeline-item em {
  color: rgba(184, 232, 50, 0.8);
  font-style: normal;
  font-size: 0.85rem;
  display: block;
  margin-top: 0.35rem;
}

/* ============ SUBPAGES CTA (en nosotros) ============ */
.subpages-cta {
  padding: var(--section-py) 0;
  background: var(--cream);
  border-top: 1px solid rgba(20, 20, 20, 0.06);
}
.subpages-cta .eyebrow { margin-bottom: 0.5rem; }
.subpages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.subpage-card {
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.subpage-card:hover {
  background: var(--forest-deep);
  color: var(--cream);
  transform: translateY(-3px);
}
.subpage-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--lime-bright);
  opacity: 0.85;
}
.subpage-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
}
.subpage-card p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .split-grid,
  .image-block-grid,
  .image-block-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .image-block-media { aspect-ratio: 4/3; }
  .image-block-media--wide { aspect-ratio: 4/3; }
  .values-grid,
  .values-grid-3-2 { grid-template-columns: 1fr; }
  .orgs-grid { grid-template-columns: repeat(2, 1fr); }
  .subpages-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.5rem; }
}
