/*
  Estudio Salvi UI Kit
  --------------------
  - Tokens de diseâ”œâ–’o
  - Layout base responsivo
  - Componentes reutilizables
  - Accesibilidad y modo reduce motion
*/
:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #5f6b77;
  --color-subtle: #e7eeeb;
  --color-surface: #f7faf9;
  --color-accent: #4E917A;
  --color-accent-dark: #3A6D5B;
  --header-height: clamp(68px, 7vw, 84px);
  --container: min(1100px, 92vw);
  --gap-1: 8px;
  --gap-2: 12px;
  --gap-3: 16px;
  --gap-4: 24px;
  --gap-5: 32px;
  --gap-6: 48px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --font-headline: "Raleway", sans-serif;
  --font-body: "Raleway", "Segoe UI", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 90%;
  scroll-behavior: smooth;
}
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: #1a1a1a;
  background: var(--color-bg);
  text-rendering: optimizeLegibility;
}

body.quienes-page {
  line-height: 1.5;
}

body.quienes-page .lead {
  line-height: 1.55;
}

body.quienes-page p + p {
  margin-top: var(--gap-2);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

img, picture { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-headline); font-weight: 600; line-height: 1.2; color: #222; margin: 0; }
h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 2.6vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.5rem, 2.5vw, 1.9rem); }

p, li, a, span { font-family: var(--font-body); font-weight: 300; }

.lead, .pretitle { font-family: var(--font-headline); font-weight: 500; }

strong, b { font-family: var(--font-headline); font-weight: 600; }

p { margin: 0; max-width: 72ch; text-align: justify; }
p + p { margin-top: var(--gap-3); }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); line-height: 1.7; color: var(--color-muted); }
.small { font-size: 0.95rem; color: var(--color-muted); }

ul[class], ol[class] { padding: 0; margin: 0; list-style: none; }
a { color: var(--color-accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

.container { width: var(--container); margin-inline: auto; padding-inline: var(--gap-4); }
.stack > * + * { margin-top: var(--gap-4); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.back-to-top-btn {
  position: fixed;
  right: var(--gap-4);
  bottom: var(--gap-4);
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
.back-to-top-btn:hover,
.back-to-top-btn:focus-visible {
  background: var(--color-accent-dark);
  outline: none;
}
.back-to-top-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(68, 126, 109, 0.35);
}
.back-to-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

header.site-header {
  position: sticky;
  top: 0;
  inset-inline: 0;
  z-index: 1200;
  background: #ffffff;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  color: #111111;
}
.header-content { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); gap: var(--gap-4); }
.brand { display: inline-flex; align-items: center; gap: var(--gap-2); font-weight: 500; color: inherit; }
.brand img { width: auto; height: clamp(48px, 6.5vw, 68px); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.nav-toggle:hover { border-color: rgba(68, 126, 109, 0.35); background-color: rgba(68, 126, 109, 0.08); }
.nav-toggle:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.nav-toggle .nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}
.nav-toggle[aria-expanded="true"] { background: var(--color-accent); border-color: var(--color-accent); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: #fff; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-nav {
  position: fixed;
  inset: var(--header-height) var(--gap-4) auto var(--gap-4);
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(-16px) scale(0.96);
  transform-origin: top right;
  transition: transform 0.3s ease, opacity 0.2s ease, visibility 0.2s ease;
  opacity: 0;
  visibility: hidden;
  margin-left: auto;
  color: #111111;
}
.site-nav.open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.site-nav .nav-list { display: flex; flex-direction: column; gap: 4px; padding: var(--gap-2) 0; margin: 0; list-style: none; }
.site-nav .nav-list li { width: 100%; }
.site-nav .nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.75rem var(--gap-4);
  color: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible {
  color: var(--color-accent-dark);
  background-color: transparent;
  text-decoration: none;
}
.site-nav .nav-link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -4px; border-radius: var(--radius-sm); }
.site-nav .nav-link[aria-current="page"] { color: var(--color-accent-dark); }

@media (min-width: 900px) {
  .header-content {
    justify-content: flex-start;
    gap: clamp(60px, 12vw, 220px);
  }
  .brand { flex-shrink: 0; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    inset: auto;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    padding: 0;
    margin-left: auto;
  }
  .site-nav .nav-list {
    flex-direction: row;
    align-items: center;
    gap: clamp(1.75rem, 3.2vw, 3.5rem);
    padding: 0;
    justify-content: flex-end;
  }
  .site-nav .nav-link {
    padding: 0;
    position: relative;
    line-height: 1;
  }
  .site-nav .nav-link::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -12px;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0;
  }
  .site-nav .nav-link:hover::after,
  .site-nav .nav-link:focus-visible::after,
  .site-nav .nav-link[aria-current="page"]::after {
    transform: scaleX(1);
    opacity: 1;
  }
  .site-nav .nav-link:focus-visible { outline: none; }
}

