/* =========================================================================
   nosotros.css — Página "Sobre Nosotros" de Lizagro.
   Look editorial/elegante (estilo inmobiliaria premium) manteniendo la
   identidad verde de la marca. Animaciones (reveal + contadores) en
   js/nosotros.js con GSAP + ScrollTrigger.
   ========================================================================= */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&display=swap");

:root {
  --ink-900: #10231a;
  --ink-700: #33413a;
  --gold: #c8992b;
}

.about-page { background: #fff; color: var(--ink-700); }

.about-eyebrow {
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--primary, #2e7d32);
  font-weight: 600;
  margin: 0 0 1rem;
}
.serif { font-family: "Playfair Display", Georgia, serif; }

/* Reveal base — oculto por defecto; js/nosotros.js lo anima (o lo revela como
   fallback si GSAP no carga). Con reduced-motion se muestra sin animación. */
.reveal { opacity: 0; transform: translateY(34px); }
/* Direcciones de entrada (deben ir después de .reveal para ganarle) */
.reveal--left  { transform: translateX(-70px); }
.reveal--right { transform: translateX(70px); }
.reveal--back  { transform: scale(.6); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}
/* En móvil la entrada lateral se vuelve vertical: 70px sobre una pantalla de
   360px es un 20% del ancho, y como las tarjetas quedan aparcadas en esa
   posición hasta que el scroll las revela, ensanchaban la página de verdad
   (el header fixed se estiraba con ella y la hamburguesa se salía). */
@media (max-width: 1024px) {
  .reveal--left,
  .reveal--right { transform: translateY(34px); }
}

/* ------------------------------------------------------------------ HERO */
.about-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.about-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("/assets/img/general/finca-aire.webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.12);        /* GSAP hace un leve zoom-out de entrada */
}
.about-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,35,26,.25) 0%, rgba(10,35,26,.35) 45%, rgba(10,35,26,.85) 100%);
}
.about-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(1.25rem, 5vw, 3rem) clamp(3rem, 8vw, 6rem);
}
.about-hero__eyebrow {
  font-size: .8rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.85); margin: 0 0 1rem;
}
.about-hero__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  line-height: 1.03;
  margin: 0;
  max-width: 18ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.about-hero__sub {
  margin: 1.5rem 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: rgba(255,255,255,.9);
  max-width: 52ch;
  line-height: 1.6;
}

/* --------------------------------------------------------------- SECCIONES */
.about-section { max-width: 1150px; margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 5vw, 3rem); }

