/* =========================================================
   Brújula – Investigación y Estrategia
   Static rebuild · modern CSS (custom props, grid, nesting)
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --purple-dark: #312142;
  --purple: #5b398b;
  --cream: #f6f4f0;
  --white: #ffffff;
  --grey: #cccccc;
  --grey-light: #eaeaea;
  --teal: #00b7ac;
  --coral: #ff7656;
  --orange: #f89626;
  --orange2: #FA9434; 
  --yellow: #FAC734;
  --pink: #fa346e;
  --ink: #212121;
  --ink-soft: #475569;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;

  --container: 1400px;
  --radius: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --header-h: 96px;

  --transition: all .3s ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.05rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--purple);
  text-decoration: none;
  transition: var(--transition);
  &:hover {
    color: var(--coral);
  }
}


h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--purple-dark);
}

ul {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
strong{
  font-weight: 600;
}
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 999;
  background: var(--purple-dark);
  color: var(--white);
  padding: .75rem 1.25rem;

  &:focus {
    left: .5rem;
    top: .5rem;
  }
}

.section-title {
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.625rem);
  text-align: left;
  margin-inline: auto;
  max-width: 18ch;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ece8e2;
  transition: box-shadow .3s var(--ease), padding .3s var(--ease);

  &.is-stuck {
    box-shadow: 0 8px 30px rgba(49, 33, 66, .12);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding-block: .6rem;
}

.brand img {
  width: clamp(150px, 18vw, 210px);
}

.main-nav {
  margin-left: auto;

  & ul {
    display: flex;
    gap: clamp(1rem, 2.4vw, 2.4rem);
  }

  & a {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .98rem;
    color: var(--purple-dark);
    letter-spacing: -.01em;
    padding: .35rem 0;
    position: relative;
    transition: var(--transition);
    &::after {
      content: "";
      position: absolute;
      left: 0;
      right: 100%;
      bottom: -2px;
      height: 2px;
      background: var(--coral);
      transition: right .28s var(--ease);
    }

    &:hover,
    &.is-active {
      color: var(--coral);
    }

    &:hover::after,
    &.is-active::after {
      right: 0;
    }
  }
}

.social {
  display: flex;
  gap: .55rem;

  & a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    transition: transform .2s var(--ease), background .2s var(--ease);
  }

  & svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
  }

  & a:hover {
    background: var(--grey-light);
    /* transform: translateY(-3px); */
  }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;

  & span {
    height: 3px;
    border-radius: 3px;
    background: var(--purple-dark);
    transition: transform .3s var(--ease), opacity .2s var(--ease);
  }

  &[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  &[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  &[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background-image: linear-gradient(178deg, #f6f4f0 10%, var(--white) 96%);
  overflow: hidden;
  isolation: isolate;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  max-width: 900px;
  padding-block: clamp(4rem, 11vh, 9rem);
}

.hero h1 {
  font-size: clamp(2rem, 1.1rem + 4.2vw, 2.7rem);
  color: var(--purple-dark);
}

.hero p {
  font-size: clamp(1.05rem, 1rem + .5vw, 1.4rem);
  max-width: 46ch;
  color: var(--ink-soft);
}

.shape {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: clamp(120px, 16vw, 250px);
  opacity: .9;
}

.shape-rect {
  top: -40px;
  right: 8%;
  animation: float 9s ease-in-out infinite;
}

.shape-yellow {
  bottom: -70px;
  right: 4%;
  width: clamp(100px, 12vw, 180px);
  animation: float 7s ease-in-out infinite reverse;
}

.shape-purple {
  bottom: 12%;
  left: -50px;
  width: clamp(90px, 10vw, 150px);
  animation: float 11s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-24px) rotate(8deg);
  }
}

/* =========================================================
   HERO SLIDER
   ========================================================= */
.hero-slider {
  background:
    linear-gradient(0deg, rgba(0, 183, 172, .82), rgba(0, 183, 172, .82)),
    url("../img/slider-bg.jpg") center / cover no-repeat;
}

.slider {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform .55s var(--ease);
}

.slide {
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  min-height: 200px;
  /* el padding va dentro del slide (box-sizing: border-box), no en .slider:
     así el recorte de overflow coincide con el borde del slide y no se
     asoman los mensajes anterior/siguiente. */
  padding: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 8vw, 6rem);

  & h2 {
    color: var(--white);
    text-align: center;
    font-size: clamp(1.4rem, 1rem + 2.4vw, 2.7rem);
    max-width: 20ch;
    text-wrap: balance;
  }
}