.btn,
.btn-refined,
button {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-headline);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn.primary,
.btn-refined.primary,
button.primary { background: var(--color-accent); color: #fff; box-shadow: 0 10px 24px rgba(68, 126, 109, 0.28); }
.btn.primary:hover,
.btn-refined.primary:hover,
button.primary:hover { background: var(--color-accent-dark); transform: translateY(-1px); }
.btn.full { width: 100%; }

.hero-small {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: clamp(340px, 55vh, 520px);
  padding: clamp(72px, 18vw, 140px) 0;
  background-size: cover;
  background-position: center;
  color: #fff;
}

/* Ajusta la posicion del hero de Quiens somos para que quede mas bajo */
.quienes-page .hero-small {
  align-items: end;
  justify-items: center;
  padding-top: clamp(96px, 30vh, 180px);
  padding-bottom: clamp(48px, 16vh, 120px);
}

@media (min-width: 1200px) and (max-width: 1440px) and (max-height: 720px) {
  .quienes-page .hero-small {
    padding-top: clamp(60px, 18vh, 120px);
    padding-bottom: clamp(30px, 10vh, 72px);
  }
}

@media (min-width: 1180px) and (max-height: 870px) {
  .quienes-page .hero-small {
    padding-top: clamp(72px, 22vh, 140px);
    padding-bottom: clamp(12px, 4vh, 48px);
  }
}

@media (min-width: 769px) and (max-width: 1180px) {
  .quienes-page .hero-small {
    padding-top: clamp(84px, 26vh, 160px);
    padding-bottom: clamp(20px, 7vh, 60px);
  }
}
@media (min-width: 1024px) {
  .quienes-page .hero-small {
    min-height: clamp(540px, 72vh, 820px);
    padding-top: clamp(140px, 34vh, 260px);
    padding-bottom: clamp(28px, 6vh, 72px);
    background-position: center ;
  }
}
/* Solo afecta a la sección que tenga esta clase extra */
@media (max-width: 768px) {
    .hero-small-d {
        background-repeat: no-repeat !important;
        background-position: calc(50% + 133px) top !important;
        aspect-ratio: 16 / 9;
        height: auto !important;
        min-height: auto !important;
    }
}
/* Solo afecta a la sección que tenga esta clase extra */
@media (max-width: 768px) {
    .hero-small-f {
        background-repeat: no-repeat !important;
        background-position: center top !important;
        aspect-ratio: 16 / 9;
        height: auto !important;
        min-height: auto !important;
    }
}


@media (max-width: 768px) {
  .quienes-page .hero-small {
    align-items: center;
    padding: clamp(72px, 18vw, 140px) 0;
  }

  .quienes-page .hero-small h1,
  .quienes-page .hero-small h2,
  .equipo-page .hero-small h1,
  .equipo-page .hero-small h2 {
    margin-top: clamp(52px, 14vw, 110px);
  }
}

@media (max-width: 720px) and (min-height: 1000px) {
  .quienes-page .hero-small {
    align-items: center;
    padding: clamp(72px, 18vw, 140px) 0;
  }
}
@media (min-width: 1920px) {
  .hero-small {
    min-height: clamp(420px, 60vh, 640px);
    padding: clamp(96px, 14vh, 200px) 0;
  }
}

.hero-small::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 18, 0.45);
}

.quienes-page .hero-small::before {
  background: rgba(12, 20, 18, 0.18);
}

.equipo-page .hero-small::before {
  background: rgba(12, 20, 18, 0.18);
}

.hero-small > * {
  position: relative;
  z-index: 1;
}

.hero-small .container {
  display: grid;
  gap: var(--gap-5);
}

.hero-small h1,
.hero-small h2,
.hero-small h3 {
  color: #ffffff;
}

.hero-small .lead {
    color: rgba(255, 255, 255, 0.85);
  }

.hero-small--bright::before {
  background: rgba(12, 20, 18, 0.2);
}

.hero-triptych {
  position: relative;
  isolation: isolate;
  min-height: clamp(300px, 50vh, 480px);
  overflow: hidden;
  background: #ffffff;
  color: #0f1614;
}

