/* =========================================================
   /nosotros.html — Subpágina Galeazzi
   ========================================================= */

.page-nosotros{ background: var(--cream); }
/* Navbar en subpágina: siempre fondo blanco sólido */
.page-nosotros .nav__links a.is-current{
  color: var(--forest);
  border-bottom-color: rgba(31,61,42,0.6);
}

/* ═════════════ HERO CON IMAGEN (mismo UI que /servicios) ═════════════ */
.sub-hero{
  background: var(--cream);
  min-height: 60vh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.sub-hero--image{ min-height: 60vh; }
.sub-hero__bg{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.sub-hero__overlay{
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.45) 100%);
}
.sub-hero__inner{
  position: absolute;
  bottom: 8vw;
  left: 6vw;
  z-index: 2;
  max-width: 720px;
}
.sub-hero--image .sub-hero__title{
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.sub-hero--image .sub-hero__lead{
  color: rgba(255,255,255,0.85);
}
.sub-hero__title{
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sub-hero__lead{
  margin-top: 20px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 480px;
}

/* ═════════════ HISTORIA ═════════════ */
.historia{
  background: var(--cream);
  padding-block: clamp(80px, 12vw, 140px);
}
.historia__head{
  max-width: 1180px;
  margin: 0 auto 64px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.historia__caption{
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.historia__title{
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.historia__list{
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.hito{
  display: grid;
  grid-template-columns: 280px 130px 1fr;
  gap: 40px;
  padding-block: 32px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.hito:first-child{ padding-top: 0; }
.hito:last-child{ border-bottom: 0; padding-bottom: 0; }
.hito__img{
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
}
.hito__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.hito:hover .hito__img img{ transform: scale(1.03); }
.hito__year{
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: 48px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--sage);
}
.hito__body h3{
  font-family: var(--sans);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hito__body p{
  margin-top: 10px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* ═════════════ VALORES SOBRE IMAGEN ═════════════ */
.valores{
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(60px, 8vw, 100px) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.valores__bg{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.valores__overlay{
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(31,61,42,0.55) 0%, rgba(26,26,26,0.35) 60%, rgba(31,61,42,0.65) 100%);
}
.valores__glass{
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  margin: 0 6vw;
  padding: clamp(48px, 6vw, 72px) clamp(32px, 5vw, 64px);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.20);
  color: var(--white);
  transition: background .4s ease, transform .4s ease;
}
.valores__glass:hover{
  background: rgba(255,255,255,0.10);
  transform: translateY(-3px);
}
.valores__block{
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.valores__eyebrow{
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime-soft);
}
.valores__manifesto{
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--white);
  max-width: 900px;
}
.valores__manifesto--sm{
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
}
.valores__manifesto .line{ display: block; }
.valores__sub{
  margin-top: 20px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  max-width: 620px;
}
.valores__divider{
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin-block: 56px;
}
.valores__list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-block: 24px;
}
.valores__list li{
  padding: 0 32px;
  border-right: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.valores__list li:first-child{ padding-left: 0; }
.valores__list li:last-child{ border-right: 0; padding-right: 0; }
.valores__mark{
  font-family: var(--sans);
  font-weight: 400;
  font-size: 24px;
  color: var(--lime-soft);
  line-height: 1;
}
.valores__name{
  margin-top: 20px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
}
.valores__desc{
  margin-top: 12px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.75);
}

/* ═════════════ COLLAGE EDITORIAL ═════════════ */
.collage-sec{
  background: var(--cream);
  padding-block: clamp(80px, 12vw, 140px);
}
.collage-sec .container{ max-width: 1280px; }
.collage-sec__head{ margin-bottom: 80px; }
.collage-sec__head h3{
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 640px;
}
.collage-sec__head p{
  margin-top: 20px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.55;
}
.collage{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 0.9fr;
  gap: 20px;
  height: 480px;
}
.collage__cell{
  overflow: hidden;
  border-radius: 16px;
  margin: 0;
  height: 100%;
}
.collage__cell img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.collage__cell:hover img{ transform: scale(1.04); }
.collage__cell--2{ height: 80%; transform: translateY(10%); }
.collage__cell--4{ height: 85%; transform: translateY(-5%); }
.collage-sec__foot{
  margin-top: 48px;
  text-align: right;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ═════════════ EQUIPO ═════════════ */
.equipo{
  background: var(--cream);
  padding-block: clamp(80px, 12vw, 140px);
}
.equipo__head{ margin-bottom: 80px; }
.equipo__head h2{
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.equipo__head p{
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.55;
}
/* Carrusel de fotos del equipo */
.equipo__carousel{
  position: relative;
}
.equipo__track{
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-inline: 6vw;
  margin-inline: calc(-6vw);
  scroll-padding-inline: 6vw;
  touch-action: pan-x pan-y;
}
.equipo__track::-webkit-scrollbar{ display: none; }
.equipo__slide{
  margin: 0;
  flex: 0 0 calc((100% - 48px) / 3);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: var(--line);
  scroll-snap-align: start;
}
.equipo__slide img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(0.9) contrast(1.03) brightness(0.98);
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.equipo__slide:hover img{
  transform: scale(1.04);
  filter: saturate(1) contrast(1.03) brightness(0.98);
}
.equipo__controls{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}
.equipo__btn{
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(31,61,42,0.2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.equipo__btn:hover{
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.equipo__btn:disabled{
  opacity: 0.35;
  cursor: default;
}
.equipo__btn:disabled:hover{
  background: transparent;
  color: var(--ink);
  border-color: rgba(31,61,42,0.2);
}
.equipo__counter{
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
  min-width: 68px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.equipo__counter-sep{
  margin: 0 4px;
  opacity: 0.5;
}

/* ═════════════ RESPONSIVE ═════════════ */
@media (max-width: 1024px){
  .hito{ grid-template-columns: 220px 100px 1fr; gap: 24px; }
  .collage{
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 280px;
    height: auto;
    gap: 12px;
  }
  .collage__cell--2, .collage__cell--4{
    height: 100%; transform: none;
  }
  .equipo__slide{ flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 768px){
  .sub-hero{ min-height: 60svh; padding-block: 0; }
  .sub-hero--image{ min-height: 60svh; }
  .sub-hero__inner{ bottom: 32px; left: 24px; right: 24px; max-width: 100%; }
  .sub-hero__title{ font-size: clamp(28px, 8vw, 40px); }
  .sub-hero__lead{ font-size: 14px; max-width: 100%; }
  .container{ padding-left: 24px; padding-right: 24px; }

  /* Historia */
  .historia{ padding-block: 80px; }
  .historia__head{ margin-bottom: 40px; }
  .historia__title{ font-size: clamp(24px, 6vw, 32px); }
  .hito{
    grid-template-columns: 70px 1fr;
    grid-template-areas: "img img" "year body";
    gap: 12px 16px;
    padding-block: 24px;
  }
  .hito__img{ grid-area: img; aspect-ratio: 16 / 10; margin-bottom: 8px; border-radius: 8px; }
  .hito__year{ grid-area: year; font-size: 32px; }
  .hito__body{ grid-area: body; }
  .hito__body h3{ font-size: 17px; }
  .hito__body p{ font-size: 14px; line-height: 1.5; }

  /* Valores */
  .valores__glass{ padding: 32px; margin: 0 24px; }
  .valores__manifesto{ font-size: clamp(22px, 6vw, 32px); line-height: 1.2; }
  .valores__list{ grid-template-columns: 1fr; gap: 0; }
  .valores__list li{
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .valores__list li:last-child{ border-bottom: 0; }
  .valores__name{ font-size: 13px; }
  .valores__desc{ font-size: 13px; }

  /* Collage */
  .collage-sec{ padding-block: 80px; }
  .collage{
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
    height: auto;
    gap: 12px;
  }
  .collage__cell{ height: 100%; }
  .collage__cell--2, .collage__cell--4{ height: 100%; transform: none; }

  /* Equipo */
  .equipo{ padding-block: 80px; }
  .equipo__head{ margin-bottom: 48px; }
  .equipo__head h2{ font-size: clamp(28px, 7.5vw, 40px); }
  .equipo__track{
    gap: 16px;
    padding-inline: 24px;
    margin-inline: -24px;
    scroll-padding-inline: 24px;
  }
  .equipo__slide{
    flex: 0 0 82%;
    aspect-ratio: 4 / 5;
    border-radius: 10px;
  }
  .equipo__controls{ margin-top: 32px; gap: 16px; }
  .equipo__btn{ width: 40px; height: 40px; }
  .equipo__counter{ font-size: 12px; min-width: 60px; }
}