.slider-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: rgba(255, 255, 255, .65);
  transition: color .2s var(--ease), transform .2s var(--ease);

  & svg {
    width: 30px;
    height: 30px;
  }

  &:hover {
    color: var(--white);
  }

  &.prev {
    left: .25rem;
  }

  &.next {
    right: .25rem;
  }

  &.prev:hover {
    transform: translateX(-3px);
  }

  &.next:hover {
    transform: translateX(3px);
  }
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: .55rem;
  margin-bottom: 1.8rem;

  & button {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    transition: background .2s var(--ease), transform .2s var(--ease);

    &.is-active {
      background: var(--white);
      transform: scale(1.25);
    }
  }
}

/* =========================================================
   METODOLOGÍAS
   ========================================================= */
.metodologias {
  background: linear-gradient(rgb(255 255 255 / 90%), rgb(255 255 255 / 90%)), url(../img/fondopies.png) no-repeat;
  padding-block: clamp(4rem, 9vw, 8rem);
  background-size:cover ;
  & .section-title {
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  }
  .container {
    display: grid;
    grid-template-columns: 550px 1fr;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.8rem);
    @media screen and (max-width: 1024px) {
      grid-template-columns: 1fr;
    }
  }
}


.value-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.8rem);
  grid-template-columns: 1fr 1fr;
  max-width: 980px;
  margin-inline: auto;
  @media screen and (max-width: 550px) {
    grid-template-columns: 1fr;
  }
}


.value-card {
  & .value-num {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--ink);
    display: block;
    margin-bottom: 1rem;
    display:flex;
    align-items: center;
    margin: 0 0 2rem 0;
    &::after{
      content: "";
      display: inline-block;
      width: 60%;
      height: 1px;
      background: var(--ink);
      margin-left: .75rem;
    }
  }

  & h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: .6rem;
  }
}

/* =========================================================
   SERVICIOS / VIDEO
   ========================================================= */
.services {
  position: relative;
  background: var(--coral);
  border-top-left-radius: clamp(48px, 9vw, 120px);
  margin-top: -1px;
  overflow: hidden;
  isolation: isolate;
}

.services-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 118, 86, .83);
}

.services-inner {
  display: grid;
  grid-template-columns: 550px 1fr;
  gap: clamp(1rem, 5vw, 2rem);
  align-items: center;
  padding-block: clamp(4rem, 9vw, 8rem);
}

.services-intro h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.6rem);
  margin-bottom: 1.8rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  width: fit-content;
  color: var(--white);
  background: var(--orange);
  padding: .85rem 2.2rem;
  border-radius: 999px;
  transition: transform .2s var(--ease), background .2s var(--ease);

  &:hover {
    background: var(--coral);
    color: var(--white);
    transform: translateY(-3px);
  }
}