@media (min-width: 1366px) {
  .hero-triptych {
    min-height: clamp(340px, 54vh, 540px);
  }

  .hero-triptych__content {
    padding: clamp(72px, 13vh, 186px) 0;
  }
}

@media (min-width: 1920px) {
  .hero-triptych {
    min-height: clamp(420px, 60vh, 640px);
  }

  .hero-triptych__content {
    padding: clamp(96px, 16vh, 220px) 0;
  }
}

.hero-triptych::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 150% at 50% 32%, rgba(12, 20, 18, 0.42) 0%, rgba(12, 20, 18, 0.25) 38%, rgba(12, 20, 18, 0.12) 64%, rgba(12, 20, 18, 0.04) 82%, rgba(12, 20, 18, 0) 100%),
    linear-gradient(180deg, rgba(12, 20, 18, 0.12) 0%, rgba(12, 20, 18, 0.24) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-triptych--bright::after {
  background:
    radial-gradient(120% 150% at 50% 32%, rgba(12, 20, 18, 0.22) 0%, rgba(12, 20, 18, 0.12) 38%, rgba(12, 20, 18, 0.06) 64%, rgba(12, 20, 18, 0.02) 82%, rgba(12, 20, 18, 0) 100%),
    linear-gradient(180deg, rgba(12, 20, 18, 0.05) 0%, rgba(12, 20, 18, 0.16) 100%);
}

.hero-triptych__grid {
  position: absolute;
  inset: 0 clamp(20px, 5vw, 60px);
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  align-items: stretch;
  height: 100%;
  gap: clamp(4px, 1vw, 16px);
}

.hero-triptych__panel {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(5, 12, 10, 0.05);
  min-height: 100%;
}

.hero-triptych__panel::before,
.hero-triptych__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-triptych__panel::before {
  background: radial-gradient(130% 115% at 50% 50%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 54%, rgba(255, 255, 255, 0) 100%);
  mix-blend-mode: screen;
  opacity: 0.35;
}

.hero-triptych__panel::after {
  background:
    linear-gradient(270deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 36%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 36%);
}

.hero-triptych__panel:first-child::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 36%);
}

.hero-triptych__panel:last-child::after {
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 36%);
}

.hero-triptych__panel:only-child::after {
  background: none;
}

.hero-triptych__panel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
  will-change: transform;
}

.hero-triptych__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(56px, 14vw, 120px) 0;
}

.hero-triptych__text {
  max-width: clamp(36ch, 56vw, 60ch);
  margin-inline: auto;
  text-align: center;
  color: inherit;
  padding: 0;
}

.hero-triptych__text h1,
.hero-triptych__text h2,
.hero-triptych__text h3 {
  color: #ffffff;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hero-triptych__text .lead {
  color: rgba(255, 255, 255, 0.9);
  margin: var(--gap-5) 0 0;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.hero-triptych__text > *:first-child {
  margin-top: 0;
}

.hero-triptych__text > * + * {
  margin-top: var(--gap-5);
}

.hero-triptych__panel::after {
  will-change: opacity;
}

@media (hover: hover) and (pointer: fine) {
  .hero-triptych__panel:hover img {
    transform: scale(1.08);
  }
}

@media (max-width: 1200px) {
  .hero-triptych__grid {
    inset: 0 clamp(20px, 8vw, 56px);
    gap: clamp(10px, 2.4vw, 26px);
  }
}

@media (max-width: 1024px) {
  .hero-triptych {
    min-height: clamp(280px, 48vh, 440px);
  }

  .hero-triptych__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    inset: 0 clamp(18px, 8vw, 48px);
  }

  .hero-triptych__panel:last-child {
    display: none;
  }
}

@media (max-width: 820px) {
  .hero-triptych {
    min-height: clamp(260px, 46vh, 400px);
  }

  .hero-triptych__grid {
    inset: 0 clamp(16px, 9vw, 40px);
  }
}

@media (max-width: 680px) {
  .hero-triptych__grid {
    grid-template-columns: minmax(0, 1fr);
    inset: 0 clamp(16px, 9vw, 32px);
    gap: clamp(3px, 2vw, 12px);
  }

  .hero-triptych__panel:last-child,
  .hero-triptych__panel:nth-child(2) {
    display: none;
  }

  .hero-triptych__panel {
    height: 100%;
    min-height: 100%;
    border-radius: 0;
  }

  .hero-triptych__content {
    padding: clamp(56px, 14vw, 120px) 0;
  }
}

.hero-small--offset {
  padding: clamp(96px, 26vh, 200px) 0 clamp(60px, 14vh, 120px);
}

