/* =========================
   NAV transparente (solo Nosotros)
========================= */

.page-nosotros .header {
  background: transparent !important;
}

.page-nosotros .nav {
  background: transparent !important;
}

/* Si en layout.css el scrolled le mete fondo negro, lo anulamos */
.page-nosotros .nav.isScrolled {
  background: transparent !important;
}

/* Mantener links blancos */
.page-nosotros .nav,
.page-nosotros .nav a {
  color: rgba(255, 255, 255, 0.92);
}

/* =========================
   NOSOTROS — HERO
========================= */

.aboutHero {
  position: relative;
  width: 100%;
  height: clamp(520px, 72vh, 820px); /* controla el alto */
  overflow: hidden;
}

.aboutHeroMedia {
  position: absolute;
  inset: 0;
}

.aboutHeroMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aboutHeroOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.05)
  );
  opacity: 0.25;
  pointer-events: none;
}

/* =========================
   NOSOTROS — ENTORNO
========================= */

.entorno {
  padding: 78px 0 88px;
}

.entornoInner {
  padding: 0 48px;
}

.entornoHeading {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 22px;
  color: #747474;
  text-align: center;
}

/* Carrusel */
/* Carrusel: scrolleable pero sin scrollbar */
#entorno .entornoCarousel {
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge viejo */
}
#entorno .entornoCarousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carouselTrack {
  display: flex;
  justify-content: center;
  gap: 40px;
  width: max-content;
  margin: 0 auto;
  overflow: visible;
}

.carouselTrack:active {
  cursor: grabbing;
}

#entorno .carouselItem {
  width: 700px;
  height: 476px;
  flex: 0 0 auto;
  border-radius: 0;
}

#entorno .carouselItem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Texto */
.entornoText {
  margin-top: 34px;
  max-width: 620px;
}

.entornoTitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
  color: #747474;
}

.entornoBody {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  margin: 0;
  color: #747474;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 1200px) {
  #entorno .carouselItem {
    width: 58vw;
    height: auto;
    aspect-ratio: 700 / 476;
  }
}

@media (max-width: 860px) {
  #entorno .carouselItem {
    width: 78vw;
  }
}

/* =========================
   CARÁCTER DEL VALLE
========================= */

.valle {
  background: #fff;
  padding: 96px 0 110px;
}

.valleInner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Imagen principal */

.valleHero {
  margin-bottom: 36px;
}

.valleHero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Grid inferior */

.valleGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}

.valleGrid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Texto */

.valleText {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.sectionTitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  letter-spacing: 0.18em;
  margin-bottom: 28px;
  color: #747474;
}

.sectionBody {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.85;
}

.sectionBody p + p {
  margin-top: 14px;
}
@media (max-width: 900px) {
  .valleGrid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .valleInner {
    padding: 0 24px;
  }
}

/* =========================
   NOSOTROS — NUESTROS VIÑEDOS
========================= */

.vineyards {
  background-color: var(--bg-cream);
  padding: 96px 0 120px;
}

/* Header sección */
.vineyardsHeader {
  text-align: center;
  margin-bottom: 72px;
}

.sectionEyebrow {
  font-family: "Raleway"; /* Raleway */
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #7a7a7a;
}

.vineyardTitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  font-style: italic;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 48px;
  margin-top: 48px;
  color: #7a7a7a;
}

/* Imágenes */
.vineyardImages {
  display: grid;
}

.vineyardImages img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Layouts de grilla */
.gridA {
  grid-template-columns: 1fr 1fr;
}

/* las dos chicas arriba */
.gridA img:nth-child(2) {
  grid-column: 1 / 2;
}

.gridA img:nth-child(3) {
  grid-column: 2 / 3;
}

/* la grande abajo ocupando todo */
.gridA img:nth-child(1) {
  grid-column: 1 / -1;
  grid-row: 2;
}

.gridB {
  grid-template-columns: 1fr 1fr;
}

.gridB img:first-child {
  grid-column: 1 / -1;
}

.vineyardLogo {
  width: 64px;
  height: auto;
  opacity: 0.85;
}

.vineyardTextPaper {
  background-color: #ffffff;

  /* ocupa “una pantalla” */
  min-height: 60vh;
  width: 100%;

  /* centra contenido */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* aire interno */
  padding: 48px 24px;

  text-align: center;
}

.vineyardTextPaper p {
  max-width: 520px;
  margin: 0 auto 32px;

  font-family: "Raleway";
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: #7a7a7a;
}

.vineyardSubHeader {
  font-size: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: #7a7a7a;
}

@media (min-width: 1024px) {
  .vineyardTextPaper {
    min-height: 80vh;
  }
}
@media (max-width: 768px) {
  .gridA {
    grid-template-columns: 1fr;
  }

  .gridA img {
    grid-column: auto;
    grid-row: auto;
  }
}

/* =========================
   NUESTRO EQUIPO
========================= */

.team {
  background: var(--bg-cream);
  padding: 12px 0px 0px;
}

.teamInner {
  padding: 0 48px;
  width: 100%;
  margin: 0 auto;
}

/* Header */
.teamHeader {
  text-align: center;
  margin-bottom: 56px;
}

.teamTitle {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dark);
  opacity: 0.7;
}

/* Grid */
.teamGrid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}

.teamRowTop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.teamRowBottom {
  width: 100%;
}

.teamImg {
  overflow: hidden;
}

.teamImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ratios */
.ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.ratio-wide {
  aspect-ratio: 16 / 6;
}

/* =========================
 TEXTO
========================= */

