/* ==========================================================================
   VDN Brands — pages/nosotros.css
   Estilos de las cuatro páginas de Nosotros: Historia, Política de
   calidad, Cultura organizacional e Impacto social.
   ========================================================================== */

/* ==================== Historia ==================== */
.story {
  --split-min: 440px;
}

.story__text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.story__lead {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.story__note {
  max-width: 560px;
}

.story-photo {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.story-photo__sun {
  position: absolute;
  right: -18%;
  top: -12%;
  width: 80%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--accent);
}

.story-photo__ring {
  position: absolute;
  left: -10%;
  bottom: -16%;
  width: 70%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(245, 243, 238, 0.3);
  border-radius: 50%;
}

.story-photo__word {
  position: absolute;
  left: 8%;
  bottom: 8%;
  font-size: clamp(90px, 11vw, 170px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.07em;
}

/* Línea de tiempo */
.timeline {
  position: relative;
}

.timeline__line {
  position: absolute;
  left: clamp(7px, 1vw, 15px);
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: rgba(245, 243, 238, 0.25);
  transform-origin: 50% 0;
}

/* La línea se dibuja de arriba hacia abajo cuando aparece en pantalla */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .timeline__line[data-reveal].is-visible {
    animation: grow-y 1.8s var(--ease-out) both;
  }
}

.milestones {
  list-style: none;
}

.milestone {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 12px 40px;
  padding: 36px 24px 36px clamp(40px, 5vw, 72px);
  border-radius: 20px;
  transition: background-color 0.35s ease;
}

.milestone:hover {
  background: var(--ink-2);
}

.milestone__dot {
  position: absolute;
  left: clamp(1px, 1vw, 9px);
  top: 48px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
}

.milestone--now .milestone__dot {
  left: clamp(0px, 1vw, 8px);
  top: 47px;
  width: 15px;
  height: 15px;
  border: 0;
  background: var(--accent);
}

.milestone__year {
  font-size: clamp(44px, 5vw, 80px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  transition: color 0.35s ease;
}

.milestone:hover .milestone__year,
.milestone--now .milestone__year {
  color: var(--accent);
}

.milestone__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.milestone__title {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.milestone__text {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

/* Cita */
.quote {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.quote__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(34px, 4.4vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.quote__author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quote__avatar {
  width: 56px;
  height: 56px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
}

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

.quote__name {
  font-size: 18px;
  font-weight: 600;
}

.quote__role {
  font-size: 15px;
  color: var(--muted-on-light);
}

/* ==================== Política de calidad ==================== */
.policy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(32px, 5vw, 80px);
  border-radius: var(--radius-xl);
  background: var(--paper);
  color: var(--ink);
}

.policy .eyebrow {
  color: var(--muted-on-light);
}

.policy__aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.policy__titles {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.policy__title {
  font-size: clamp(40px, 4.6vw, 72px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.policy__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.policy__version {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-on-light);
}

.policy__text {
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.015em;
}

/* Compromisos */
.commit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 16px;
  list-style: none;
}

.commit-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
  padding: 32px;
  border-radius: 28px;
}

.commit-card:hover {
  background: var(--ink-3);
}

.commit-card__icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #1C1C1F;
  color: var(--accent);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.45s var(--ease-out);
}

.commit-card:hover .commit-card__icon {
  background: var(--accent);
  color: var(--ink);
  transform: rotate(-8deg);
}

.commit-card__title {
  margin-top: auto;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.commit-card__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* Puntos de control */
.checklist {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.check:last-child {
  border-bottom: 1px solid var(--line);
}

.check__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
}

.check__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check__title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.check__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* ==================== Cultura organizacional ==================== */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 16px;
}

.mv-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 460px;
  padding: clamp(32px, 4vw, 56px);
  border-radius: clamp(28px, 3vw, 40px);
  color: var(--ink);
}

.mv-card--lime {
  background: var(--accent);
}

.mv-card--paper {
  background: var(--paper);
}

.mv-card .eyebrow {
  color: var(--ink);
}

.mv-card__deco {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
}

.mv-card__text {
  margin-top: auto;
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* Valores: pestañas */
.values {
  --split-min: 440px;
}

.values__tabs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.value-tab {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 0 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted-2);
  text-align: left;
  transition: color 0.3s ease;
}

.value-tab:hover,
.value-tab[aria-selected="true"] {
  color: var(--paper);
}

.value-tab__row {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.value-tab__num {
  font-family: var(--font-mono);
  font-size: 13px;
}

.value-tab[aria-selected="true"] .value-tab__num {
  color: var(--accent);
}

.value-tab__name {
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.value-tab__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease-out);
}

.value-tab[aria-selected="true"] .value-tab__bar {
  transform: scaleX(1);
}

.values__panels {
  position: sticky;
  top: 40px;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(28px, 3vw, 40px);
  background: var(--ink-2);
}

.value-panel {
  position: relative;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(32px, 4vw, 56px);
  animation: swap-in 0.6s var(--ease-out) both;
}

.value-panel[hidden] {
  display: none;
}

.value-panel__bg {
  position: absolute;
  right: -2%;
  bottom: -12%;
  font-size: clamp(180px, 22vw, 340px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  color: #1B1B1E;
}

.value-panel__label,
.value-panel__name,
.value-panel__text {
  position: relative;
}

.value-panel__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.value-panel__name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(44px, 5vw, 80px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.value-panel__text {
  margin-top: auto;
  max-width: 460px;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.5;
  color: var(--text-2);
}

/* Galería del equipo */
.bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  grid-auto-rows: 280px;
  gap: 16px;
  list-style: none;
}

.bento__tile {
  height: 100%;
  transition: transform 0.6s var(--ease-out);
}

.bento__tile:hover {
  transform: scale(0.98);
}

.tile-a { background: var(--ink-4); }
.tile-b { background: var(--paper); }
.tile-c { background: var(--accent); }
.tile-d { background: var(--ink-5); }

.tile-a__sun {
  position: absolute;
  left: 12%;
  top: 18%;
  width: 46%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--accent);
}

.tile-a__ring {
  position: absolute;
  right: 10%;
  bottom: 14%;
  width: 38%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(245, 243, 238, 0.35);
  border-radius: 50%;
}

.tile-b__frame {
  position: absolute;
  inset: 20% 14%;
  border: 2px solid var(--ink);
  border-radius: 16px;
}

.tile-b__line {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 50%;
  height: 2px;
  background: var(--ink);
}

.tile-c__amp {
  position: absolute;
  right: -10%;
  top: -10%;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 240px;
  line-height: 1;
  color: var(--ink);
}

.tile-d__bars {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 26%;
  height: 46%;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.tile-d__bars span {
  flex: 1;
  border-radius: 8px;
  background: #3A3A3E;
}

.tile-d__bars span:nth-child(1) { height: 40%; }
.tile-d__bars span:nth-child(2) { height: 70%; }
.tile-d__bars span:nth-child(3) { height: 100%; background: var(--accent); }

/* Únete al equipo */
.join-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: clamp(36px, 5vw, 72px);
  border-radius: var(--radius-xl);
}

.join-card__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
}

.join-card__title {
  font-size: clamp(36px, 4.6vw, 72px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.join-card__text {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}

/* ==================== Impacto social ==================== */
.impact-intro {
  max-width: 620px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 16px;
  list-style: none;
}

.impact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 340px;
  padding: clamp(28px, 3.4vw, 48px);
  border: 1px solid rgba(245, 243, 238, 0.14);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  transition: color 0.4s ease, border-color 0.4s ease;
}

.impact-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: -1;
  width: 260%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, 0) scale(0);
  transform-origin: 50% 0;
  transition: transform 0.7s var(--ease-in-out);
}

.impact-card:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.impact-card:hover::before {
  transform: translate(-50%, -60%) scale(1);
}

.impact-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.impact-card__num {
  font-family: var(--font-mono);
  font-size: 13px;
}

.impact-card__title {
  margin-top: auto;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.impact-card__text {
  max-width: 520px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  transition: color 0.4s ease;
}

.impact-card:hover .impact-card__text {
  color: var(--ink);
}

.impact-card__result {
  align-self: flex-start;
  padding: 8px 14px;
  border: 1px solid rgba(245, 243, 238, 0.2);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  transition: border-color 0.4s ease;
}

.impact-card:hover .impact-card__result {
  border-color: rgba(11, 11, 12, 0.3);
}

/* Cifras */
.stats {
  border-block: 1px solid var(--line);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 40px 24px;
  padding-block: clamp(56px, 6vw, 96px);
  list-style: none;
}

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

.stat__value {
  font-size: clamp(56px, 6vw, 96px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--accent);
}

.stat__label {
  font-size: 17px;
  color: var(--muted);
}

/* Iniciativa destacada */
.featured {
  --split-min: 440px;
}

.featured__media {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.featured__orb {
  position: absolute;
  left: 14%;
  top: 16%;
  width: 44%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--accent);
}

.featured__orb--ring {
  left: auto;
  right: 12%;
  top: 30%;
  width: 34%;
  border: 2px solid var(--ink);
  background: transparent;
  animation-delay: -3s;
}

.featured__line {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 16%;
  height: 2px;
  background: var(--ink);
}

.featured__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.featured__title {
  font-size: clamp(38px, 4.4vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.featured__text {
  max-width: 520px;
}