.hero-small--tight {
  padding-top: clamp(36px, 12vh, 96px);
}

@media (min-width: 1280px) and (max-width: 1800px) {
  .equipo-page .hero-small.hero-small--offset {
    min-height: clamp(450px, 60vh, 680px);
    padding: clamp(96px, 22vh, 192px) 0 clamp(60px, 15vh, 120px);
  }
}

@media (min-width: 768px) {
  .hero-small--offset {
    align-items: end;
  }
}

@media (max-width: 767px) {
  .hero-small--offset {
    padding: clamp(80px, 30vh, 160px) 0 clamp(52px, 14vh, 96px);
    align-items: center;
  }

  .hero-small--tight {
    padding-top: clamp(28px, 20vh, 80px);
  }
}


.cta-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: calc(var(--gap-4) + var(--gap-2));
}
.section { padding-block: clamp(20px, 4vw, 44px); position: relative; }
.section--compact { padding-block: clamp(8px, 2vw, 24px); }
.section--compact .stack > * + * { margin-top: var(--gap-2); }
.section--compact h2 { margin-bottom: var(--gap-1); }
.section.alt { background: var(--color-surface); }
.section.alt.sectores {
  position: relative;
  isolation: isolate;
  padding-block: clamp(24px, 5vw, 60px);
  display: grid;
  align-items: center;
  background: #f7faf9;
  overflow: hidden;
}
.section.alt.sectores::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(247, 250, 249, 0.74), rgba(247, 250, 249, 0.84)),
    url("../../img/5\ Campo\ G\ web.jpg") center/cover no-repeat;
}
.section h2 { margin-bottom: var(--gap-2); }
.section-header { max-width: 72ch; margin-bottom: var(--gap-4); }
.pretitle { display: inline-block; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; color: var(--color-accent-dark); margin-bottom: var(--gap-1); }

.content-grid { display: grid; gap: var(--gap-5); }
@media (min-width: 900px) { .content-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; } }
.text-center { text-align: center; }
.text-center .lead, .text-center p { margin-inline: auto; }

.team-section {
  --team-anim-duration: 0.5s;
  position: relative;
  padding-block: clamp(36px, 7vw, 80px);
  display: grid;
  align-items: center;
  color: var(--color-text);
  background: #f7faf9;
  overflow: hidden;
}

.team-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(247, 250, 249, 0.74), rgba(247, 250, 249, 0.84)),
    url("../../img/3\ Puerto\ M.jpeg") center/cover no-repeat;
}

.team-section .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(32px, 6vw, 48px);
}
.team-intro {
  max-width: clamp(320px, 65ch, 760px);
  display: grid;
  gap: var(--gap-3);
  justify-items: center;
  text-align: center;
  margin-inline: auto;
}
.team-section .pretitle {
  color: var(--color-accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.team-section h2 {
  margin: 0;
  color: #111111;
  text-align: center;
}
.team-section .lead {
  margin: 0;
  color: rgba(28, 53, 45, 0.78);
}
.team-showcase {
  display: grid;
  gap: clamp(24px, 4vw, 32px);
  grid-auto-rows: 1fr;
  align-items: stretch;
}
@media (min-width: 600px) {
  .team-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .team-showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.team-card {
  display: grid;
  gap: var(--gap-2);
  padding: clamp(18px, 3.5vw, 26px);
  border-radius: var(--radius-sm);
  background: rgba(245, 247, 246, 0.88);
  border: 1px solid rgba(24, 76, 62, 0.08);
  box-shadow: 0 12px 30px rgba(20, 53, 44, 0.08);
  color: var(--color-text);
  text-align: center;
  align-items: start;
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(68, 126, 109, 0.38);
  box-shadow: 0 16px 36px rgba(20, 53, 44, 0.12);
}
.team-card:focus-within {
  outline: none;
  border-color: rgba(68, 126, 109, 0.45);
  box-shadow: 0 0 0 3px rgba(68, 126, 109, 0.2);
}
.team-portrait {
  width: 100%;
  aspect-ratio: 3/3.8;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
}
.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.team-portrait.is-placeholder {
  display: grid;
  place-items: center;
  background: var(--color-subtle);
  color: var(--color-muted);
  font-weight: 600;
  font-family: var(--font-headline);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}
.team-card:hover .team-portrait img,
.team-card:focus-within .team-portrait img {
  transform: translate3d(0, -6px, 0);
}
.team-meta {
  display: grid;
  gap: 6px;
}
.team-meta h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}
.team-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-2);
  width: 100%;
  margin-top: var(--gap-3);
  flex-wrap: wrap;
}
.team-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.1rem;
  transition: background 0.25s ease, transform 0.25s ease;
}
.team-linkedin:hover,
.team-linkedin:focus-visible {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  text-decoration: none;
}
.team-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(68, 126, 109, 0.35);
  background: transparent;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.team-profile:hover,