.btn-block {
  width: 100%;
  text-align: center;
}
.list-serv{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.8rem);
  span{
    font-size: clamp(1rem, 0.484vw + 0.794rem, 1.375rem);
    color: var(--white);
    border-bottom: 1px solid var(--white);
    padding: 0 0 .25rem 0;
  }
  @media screen and (max-width: 680px) {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MIX DE TÉCNICAS
   ========================================================= */
.mix {
  background: var(--cream);
  padding-block: clamp(4rem, 9vw, 8rem);
  position: relative;
  .shape-yellow {
    bottom: -70px;
    left: -110px;
    z-index: 1;
    width: clamp(6.25rem, 24.194vw - 4.032rem, 15.625rem);
  }
}

.mix .section-title {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 24ch;
  text-align: center;
}

.mix-grid {
  display: grid;
  gap: clamp(1.4rem, 2.6vw, 2.2rem);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.grid-metodologias {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  .mix-card{
    background: var(--white);
    padding: 32px;
    &:nth-of-type(1){
      .mix-icon{
        background: var(--orange);
      }
    }
    &:nth-of-type(2){
      .mix-icon{
        background: var(--pink);
      }
    }
    &:nth-of-type(3){
      .mix-icon{
        background: var(--purple);
      }
    }
    &:nth-of-type(4){
      .mix-icon{
        background: var(--teal);
      }
    }
    &:nth-of-type(5){
      .mix-icon{
        background: var(--yellow);
      }
    }
    &:nth-of-type(6){
      .mix-icon{
        background: var(--orange);
      }
    }
    &:nth-of-type(7){
      .mix-icon{
        background: var(--orange2);
      }
    }
    &:nth-of-type(8){
      .mix-icon{
        background: var(--pink);
      }
    }
    &:nth-of-type(9){
      .mix-icon{
        background: var(--purple);
      }
    }
  }
}

@media (min-width: 600px) {
  .grid-metodologias {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 920px) {
  .grid-metodologias {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mix-card {
  display: block;
  text-align: center;
  padding: 2.4rem 0;
  transition: var(--transition);
  & .mix-icon {
    display: grid;
    place-items: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    border: solid 10px var(--white);
    background: var(--pink);
    &:before{
      
      font-family: elementskit !important;
      font-style: normal;
      font-weight: 400;
      font-variant: normal;
      text-transform: none;
      color: var(--white);
      font-size: 45px;
      line-height: 1;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    &.ico-teccual:before{
      content: "\ea00";
    }
    &.ico-teccuan:before{
      content: "\e9ff";
    }
    &.ico-mistery:before{
      content: "\ea16";
    }
    &.ico-estadistica:before{
      content: "\e932";
    }
    &.ico-equipos:before{
      content: "\ead3";
    }
    /* íconos grilla de metodologías */
    &.ico-imagen:before{
      content: "\e817";
    }
    &.ico-reputacion:before{
      content: "\e814";
    }
    &.ico-au:before{
      content: "\e852";
    }
    &.ico-satisfaccion:before{
      content: "\e9c7";
    }
    &.ico-ux:before{
      content: "\eaa9";
    }
    &.ico-etnografia:before{
      content: "\e960";
    }
    &.ico-innovacion:before{
      content: "\ebc6";
    }
    &.ico-comunicacional:before{
      content: "\eac4";
    }
    &.ico-shopper:before{
      content: "\eac8";
    }
  }

  & .mix-icon svg {
    width: 34px;
    height: 34px;
    fill: var(--white);
  }

  & h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: .7rem;
  }

  & p {
    font-size: .92rem;
    color: #555;
  }

  &:hover {
    transform: scale(1.05);
  }
}

/* =========================================================
   CLIENTES
   ========================================================= */

.clients {
  background: var(--cream);
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
}
.container-cli{
  max-width: 700px;
  padding: 2em 2em 4em 2em;
  & h2 {
    font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.625rem);
    margin-bottom: 1.4rem;
    position: relative;
    text-align: left;
    width: fit-content;
    margin: 1em auto !important;
    &:before {
      content: "";
      width: 40%;
      height: 2px;
      background: #000;
      display: block;
      margin: 0 0 .25em 0;
      position: absolute;
      top: -10px;
      left: 0;
    }
  }
}
.clients .section-title {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  max-width: 1200px;
  margin: 0 auto;
}

.marquee-track {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  width: max-content;
  animation: scroll-x 300s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  flex: none;
  display: grid;
  place-items: center;
  width: 275px;
  height: 170px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(49, 33, 66, .1);
  overflow: hidden;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);

  &:hover {
    box-shadow: 0 10px 26px rgba(49, 33, 66, .16);
    transform: translateY(-4px);
  }
}

.marquee-item img {
  width: 78%;
  max-height: 78%;
  height: auto;
  object-fit: contain;
}

@keyframes scroll-x {
  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact {
  background: var(--cream);
  padding-block: clamp(4rem, 9vw, 8rem);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-form-wrap h2 {
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem);
  margin-bottom: .5rem;
}

.contact-form-wrap>p {
  margin-bottom: 1.8rem;
  color: var(--ink-soft);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: .85rem 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);

  &::placeholder {
    color: #9a948b;
  }

  &:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(81, 0, 153, 0.1);
  }
}

.field textarea {
  resize: vertical;
}

.field input:user-invalid {
  border-color: var(--pink);
}

/* Honeypot anti-spam: oculto para humanos, visible para bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 1rem;
  min-height: 1.2em;
  font-weight: 500;

  &.is-ok {
    color: var(--teal);
  }

  &.is-err {
    color: var(--pink);
  }
}

.contact-aside img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.contact-cards {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--white);
  border: 1px solid #ece6dd;
  border-radius: 14px;
  padding: 1.2rem 1.4rem;

  & .contact-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--coral), var(--pink));
  }

  & .contact-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
  }

  & h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: .15rem;
  }

  & p {
    font-size: .95rem;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  isolation: isolate;
  color: var(--white);
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(273deg, #00B7AC 0%, #FFFFFF 84%);
  opacity: .85;
  @media screen and (max-width: 768px) {
    background: linear-gradient(273deg, #00B7AC 0%, #a8a8a8 84%);
  }
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.footer-col h2 {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 1.1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
}

.footer-col a {
  color: var(--white);
}

.footer-col a:hover {
  color: var(--coral);
}

.footer-col p {
  margin-bottom: .8rem;
}

.footer-brand img {
  width: min(260px, 80%);
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .15);
  background: var(--pink);

}

.footer-bar-inner {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.2rem;
  font-size: 1rem;

  & a {
    color: rgba(255, 255, 255, .7);
  }
}

/* =========================================================
   TO-TOP BUTTON
   ========================================================= */
.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 10px 24px rgba(255, 118, 86, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;

  & svg {
    width: 22px;
    height: 22px;
  }

  &.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  &:hover {
    background: var(--purple-dark);
  }
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  &.is-in {
    opacity: 1;
    animation: reveal-rise .6s var(--ease);
  }
}

@keyframes reveal-rise {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  :root {
    --header-h: 80px;
  }
  body:has(.is-open){
    overflow: hidden!important;
    &:before {
      content: "";
      width: 100%;
      height: 100dvh;
      position: fixed;
      background: rgba(49, 33, 66, .6);
      backdrop-filter: blur(4px);
      display: block;
      top: 0;
      left: 0;
      z-index: 1;
    }
  }
  .nav-toggle {
    display: flex;
    order: 4;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    background: var(--white);
    border-bottom: 1px solid #ece8e2;
    box-shadow: 0 20px 40px rgba(49, 33, 66, .15);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .35s var(--ease);

    & ul {
      flex-direction: column;
      gap: 0;
      padding: .5rem 1.25rem 1.25rem;
    }

    & li {
      border-bottom: 1px solid #f0ece5;
    }

    & a {
      display: block;
      padding: .95rem .25rem;
    }

    & a::after {
      display: none;
    }

    &.is-open {
      clip-path: inset(0 0 0 0);
    }
  }

  .social {
    order: 2;
  }

  .services-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header-inner {
    gap: .75rem;
  }

  .social a {
    width: 34px;
    height: 34px;
  }

  .social svg {
    width: 16px;
    height: 16px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .slide {
    padding-inline: clamp(2.8rem, 12vw, 3.5rem);
  }

  .footer-bar-inner {
    flex-direction: column;
    gap: .25rem;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- Motion / accessibility ---------- */
/* @media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
} */

/* =========================================================
   PÁGINA NOSOTROS
   (reutiliza tokens, tipografías y componentes ya definidos)
   ========================================================= */

/* ---------- Banner de cabecera ---------- */
.page-hero {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  isolation: isolate;
  min-height: 30vh;
  padding-block: clamp(3rem, 8vw, 6rem);
  background: url("../img/nosotros-hero.jpg") left / cover no-repeat;

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(160deg, rgba(49, 33, 66, .8), rgba(91, 57, 139, .72));
  }

  & h1 {
    color: var(--white);
    font-size: clamp(2.4rem, 1.5rem + 4vw, 4.25rem);
  }
  &.contacto{
    background: url("../img/contacto-hero.jpg") left / cover no-repeat;
    &::before{
      background: linear-gradient(160deg, rgba(0, 183, 172, .8), rgba(0, 183, 172, .72));
    }
  }
  &.clientes{
    background: url("../img/clientes-hero.jpg") left / cover no-repeat;
    &::before{
      background: linear-gradient(160deg, rgba(250, 52, 110, .8), rgba(250, 52, 110, .72));
    }
  }
  &.servicios{
    background: url("../img/servicios-hero.jpg") left / cover no-repeat;
    &::before{
      background: linear-gradient(160deg, rgba(250, 132, 52, .8), rgba(250, 132, 52, .72));
    }
  }
}

/* ---------- Intro (mismo degradado que el hero del home) ---------- */
.intro {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-image: linear-gradient(178deg, #f6f4f0 10%, var(--white) 96%);
  padding-block: clamp(4rem, 9vw, 7rem);
}

.intro-inner {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  max-width: 760px;
}

.intro h2 {
  font-size: clamp(1.8rem, 1.1rem + 3vw, 2.7rem);
  color: var(--purple-dark);
}

.intro p {
  font-size: clamp(1.05rem, 1rem + .5vw, 1.4rem);
  max-width: 46ch;
  color: var(--ink-soft);
}

/* ---------- Nuestro Propósito ---------- */
.proposito {
  padding-block: clamp(2rem, 9vw, 4rem);
  text-align: center;
  .container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    @media (max-width: 650px) {
        grid-template-columns: 1fr;
    }
  }
  & h2 {
    font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.625rem);
    margin-bottom: 1.4rem;
    position: relative;
    text-align: left;
    width: fit-content;
    margin: auto;
    &:before {
      content: "";
      width: 40%;
      height: 2px;
      background: #000;
      display: block;
      margin: 0 0 .25em 0;
      position: absolute;
      top: -10px;
      left: 0;
    }
  }

  & p {
    font-family: var(--font-body);
    max-width: 450px;
    font-size: clamp(.85rem, 1rem + 1vw, 1rem);
    line-height: 1.85;
    margin-inline: auto;
    color: var(--ink);
    text-align: left;
  }

  & strong {
    font-weight: 600;
  }
}

/* ---------- Equipo ---------- */
.team {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--white);
  padding-block: clamp(1rem, 9vw, 2rem);

  & .section-title {
    text-align: center;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  }
}

.team-grid {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 1000px;
  margin-inline: auto;
  @media (max-width: 650px) {
      grid-template-columns: 1fr;
      .logo-nosotros{
        display: none;
      }
  }
  
}

.team-card {
  position: relative;
  text-align: center;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  & img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    width: 160px;
  }

  & .team-body {
    padding: 1.4rem 1.3rem 1.9rem;
  }

  & h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--ink);
    margin-bottom: .35rem;
  }

  & .team-body > p {
    font-size: .92rem;
    color: var(--ink-soft);
  }

  & .team-more {
    margin-top: 1rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .9rem;
    color: var(--coral);
    transition: var(--transition);

    /* el botón cubre toda la tarjeta para hacerla clicable */
    &::after {
      content: "";
      position: absolute;
      inset: 0;
    }
  }
  &:hover{
    transform: translateY(-10px);
  }
  &:hover .team-more {
    color: var(--purple);
  }
}

