/* ===================================================
   quienes-somos.css — Estilos exclusivos .qs-
   TeatroArt | Quiénes Somos
   =================================================== */

/* ── Variables locales ── */
:root {
  --qs-gold: #FFD700;
  --qs-gold-dark: #FFA500;
  --qs-red-dark: #5B0B0B;
  --qs-black: #000000;
  --qs-white: #ffffff;
  --qs-text-muted: rgba(255, 255, 255, 0.78);
  --qs-border-subtle: rgba(255, 255, 255, 0.08);
  --qs-border-gold: rgba(255, 215, 0, 0.25);
}

/* ── Reset de página ── */
html { background-color: var(--qs-black); }
body.custom-bg { background-color: var(--qs-black) !important; }

/* ───────────────────────────────────────────────────
   HERO QUIÉNES SOMOS
   ─────────────────────────────────────────────────── */
.qs-hero {
  position: relative;
  padding-top: 80px; /* altura del navbar */
  background: linear-gradient(160deg, #1a0303 0%, #0d0000 60%, #000 100%);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
}

.qs-hero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.qs-hero__deco::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(91, 11, 11, 0.35) 0%, transparent 70%);
}

.qs-hero__deco::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
}

.qs-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.qs-hero__eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--qs-gold);
  margin-bottom: 0.75rem;
}

.qs-hero__h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.05;
  color: var(--qs-white);
  margin: 0 0 1.25rem;
  letter-spacing: -0.5px;
}

.qs-hero__lead {
  max-width: 680px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--qs-text-muted);
  margin: 0;
}

@media (min-width: 768px) {
  .qs-hero {
    min-height: 400px;
    padding-bottom: 4rem;
  }
  .qs-hero__h1 { font-size: 4rem; }
}

@media (min-width: 1280px) {
  .qs-hero__inner { padding: 0 3rem; }
  .qs-hero__h1 { font-size: 5rem; }
}

/* ───────────────────────────────────────────────────
   SECCIÓN GENÉRICA
   ─────────────────────────────────────────────────── */
.qs-section {
  padding: 5rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.qs-section--full {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.qs-section--dark {
  background: #06000A;
}

.qs-section--darker {
  background: #000;
}

.qs-section--band {
  background: linear-gradient(135deg, #0f0000 0%, #1a0303 100%);
}

.qs-section__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

@media (min-width: 1280px) {
  .qs-section { padding: 6rem 3rem; }
  .qs-section__inner { padding: 6rem 3rem; }
}

/* ── Section header ── */
.qs-section-header {
  margin-bottom: 3rem;
}

.qs-section-eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--qs-gold);
  margin-bottom: 0.75rem;
}

.qs-section-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--qs-white);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.qs-section-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--qs-text-muted);
  max-width: 760px;
}

@media (min-width: 768px) {
  .qs-section-title { font-size: 2.5rem; }
}

/* ───────────────────────────────────────────────────
   MISIÓN / VISIÓN — columnas
   ─────────────────────────────────────────────────── */
.qs-mv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .qs-mv-grid { grid-template-columns: 1fr 1fr; }
}

.qs-mv-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--qs-border-subtle);
  border-radius: 1.25rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.qs-mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--qs-gold), var(--qs-gold-dark));
  border-radius: 1.25rem 1.25rem 0 0;
}

.qs-mv-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.qs-mv-card__title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--qs-white);
  margin: 0 0 1rem;
}

.qs-mv-card__text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--qs-text-muted);
  margin: 0;
}

/* ───────────────────────────────────────────────────
   HISTORIA — TIMELINE
   ─────────────────────────────────────────────────── */
.qs-timeline {
  position: relative;
  padding-left: 0;
}

@media (min-width: 768px) {
  .qs-timeline {
    padding-left: 2rem;
  }
  .qs-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--qs-gold), var(--qs-gold-dark), transparent);
  }
}

.qs-timeline__decade {
  margin-bottom: 3rem;
}

.qs-timeline__decade-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--qs-gold);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qs-timeline__decade-title::before {
  content: '';
  display: none;
}

@media (min-width: 768px) {
  .qs-timeline__decade-title::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--qs-gold);
    flex-shrink: 0;
    margin-left: -2.5625rem; /* (2rem padding + 2px line / 2 + 6px radio) */
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.2);
  }
}

.qs-timeline__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.qs-timeline__item {
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 0.625rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--qs-text-muted);
  line-height: 1.4;
}