.team-profile:focus-visible {
  background: rgba(68, 126, 109, 0.1);
  color: var(--color-accent-dark);
  border-color: rgba(68, 126, 109, 0.45);
  text-decoration: none;
  transform: translateY(-1px);
}
.team-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 6vw, 48px);
}
.team-section [data-reveal] {
  --reveal-y: 22px;
}
@media (max-width: 820px), (orientation: portrait) and (max-width: 1100px) {
  .team-section::before {
    content: none;
    background: none;
  }
  .team-card {
    background: #ffffff;
  }
}
.values-grid { display: grid; gap: var(--gap-4); }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
body.quienes-page #valores.section {
  padding-bottom: clamp(36px, 8vw, 88px);
}
body.quienes-page #valores .values-grid {
  margin-top: clamp(28px, 6vw, 60px);
}
body.quienes-page #valores + #equipo-destacado {
  margin-top: clamp(12px, 3vw, 32px);
}
.value-card { background: #fff; border-radius: var(--radius-sm); padding: var(--gap-4); box-shadow: var(--shadow); display: grid; gap: var(--gap-2); }
.value-card h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); }

.client-grid { display: grid; gap: var(--gap-4); }
.client-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  justify-content: center;
}
.client-grid {
  display: grid;
  gap: var(--gap-4);
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  justify-content: center;
}

/* Cards */
.client-card {
  background: #fff;
  border-radius: var(--radius);
  padding: var(--gap-4);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: var(--gap-3);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: none;
  height: 100%;

  /* Altura relativa responsive */
  min-height: clamp(260px, 32vh, 360px);
}

.client-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

/* Container ancho */
body.clientes-page .sectores .container {
  width: min(1280px, 95vw);
  position: relative;
  z-index: 1;
}

/* Desktop: 4 columnas + alturas realmente iguales */
@media (min-width: 1100px) {
  .client-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1280px;
    margin-inline: auto;
    align-items: stretch; /* Igualar height en las filas */
  }

  .client-card {
    min-height: clamp(320px, 28vh, 380px);
  }
}

/* Iconos */
.client-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(68, 126, 109, 0.14);
  color: var(--color-accent-dark);
  font-size: 1.35rem;
  box-shadow: inset 0 0 0 1px rgba(68, 126, 109, 0.18);
}

.client-card-icon i {
  line-height: 1;
}

/* Títulos */
.client-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
}

/* Listas */
.client-card-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
  color: var(--color-muted);
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.client-card-list li {
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.4;
}

.client-card-list li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.7;
}


