/* ============================================================
   QUIÉNES SOMOS — about.css
   Ubicar en: web/css/about.css
   Cargar desde la view con: $this->registerCssFile('@web/css/about.css');
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.qs-hero {
  position: relative;
  padding: 72px 24px 80px;
  text-align: center;
  background-color: #174510;
  /* Textura puntos — cámbiala por opt2/opt3 si prefieres */
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow: hidden;

  /* Para hacer el efecto de "full bleed" en desktop: */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  margin-top: -70px;
}

.qs-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.qs-hero__tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.qs-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
}

.qs-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  color: rgba(255,255,255,.85);
  margin-bottom: 24px;
  font-style: italic;
}

.qs-hero__lead {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

.qs-hero__lead strong { color: #fff; }

/* Emojis flotantes decorativos */
.qs-hero__deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.qs-hero__deco span {
  position: absolute;
  font-size: 2rem;
  opacity: .12;
}

.qs-hero__deco span:nth-child(1) { top: 12%; left:  6%; font-size: 2.5rem; }
.qs-hero__deco span:nth-child(2) { top: 20%; right: 8%; font-size: 3rem;   }
.qs-hero__deco span:nth-child(3) { bottom: 18%; left: 14%; font-size: 2rem; }
.qs-hero__deco span:nth-child(4) { bottom: 12%; right: 6%; font-size: 2.5rem; }
.qs-hero__deco span:nth-child(5) { top: 55%; left: 3%;  font-size: 1.8rem; }

/* ── STATS ────────────────────────────────────────────────── */
.qs-stats {
  background: #fff;
  border-bottom: 1px solid #e8f5e9;
  padding: 0 24px;
}

.qs-stats__inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.qs-stat {
  padding: 28px 16px;
  border-right: 1px solid #e8f5e9;
}

.qs-stat:last-child { border-right: none; }

.qs-stat__num {
  font-size: 2.4rem;
  font-weight: 800;
  color: #174510;
  line-height: 1;
}

.qs-stat__num span { font-size: 1.4rem; }

.qs-stat__label {
  font-size: 11px;
  color: #888;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* ── BLOQUES DE CONTENIDO ─────────────────────────────────── */
.qs-content { background: #fff; }

.qs-block {
  padding: 64px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.qs-block--alt {
  background: #f9fdf9;
}

/* Bloque verde con textura */
.qs-block--green {
  background-color: #174510;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
}

.qs-block--green p {
  color: rgba(255,255,255,.85);
}

.qs-block--green a.qs-link--white {
  color: #a5d6a7;
  text-decoration: underline;
}

.qs-block--green a.qs-link--white:hover { color: #fff; }

.qs-block__inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  align-items: flex-start;
}

.qs-block__inner--reverse {
  grid-template-columns: 1fr 100px;
}

.qs-block__inner--reverse .qs-block__icon {
  order: 2;
  text-align: right;
}

.qs-block__icon {
  font-size: 3.2rem;
  line-height: 1;
  padding-top: 6px;
  opacity: .85;
}

.qs-block__title {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  line-height: 1.3;
}

.qs-block__title--white { color: #fff; }

.qs-block__text p {
  font-size: .97rem;
  color: #555;
  line-height: 1.85;
  margin-bottom: 14px;
}

.qs-block__text__white p {
  color: white;
}

.qs-block__text p:last-child { margin-bottom: 0; }

.qs-block__text a {
  color: #174510;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(46,125,50,.3);
  transition: border-color .2s, color .2s;
}

.qs-block__text a:hover {
  color: #1b5e20;
  border-bottom-color: #1b5e20;
}

/* ── CTA FINAL ────────────────────────────────────────────── */
.qs-cta {
  background: #1b5e20;
  padding: 72px 24px;
  text-align: center;

  /* Full bleed en desktop: */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  margin-bottom: -20px;
}

.qs-cta__inner {
  max-width: 640px;
  margin: 0 auto;
}

.qs-cta__emoji {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.qs-cta__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.qs-cta__text {
  font-size: .97rem;
  color: rgba(255,255,255,.78);
  line-height: 1.8;
  margin-bottom: 32px;
}

.qs-cta__btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.qs-btn {
  display: inline-block;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: all .25s;
}

.qs-btn--primary {
  background: #fff;
  color: #174510;
}

.qs-btn--primary:hover {
  background: #e8f5e9;
  color: #1b5e20;
  transform: translateY(-2px);
}

.qs-btn--secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}

.qs-btn--secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
}

.qs-cta__welcome {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  font-style: italic;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .qs-hero { padding: 52px 20px 60px; }

  .qs-stats__inner { grid-template-columns: repeat(2, 1fr); }
  .qs-stat { border-right: none; border-bottom: 1px solid #e8f5e9; padding: 20px 12px; }
  .qs-stat:nth-child(2n) { border-right: none; }

  .qs-block { padding: 44px 20px; }

  /* En móvil: ícono arriba, texto abajo */
  .qs-block__inner,
  .qs-block__inner--reverse {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .qs-block__inner--reverse .qs-block__icon {
    order: 0;
    text-align: left;
  }

  .qs-block__icon { font-size: 2.2rem; }

  .qs-cta { padding: 52px 20px; }
}

/* ============================================================
   IMÁGENES EN BLOQUES — agregado
   ============================================================ */

/* Hero con imagen de fondo */
.qs-hero {
  position: relative;
  padding: 72px 24px 80px;
  text-align: center;
  overflow: hidden;
  /* Quitamos el background-color anterior — lo pone la imagen */
  background: #1b5e20;
}

.qs-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.qs-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  /* Oscurecemos la imagen para que el texto se lea bien */
  filter: brightness(0.38);
}

.qs-hero__inner {
  position: relative;
  z-index: 2; /* encima de la imagen */
}

/* Layout de bloque con imagen + texto lado a lado */
.qs-block__inner--img {
  grid-template-columns: 1fr 1fr;  /* imagen y texto al 50/50 */
  gap: 48px;
  align-items: center;
}

.qs-block__inner--img.qs-block__inner--reverse .qs-block__img {
  order: 2;
}

.qs-block__inner--img.qs-block__inner--reverse .qs-block__text {
  order: 1;
}

/* Contenedor de imagen */
.qs-block__img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  aspect-ratio: 4 / 3;
  background: #e8f5e9;
}

.qs-block__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.qs-block__img:hover img {
  transform: scale(1.04); /* zoom suave al pasar el cursor */
}

/* Variante con bordes más redondeados para la foto del carnaval */
.qs-block__img--rounded {
  border-radius: 50% 12px 50% 12px; /* forma orgánica */
}

/* Bloque verde — imagen con borde blanco semitransparente */
.qs-block--green .qs-block__img {
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  border: 3px solid rgba(255,255,255,0.15);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {

  /* En tablet/móvil: imagen arriba, texto abajo */
  .qs-block__inner--img {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .qs-block__inner--img.qs-block__inner--reverse .qs-block__img,
  .qs-block__inner--img.qs-block__inner--reverse .qs-block__text {
    order: unset;
  }

  /* La imagen va siempre primero en móvil */
  .qs-block__img { order: -1 !important; }

  /* Forma orgánica solo en desktop */
  .qs-block__img--rounded { border-radius: 12px; }

  /* Hero más compacto en móvil */
  .qs-hero { padding: 52px 20px 60px; }
}