.teamTextWrap {
  background: #fff;
  padding: 56px 0;

  /* FULL BLEED REAL aunque haya wrappers con padding */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.teamText {
  width: 100%;
  margin: 0 auto;
  padding: 0 48px;
  text-align: left;
}

.teamText p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-dark);
  opacity: 0.75;
}

@media (max-width: 900px) {
  .teamRowTop {
    grid-template-columns: 1fr;
  }

  .ratio-wide {
    aspect-ratio: 4 / 3;
  }
}

/* -------------------------
   Responsive (HOME)
-------------------------- */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
  }
  .hero__content {
    padding: 24px;
  }

  .imageCopy {
    padding: 24px;
    max-width: 90%;
  }

  .subFooterImages {
    flex-direction: column;
    gap: 48px;
  }

  .subFooterLogo {
    height: auto; /* evita forzar altura */
    width: clamp(160px, 22vw, 210px); /* tamaño consistente */
    max-width: 210px; /* límite duro */
    opacity: 0.85;
    display: block;
  }

  .subFooterIllustration {
    height: 95px;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 640px;
  }
  .imageSection {
    min-height: 560px;
  }
  .imageCopy {
    font-size: 15px;
  }
  .creamSection {
    padding: 56px 0 70px;
  }
}
/* ======================================
   HERO pegado arriba (detrás del nav)
   Solo Nosotros
====================================== */

/* Si tu layout empuja todo el main hacia abajo por el header fijo */
.page-nosotros main {
  padding-top: 0 !important;
}

/* Si tu hero es .aboutHero (por tu CSS anterior) lo llevamos hasta arriba */
.page-nosotros .aboutHero {
  margin-top: calc(var(--nav-h) * -1);
  height: calc(clamp(520px, 72vh, 820px) + var(--nav-h));
}
/* =========================
   ENTORNO — Hint sutil (abajo derecha)
========================= */

.entorno {
  --pad-x: 48px;
}
@media (max-width: 900px) {
  .entorno {
    --pad-x: 20px;
  }
}

/* wrapper para alinear el hint con el mismo gutter del layout */
.entornoCarouselWrap {
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* el track sigue scrolleando y alineado al gutter */
.entornoCarousel .carouselTrack {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;

  padding-left: 0; /* ahora el gutter lo maneja el wrapper */
  padding-right: 0;
  scroll-padding-left: 0;
  scroll-padding-right: 0;
}

.entornoCarousel .carouselItem {
  flex: 0 0 auto;
  margin: 0;
}
.entornoCarousel .carouselItem img {
  display: block;
  width: min(920px, 88vw);
  height: auto;
  object-fit: cover;
}

/* hint debajo, a la derecha */
.carouselHint {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  opacity: 0.55; /* sutil */
  pointer-events: none;
}

/* flecha micro-animada */
.hintArrow {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(30, 30, 30, 0.8);
  display: inline-block;
  transform: translateX(0);
  animation: hintNudge 1.6s ease-in-out infinite;
}

@keyframes hintNudge {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.45;
  }
  50% {
    transform: translateX(6px);
    opacity: 0.8;
  }
}

/* solo en mobile (en desktop no hace falta) */
@media (min-width: 901px) {
  .carouselHint {
    display: none;
  }
}
/* =========================
   ENTORNO — Alinear gutter carrusel + texto
========================= */

/* 1) Un solo gutter para TODO el bloque */
.entornoInner {
  padding-left: 48px;
  padding-right: 48px;
}
@media (max-width: 900px) {
  .entornoInner {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* 2) El wrapper NO agrega padding (si no, se descalza) */
.entornoCarouselWrap {
  padding: 0 !important;
}

/* 3) El track scrollea pero sin “inventar” paddings */
.entornoCarousel .carouselTrack {
  padding: 0 !important;
  margin: 0 !important;
}

/* 4) Quitar la “barrita” del scrollbar (la línea negra a la derecha) */
.entornoCarousel .carouselTrack::-webkit-scrollbar {
  height: 0;
}
.entornoCarousel .carouselTrack {
  scrollbar-width: none;
}
@media (min-width: 901px) {
  .carouselHint {
    display: flex;
  }
}
@media (max-width: 768px) {
  /* Misma grilla para ambos viñedos en mobile */
  .vineyardImages.gridA,
  .vineyardImages.gridB {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 160px; /* ajustá a gusto */
  }

  /* 1era imagen: grande arriba */
  .vineyardImages.gridA > img:nth-child(1),
  .vineyardImages.gridB > img:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  /* 2da y 3ra: dos chicas abajo */
  .vineyardImages.gridA > img:nth-child(2),
  .vineyardImages.gridB > img:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 2;
  }

  .vineyardImages.gridA > img:nth-child(3),
  .vineyardImages.gridB > img:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2;
  }

  /* Para que no “crezcan” por su ratio y rompan el layout */
  .vineyardImages.gridA img,
  .vineyardImages.gridB img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }
}
/* =========================
   NAV Mobile — underline negro (sin depender de active)
========================= */
@media (max-width: 768px) {
  /* cuando el menú está abierto */
  .navLinks.isOpen a {
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    text-decoration: none !important;
  }

  /* ✅ Recolorear CUALQUIER pseudo underline que uses */
  .navLinks.isOpen a::after,
  .navLinks.isOpen a::before {
    background-color: #111 !important;
    border-color: #111 !important;
    color: #111 !important;
  }

  /* ✅ Si el underline es por border-bottom */
  .navLinks.isOpen a {
    border-bottom-color: #111 !important;
  }

  /* ✅ Si el underline es un elemento real adentro (span/div) */
  .navLinks.isOpen a span,
  .navLinks.isOpen a i,
  .navLinks.isOpen a em,
  .navLinks.isOpen a strong {
    color: #111 !important;
  }
}