.contact-grid { display: grid; gap: var(--gap-5); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.contact-card { background: #fff; border-radius: var(--radius); padding: var(--gap-4); box-shadow: var(--shadow); display: grid; gap: var(--gap-4); }
.contact-details { display: grid; gap: var(--gap-3); }
.contact-card--with-form { gap: var(--gap-5); align-items: start; }
.contact-card--with-form .contact-details { gap: var(--gap-4); text-align: center; justify-items: center; }
.contact-card--with-form .contact-details-title { font-family: var(--font-headline); font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text); }
.contact-card--with-form .contact-details > div { display: grid; gap: var(--gap-1); justify-items: center; }
.contact-card--with-form .contact-form { padding: 0; background: transparent; box-shadow: none; display: grid; gap: var(--gap-4); }
.contact-card--with-form .contact-form > div { display: grid; gap: var(--gap-2); }
.contact-card--with-form .contact-form button { justify-self: flex-start; }
.contact-card--with-form .contact-form .form-feedback { margin: 0; }
@media (min-width: 768px) {
  .contact-card--with-form { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .contact-card--with-form .contact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .contact-card--with-form .contact-form > div:nth-child(3),
  .contact-card--with-form .contact-form > div:nth-child(4),
  .contact-card--with-form .contact-form button,
  .contact-card--with-form .contact-form .form-feedback { grid-column: 1 / -1; }
}
.contact-label { font-family: var(--font-headline); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.12em; color: var(--color-muted); }
.contact-link { color: var(--color-text); font-weight: 600; word-break: break-word; }
.map-container { margin-top: var(--gap-5); }
.map-shell { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #0b0b0b; aspect-ratio: 16 / 7; min-height: 220px; width: 100%; }
.map-frame { width: 100%; height: 100%; border: 0; display: block; }

.form-shell { background: #fff; border-radius: var(--radius); padding: var(--gap-5); box-shadow: var(--shadow); display: grid; gap: var(--gap-4); }
.form-shell label { display: block; font-weight: 600; margin-bottom: var(--gap-2); }
.form-shell input,
.form-shell textarea { width: 100%; padding: var(--gap-3); border-radius: var(--radius-sm); border: 1px solid rgba(17,17,17,0.15); font: inherit; background: #fff; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.form-shell input:focus-visible,
.form-shell textarea:focus-visible { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(68,126,109,0.25); outline: none; }
.form-shell input[aria-invalid="true"],
.form-shell textarea[aria-invalid="true"] { border-color: #c0392b; box-shadow: 0 0 0 2px rgba(192,57,43,0.18); }
.form-feedback { min-height: 1.2em; font-size: 0.95rem; color: var(--color-muted); }
.field-error { color: #c0392b; font-size: 0.9rem; margin-top: var(--gap-1); }

footer.site-footer {
  background: #0f1614;
  color: rgba(255, 255, 255, 0.78);
  padding-block: clamp(var(--gap-4), 6vw, 40px);
}
.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-4);
}
.footer-content > * {
  flex: 1 1 220px;
}
.footer-about { max-width: 320px; }
.footer-about p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}
.footer-brand {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: var(--gap-2);
}
.footer-content h3,
.footer-content h4 {
  margin: 0 0 var(--gap-3);
  color: #ffffff;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links ul {
  display: grid;
  gap: var(--gap-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-contact p {
  margin: 0;
}
.footer-contact p + p {
  margin-top: var(--gap-2);
}
.footer-links a,
.footer-contact a { color: rgba(255, 255, 255, 0.85); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: var(--gap-5);
  padding-top: var(--gap-3);
  font-size: 0.9rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-2);
  color: rgba(255, 255, 255, 0.78);
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    flex-wrap: wrap;
    gap: clamp(24px, 5vw, 72px);
    align-items: flex-start;
  }
  .footer-content > * {
    min-width: 220px;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.hero-small { text-align: center; }
.hero-small .container { place-items: center; }
[data-reveal] {
  --reveal-x: 0px;
  --reveal-y: 36px;
  --reveal-scale: 1;
  --reveal-rotate: 0deg;
  --reveal-duration: 0.85s;
  --reveal-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  opacity: 0;
  transform:
    translate3d(var(--reveal-x), var(--reveal-y), 0)
    scale(var(--reveal-scale))
    rotate(var(--reveal-rotate));
  filter: var(--reveal-filter, blur(0px));
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease),
    filter var(--reveal-duration) var(--reveal-ease);
  transition-delay: calc(var(--reveal-delay, 0s));
  will-change: opacity, transform, filter;
}

[data-reveal].visible {
  opacity: 1;
  transform: none;
  filter: none;
}

[data-reveal="fade"] {
  --reveal-x: 0px;
  --reveal-y: 0px;
}

[data-reveal="slide-up"] {
  --reveal-y: 28px;
}

[data-reveal="slide-right"] {
  --reveal-x: -32px;
  --reveal-y: 0px;
}

[data-reveal="slide-left"] {
  --reveal-x: 32px;
  --reveal-y: 0px;
}

[data-reveal="zoom"] {
  --reveal-scale: 0.92;
  --reveal-y: 16px;
}

[data-reveal="tilt-up"] {
  --reveal-rotate: -6deg;
  --reveal-y: 18px;
  transform-origin: center bottom;
}

@media (max-width: 520px) {
  h1 { font-size: clamp(2.1rem, 8vw, 2.6rem); }
  header.site-header { background: #ffffff; }
}
main {
  min-height: calc(100vh - 220px);
  display: block;
  scroll-margin-top: calc(var(--header-height) + 16px);
}



.section-header.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header.text-center > * { margin-left: auto; margin-right: auto; }

#equipo-destacado .stack > p {
  text-align: center;
  margin-inline: auto;
}

body.quienes-page #equipo-destacado .btn.primary {
  margin-bottom: clamp(24px, 4vw, 48px);
}

#historia .content-grid {
  display: grid;
  gap: var(--gap-5);
}
@media (min-width: 900px) {
  #historia .content-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

#historia .pretitle {
  color: var(--color-accent-dark);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: var(--gap-1);
}

#historia .facts-col {
  display: grid;
  gap: clamp(16px, 2.5vw, 20px);
  align-content: start;
  align-self: center;
}
#historia .fact-block {
  padding-left: 14px;
  border-left: 3px solid var(--color-accent);
}
#historia .fact-block h3 {
  margin: 0 0 6px;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
}
#historia .fact-block p {
  margin: 0;
  color: var(--color-muted);
}