/* Historia (2 columnas) */
.about-story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;            /* imagen izquierda · texto derecha */
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-story__media { position: relative; aspect-ratio: 4/5; }
.about-story__media img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(0,0,0,.18);
}
.about-story__media::after {
  content: "";
  position: absolute; inset: auto -18px -18px auto;
  width: 55%; height: 55%;
  border: 2px solid var(--primary-light, #60ad5e);
  border-radius: 6px; z-index: -1;
}
.about-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  color: var(--ink-900);
  line-height: 1.1;
  margin: 0 0 1.5rem;
}
.about-story__text p { line-height: 1.8; margin: 0 0 1.15rem; font-size: 1.05rem; }
.about-signature {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #ececec;
}
.about-signature strong { display: block; color: var(--ink-900); font-size: 1.05rem; }
.about-signature span { font-size: .9rem; color: #7a857f; }

/* ------------------------------------------------------------------ STATS */
.about-stats { background: var(--logo-green, #02994d); color: #fff; }
.about-stats__inner {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 3rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  text-align: center;
}
.about-stat__value {
  /* Sans geométrica, en la línea del logo (a y g de un solo piso) */
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1;
  letter-spacing: -0.01em;
  color: #fff;
}
.about-stat__value .u { color: var(--accent, #f9a825); }
.about-stat__label {
  display: block; margin-top: .8rem;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

/* --------------------------------------------------------------- MISIÓN/VISIÓN */
.about-mv {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: stretch;
}
.about-mv__media { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,.14); }
/* Crossfade entre nosotros2 y nosotros (misma sección) */
.about-mv__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity 1s ease;
}
.about-mv__img.is-active { opacity: 1; }
.about-mv__cards { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-content: start; }
.about-card {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 8px;
  background: var(--cream, #f7f5f0);
  border: 1px solid #efe9df;
  overflow: hidden;
}
.about-card--dark { background: var(--ink-900); color: #e9f3ee; border-color: transparent; }
.about-card__num {
  font-family: "Playfair Display", serif; font-size: 5rem; line-height: 1;
  color: rgba(46,125,50,.12); position: absolute; top: .5rem; right: 1.25rem;
}
.about-card--dark .about-card__num { color: rgba(255,255,255,.08); }
.about-card h3 {
  position: relative; z-index: 1;
  font-family: "Playfair Display", serif; font-size: 1.9rem; margin: 0 0 1rem; color: inherit;
}
.about-card--dark h3 { color: #fff; }
.about-card p { position: relative; z-index: 1; line-height: 1.8; margin: 0; font-size: 1.02rem; }
.about-card--dark p { color: rgba(233,243,238,.85); }

/* ------------------------------------------------------------------ VALORES */
.about-values__head { text-align: center; max-width: 60ch; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.about-values__head p { line-height: 1.8; font-size: 1.05rem; }
.about-values__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem);
}
.value-card {
  padding: 2rem 1.75rem; border-radius: 8px; background: #fff;
  border: 1px solid #eee; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.09); border-color: #e0efe3; }
.value-card__icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: #eaf5ec; margin-bottom: 1.1rem;
}
.value-card h4 { font-size: 1.2rem; color: var(--ink-900); margin: 0 0 .5rem; font-family: "Poppins", sans-serif; }
.value-card p { line-height: 1.65; margin: 0; font-size: .96rem; color: #5b665f; }

/* ------------------------------------------------------------------ QUOTE / FUNDADOR */
.about-quote { position: relative; color: #fff; overflow: hidden; }
.about-quote__bg {
  position: absolute; inset: 0;
  background-image: url("/assets/img/pi%C3%B1a6.webp");
  background-size: cover; background-position: center;
}
.about-quote__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,50,25,.9) 0%, rgba(0,50,25,.55) 100%); }
.about-quote__inner {
  position: relative; z-index: 2; max-width: 1000px; margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 5vw, 3rem);
}
.about-quote blockquote {
  font-family: "Playfair Display", serif; font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.3; margin: 0; max-width: 24ch;
}
.about-quote blockquote::before { content: "“"; color: var(--accent, #f9a825); font-size: 1.3em; line-height: 0; vertical-align: -.35em; margin-right: .1em; }
.about-quote blockquote::after  { content: "”"; color: var(--accent, #f9a825); font-size: 1.3em; line-height: 0; vertical-align: -.35em; margin-left: .06em; }
.about-quote cite { display: block; margin-top: 2rem; font-style: normal; }
.about-quote cite strong { display: block; font-size: 1.1rem; }
.about-quote cite span { font-size: .9rem; color: rgba(255,255,255,.75); }

/* ------------------------------------------------------------------ CTA */
.about-cta {
  position: relative;
  text-align: center;
  background-image: url("/assets/img/general/barco.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
}
/* Velo oscuro para que el texto se lea sobre la foto */
.about-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,30,22,.74) 0%, rgba(6,30,22,.80) 100%);
}
.about-cta__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem); }
.about-cta h2 { font-family: "Playfair Display", serif; font-size: clamp(1.9rem, 4vw, 2.8rem); color: #fff; margin: 0 0 1rem; }
.about-cta p { line-height: 1.7; margin: 0 0 2rem; font-size: 1.08rem; color: rgba(255,255,255,.88); }
/* Botón outline legible sobre la foto */
.about-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.75); }
.about-cta .btn-ghost:hover { background: #fff; color: var(--logo-green, #02994d); border-color: #fff; }
.about-cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-solid, .btn-ghost {
  display: inline-flex; align-items: center; padding: .95rem 2rem; border-radius: .6rem;
  font-weight: 600; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn-solid { background: var(--primary, #2e7d32); color: #fff; }
.btn-solid:hover { background: var(--primary-dark, #005005); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--primary, #2e7d32); color: var(--primary, #2e7d32); }
.btn-ghost:hover { background: var(--primary, #2e7d32); color: #fff; transform: translateY(-2px); }

/* ------------------------------------------------------------------ RESPONSIVE */
@media (max-width: 860px) {
  .about-story { grid-template-columns: 1fr; }
  .about-story__media { order: -1; max-width: 460px; margin: 0 auto; }
  .about-stats__inner { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
  .about-mv { grid-template-columns: 1fr; }
  .about-mv__media { aspect-ratio: 3 / 2; }
  .about-values__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .about-stats__inner { grid-template-columns: 1fr; }
}

/* Tablet: los valores pasaban de 3 columnas a 1 centrada; con 2 se aprovecha
   el ancho sin apretar el texto. */
@media (min-width: 620px) and (max-width: 860px) {
  .about-values__grid { grid-template-columns: repeat(2, 1fr); max-width: none; }
}

@media (max-width: 600px) {
  .value-card { padding: 1.5rem 1.25rem; }
  .value-card__icon { width: 46px; height: 46px; margin-bottom: .9rem; }
  .about-quote blockquote { max-width: none; }
  .about-quote cite { margin-top: 1.4rem; }
  .about-cta__actions { flex-direction: column; align-items: stretch; }
  .btn-solid, .btn-ghost { justify-content: center; }
}