.qs-timeline__item strong {
  display: block;
  color: var(--qs-white);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.qs-timeline__item em {
  font-style: normal;
  color: var(--qs-gold);
  font-weight: 600;
}

/* ───────────────────────────────────────────────────
   PROCESO PASO A PASO — stepper vertical
   ─────────────────────────────────────────────────── */
.qs-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.qs-step {
  display: flex;
  gap: 1.25rem;
  position: relative;
}

.qs-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.1875rem; /* mitad del número */
  top: 2.75rem;
  bottom: 0;
  width: 2px;
  background: rgba(255, 215, 0, 0.18);
}

.qs-step__num {
  flex-shrink: 0;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--qs-gold), var(--qs-gold-dark));
  color: #000;
  font-weight: 900;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.qs-step__body {
  padding: 0.25rem 0 2rem;
  flex: 1;
}

.qs-step__phase {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--qs-gold);
  margin-bottom: 0.25rem;
}

.qs-step__text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--qs-text-muted);
  margin: 0;
}

@media (min-width: 768px) {
  .qs-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
    row-gap: 0;
  }

  .qs-step:not(:last-child)::after {
    /* En dos columnas la línea vertical solo aplica dentro de la misma columna */
    bottom: -1rem;
  }
}

@media (min-width: 1280px) {
  .qs-steps {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ───────────────────────────────────────────────────
   INSTAFORO — tarjetas con número
   ─────────────────────────────────────────────────── */
.qs-instaforo-intro {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--qs-text-muted);
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.qs-instaforo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
}

@media (min-width: 640px) {
  .qs-instaforo-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .qs-instaforo-grid { grid-template-columns: repeat(3, 1fr); }
}

.qs-instaforo-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--qs-border-subtle);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.qs-instaforo-item:hover {
  border-color: var(--qs-border-gold);
  background: rgba(255, 215, 0, 0.03);
}

.qs-instaforo-item__num {
  flex-shrink: 0;
  font-size: 1.375rem;
  font-weight: 900;
  color: var(--qs-gold);
  line-height: 1;
  min-width: 1.5rem;
}

.qs-instaforo-item__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--qs-text-muted);
  margin: 0;
}

/* ───────────────────────────────────────────────────
   APOYOS — grid de iconos / texto
   ─────────────────────────────────────────────────── */
.qs-apoyos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .qs-apoyos-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .qs-apoyos-grid { grid-template-columns: repeat(4, 1fr); }
}

.qs-apoyo-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--qs-border-subtle);
  border-radius: 1rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.qs-apoyo-card:hover {
  border-color: var(--qs-border-gold);
  transform: translateY(-3px);
}

.qs-apoyo-card__icon {
  font-size: 2rem;
  margin-bottom: 0.875rem;
  display: block;
}

.qs-apoyo-card__text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--qs-text-muted);
  margin: 0;
}

/* ───────────────────────────────────────────────────
   GUÍA PEDAGÓGICA — banner destacado
   ─────────────────────────────────────────────────── */
.qs-guia {
  background: linear-gradient(135deg, rgba(91, 11, 11, 0.45) 0%, rgba(74, 13, 13, 0.35) 100%);
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .qs-guia {
    flex-direction: row;
    align-items: center;
    padding: 3rem;
  }
}

.qs-guia__logo {
  flex-shrink: 0;
  width: auto;
  height: 72px;
  object-fit: contain;
  filter: brightness(1.1);
}

.qs-guia__body {
  flex: 1;
}

.qs-guia__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--qs-white);
  margin: 0 0 0.75rem;
}

.qs-guia__text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--qs-text-muted);
  margin: 0;
  max-width: 640px;
}

/* ───────────────────────────────────────────────────
   CTA FINAL
   ─────────────────────────────────────────────────── */
.qs-cta {
  text-align: center;
}

.qs-cta__title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--qs-white);
  margin: 0 0 1rem;
}

.qs-cta__text {
  font-size: 1.0625rem;
  color: var(--qs-text-muted);
  margin: 0 0 2.5rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.qs-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.qs-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: var(--qs-gold);
  color: #000;
  font-weight: 800;
  font-size: 0.9375rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.qs-btn-primary:hover {
  background: #f5c800;
  transform: translateY(-2px);
}

.qs-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--qs-white);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.qs-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

/* ───────────────────────────────────────────────────
   DIVISOR DORADO
   ─────────────────────────────────────────────────── */
.qs-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--qs-gold), var(--qs-gold-dark));
  border-radius: 9999px;
  margin: 0 0 2rem;
}

/* ───────────────────────────────────────────────────
   LOGOS INSTAFORO / GUIA PEDAGOGICA en sección Instaforo
   ─────────────────────────────────────────────────── */
.qs-logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.qs-logos-row img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}