/* círculo naranja decorativo (reutiliza la animación `float`) */
.shape-naranja {
  position: absolute;
  z-index: -1;
  width: clamp(170px, 26vw, 360px);
  right: clamp(-120px, -8vw, -70px);
  bottom: clamp(-120px, -8vw, -70px);
  opacity: .9;
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}

/* ---------- Modal de perfil ---------- */
.team-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(49, 33, 66, .6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;

  &.is-open {
    opacity: 1;
    visibility: visible;
  }
}

.team-modal-dialog {
  display: grid;
  grid-template-columns: 230px 1fr;
  width: 100%;
  max-width: 750px;
  max-height: 88vh;
  overflow: auto;
  background: var(--white);
  border-radius: var(--radius);
  transform: translateY(20px) scale(.97);
  transition: transform .3s var(--ease);

  .team-modal.is-open & {
    transform: none;
  }

  & > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }
}

.team-modal-body {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.2rem);

  & h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--ink);
    margin-bottom: .2rem;
  }

  & .bio {
    margin-bottom: 1rem;
  }
}

.team-modal-role {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 1rem;
}

.team-modal-contact {
  color: var(--ink-soft);

  & a {
    font-weight: 600;
  }
}

.modal-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--purple-dark);
  background: var(--cream);
  transition: var(--transition);

  & svg {
    width: 18px;
    height: 18px;
  }

  &:hover {
    background: var(--coral);
    color: var(--white);
  }
}

@media (max-width: 560px) {
  .team-modal-dialog {
    grid-template-columns: 1fr;
  }

  .team-modal-dialog > img {
    aspect-ratio: 16 / 10;
    height: auto;
  }
}