#historia .stats-box {
  background: var(--color-surface);
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 14px;
  padding: clamp(14px, 2.5vw, 18px);
  display: grid;
  gap: 10px;
}
#historia .stat {
  display: grid;
  gap: 2px;
}
#historia .stat strong {
  font-family: var(--font-headline);
  font-weight: 600;
  color: var(--color-accent);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  line-height: 1;
}
#historia .stat span {
  color: var(--color-muted);
  font-size: .98rem;
}

#historia .stack .lead {
  color: #3b4743;
  max-width: 62ch;
}
#historia .stack p {
  color: #444;
}

#historia.section {
  padding-block: clamp(36px, 6vw, 72px);
}
#historia .stack > * + * {
  margin-top: var(--gap-3);
}

body.quienes-page #historia.section {
  padding-bottom: clamp(4px, 1vw, 16px);
  margin-bottom: 0;
}

body.quienes-page #mision.section {
  padding-top: clamp(4px, 1vw, 16px);
}

body.quienes-page #historia + #mision {
  margin-top: calc(-1 * var(--gap-2));
}

.mission-wrap { display: grid; gap: clamp(32px, 7vw, 60px); }
.mission-intro { display: grid; gap: var(--gap-3); max-width: 68ch; }
.mission-panels { display: grid; gap: var(--gap-4); }
@media (min-width: 980px) { .mission-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mission-panel { background: #fff; border-radius: var(--radius); padding: var(--gap-4); box-shadow: var(--shadow); border: 1px solid rgba(17, 17, 17, 0.08); display: grid; gap: var(--gap-3); }
.mission-panel h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.7rem); }

@media (max-width: 640px) {
  .mission-panels { grid-template-columns: 1fr; }
}




/* HERO imagen completa */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: clamp(260px, 44vh, 560px);
  background: #f2f2f2;
  overflow: hidden;
  isolation: isolate;
}

.hero-banner__media {
  position: absolute;
  inset: 0;
}

.hero-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover ;
  object-position: center 40%;
  display: block;
}


@media (max-width: 768px) {
  .hero-banner {
    min-height: clamp(260px, 55vh, 520px);
  }

  .hero-banner__media img {
    object-position: center 55%;
  }
}

@media (min-width: 1024px) and (max-width: 1599px) {
  .hero-banner {
    min-height: clamp(260px, 55vh, 600px);
  }
  .hero-banner__media img {

    object-position: center 45%;
  }
}
@media (min-width: 1600px) {
  .hero-banner {
    min-height: clamp(260px, 65vh, 660px);
  }
}
@media (min-width: 1930px) {
  .hero-banner {
    min-height: clamp(260px, 80vh, 760px);
  }
}
/* ===========================
   SECCIÓN QUIÉNES SOMOS
   Responsive por breakpoints
   =========================== */

/* ===== BASE: desktop 1920x1080 ===== */
.who-section {
  background: #f7f7f7; /* mismo color que el hero */
  padding-block: 32px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.home .who-section { padding-top: 0; }

.who-section__inner {
  display: grid;
  grid-template-columns: 0.58fr 0.42fr; /* 58% imagen / 42% card */
  align-items: center;
  width: 100%;
  max-width: min(1800px, 94vw);
  position: relative;
}

/* Imagen */
.who-section__media {
  position: relative;
  margin-left: 2rem;
  height: 380px;
  overflow: hidden;
  background: #f7f7f7;
  transform: translateY(-20px);
}
.who-section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

/* Card */
.who-section__card {
  position: relative;
  background: var(--color-accent); /* tu verde original */
  color: #fff;
  width: clamp(380px, 36vw, 760px);
  max-width: calc(100% + 60px);
  min-height: 300px;
  margin-left: -80px;
  margin-right: max(1rem, -36px);
  padding: clamp(28px, 2.2vw, 48px) clamp(22px, 2.1vw, 40px);
  border-radius: 10px;
  box-shadow: var(--shadow, 0 10px 25px rgba(0,0,0,0.15));
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 0.3rem + 0.6vw, 0.9rem);
  z-index: 2;
  transform: translateY(-18px);
}

/* Fuerza el texto blanco, sin tocar tu color base */
.who-section__card h2,
.who-section__card p,
.who-section__cta {
  color: #fff;
}

.who-section__card h2 {
  font-size: clamp(1.9rem, 1.2rem + 2vw, 2.6rem);
  line-height: 1.1;
  max-width: 28rem;
  margin-bottom: 10px;
}
.who-section__card p {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.55;
  font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.1rem);
  margin-bottom: 10px;
}
.who-section__cta {
  display: inline-flex;
  text-decoration: underline;
  margin-top: auto;
  font-size: 0.95rem;
}

/* ===== PANTALLAS GRANDES / 2K (≥2200px) ===== */
@media (min-width: 2200px) {
  .who-section__inner { max-width: min(2100px, 90vw); grid-template-columns: 0.6fr 0.4fr; }
  .who-section__media { margin-left: 3rem; height: 460px; transform: translateY(-20px); }
  .who-section__card  {
    width: clamp(540px, 38vw, 850px);
    min-height: 360px;
    margin-left: -90px;
    padding: 56px 48px 60px 48px;
    transform: translateY(-20px);
  }
}

/* ===== LAPTOPS CHICAS (1280–1439) ===== */
@media (min-width: 1280px) and (max-width: 1439px) {
  .who-section__inner {
    max-width: 1250px;
    grid-template-columns: 1fr 0.38fr; /* mantenemos relación general */
  }

  .who-section__media {
    margin-left: 1.5rem;
    height: 360px;                   /* ↓ antes 400px */
    transform: translateY(-12px);    /* leve ajuste */
  }

  .who-section__card  {
    width: clamp(460px, 36vw, 560px);/* ↑ antes clamp(420px,33vw,520px) */
    margin-left: -70px;
    margin-right: 12px;              /* ↓ antes 20px, para ganar horizontal */
    padding: 42px 30px 46px 30px;    /* leve compactado */
    transform: translateY(-12px);
  }
}

/* ===== iPAD PRO HORIZONTAL (1000–1366px) ===== */
@media (min-width: 1000px) and (max-width: 1366px) and (orientation: landscape) {
  .who-section__inner {
    grid-template-columns: 1fr 0.28fr; /* ↑ card un toque más protagonista (antes 0.25fr) */
    max-width: 1100px;
  }

  .who-section__media {
    margin-left: 0.75rem;
    height: 340px;                    /* ↓ antes 380px */
    transform: translateY(-8px);
  }

  .who-section__card  {
    justify-self: end;
    width: 440px;                     /* ↑ antes 400px */
    min-height: 260px;
    margin-right: 12px;               /* agrega un poquito más de ancho útil */
    transform: translateY(-8px);
    padding: 38px 28px 42px 28px;     /* compactado sutil */
  }

  .who-section__card h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 1.9rem); }
  .who-section__card p  { font-size: clamp(0.9rem, 0.85rem + 0.3vw, 0.95rem); }
}

/* ===== iPAD PRO VERTICAL (1024x1366) ===== */
@media (min-width: 992px) and (max-width: 1180px) and (orientation: portrait) {
  .who-section__inner {
    display: block;
    width: 88vw;
    max-width: 720px;
    margin: 0 auto;
  }

  .who-section__media {
    margin-left: 0.75rem;
    height: 340px;                    /* ↓ antes 380px, para consistencia */
    transform: translateY(-6px);
    overflow: hidden;
  }

  .who-section__card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    transform: none;
    padding: 42px 30px 46px 30px;
    min-height: auto;
  }
}


/* ===== TABLET (768–991px) ===== */
@media (min-width: 768px) and (max-width: 999px) {
  .who-section__inner {
    display: block;
    width: 92vw;
    max-width: 720px;
    margin: 0 auto;
  }
  .who-section__media { display: none; }
  .who-section__card {
    width: 100%;
    margin: 0;
    transform: none;
    padding: 40px 28px 44px 28px;
    min-height: auto;
    text-align: left;
  }
}

/* ===== MOBILE (<768px) ===== */
@media (max-width: 767px) {
  .who-section { padding-block: 28px; }
  .who-section__inner { display: block; width: 92vw; margin: 0 auto; }
  .who-section__media { display: none; }
  .who-section__card {
    width: 100%;
    margin: 0;
    transform: none;
    min-height: auto;
    padding: 36px 22px 40px 22px;
    border-radius: 10px;
    text-align: left;
    background: var(--color-accent); /* mantiene tu verde */
  }
  .who-section__card h2,
  .who-section__card p,
  .who-section__cta {
    color: #fff;
  }
  .who-section__card p { text-align: left; }
}




