
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

:root{
  --navy: #0B1F3A;
  --navy-2: #08162A;
  --ink: #0B1220;
  --muted: rgba(11, 18, 32, .72);
  --bg: #ffffff;
  --line: rgba(11, 18, 32, .12);
  --card: rgba(255,255,255,.92);
  --shadow: 0 18px 55px rgba(2, 6, 23, .10);
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1180px;
  --container-wide: 1340px;
}

/* Shell */
.shell{
  width: min(var(--container), calc(100% - 2.2rem));
  margin-inline: auto;
}
.shell--wide{
  width: min(var(--container-wide), calc(100% - 2.2rem));
  margin-inline: auto;
}


/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11, 18, 32, .08);
}
.site-header.is-scrolled{
  background: rgba(255,255,255,.92);
}

.site-header .shell{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}
.brand__logo{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: .04em;
  background: var(--navy);
  color: #fff;
}

.brand__tag{
  display: block;
  font-size: 1rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
}

.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background-color: #0b1f3b;
  border-radius: 2px;
}


/* Líneas */
.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background-color: #0b1f3b; /* azul corporativo */
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__list{
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link{
  color: rgba(11,18,32,.86);
  font-weight: 700;
  font-size: 1.05rem;
  padding: .55rem .55rem;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav__link:hover{
  background: rgba(11,31,58,.06);
}
.nav__link.is-active{
  color: var(--navy);
  background: rgba(11,31,58,.08);
}

.nav__cta{
  background: var(--navy);
  color: #fff !important;
  padding: .6rem .95rem;
}
.nav__cta:hover{
  background: var(--navy-2);
  transform: translateY(-1px);
}

.has-dropdown{ position: relative; }
.nav__btn{
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav__chev{
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(11,18,32,.7);
  border-bottom: 2px solid rgba(11,18,32,.7);
  transform: rotate(45deg);
  margin-left: .35rem;
  margin-bottom: 2px;
}

.dropdown{
  position: absolute;
  top: calc(100% + .7rem);
  left: 0;
  width: 320px;
  padding: .6rem;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(11,18,32,.10);
  box-shadow: var(--shadow);
  display: none;
}
.has-dropdown.is-open .dropdown{ display: block; animation: dd .18s ease both; }
@keyframes dd{
  from{ opacity: 0; transform: translateY(-6px); }
  to{ opacity: 1; transform: translateY(0); }
}
.dropdown__link{
  display: block;
  padding: .7rem .75rem;
  border-radius: 12px;
  color: rgba(11,18,32,.86);
  font-weight: 650;
}
.dropdown__link:hover{ background: rgba(11, 31, 58, 0); }

/* Hero */
.hero{
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #fff;
}
.hero__media{
  position: absolute;
  inset: 0;
}
.hero__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
  transform: scale(1.02);
}
.hero__slides{
  position: absolute;
  inset: 0;
}
.hero__slide{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero__slide.is-active{ opacity: 1; }

.hero__scrim{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 500px at 20% 20%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(900px 600px at 80% 30%, rgba(255,255,255,.12), transparent 55%),
    linear-gradient(to bottom, rgba(11,31,58,.55), rgba(11,31,58,.72));
}

.hero__content{
  position: relative;
  max-width: 820px;
  padding: 7rem 0 5rem;
  color: #fff;
}
.kicker{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  padding: .5rem .75rem;
  border-radius: 999px;
}
.hero__title{
  margin: 1.1rem 0 .8rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-size: clamp(2.4rem, 4.2vw, 4.1rem);
}
.hero__lead{
  margin: 0;
  font-size: clamp(1.02rem, 1.25vw, 1.25rem);
  color: rgba(255,255,255,.86);
  max-width: 70ch;
}

.hero__actions{
  display: flex;
  gap: .9rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hero__stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 2rem;
  max-width: 720px;
}
.stat{
  padding: .85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}
.stat__top{
  font-weight: 900;
  font-size: 1.25rem;
}
.stat__bottom{
  color: rgba(255,255,255,.82);
  font-size: .92rem;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn--primary{
  background: #fff;
  color: var(--navy);
  border-color: transparent;
}
.btn--primary:hover{ transform: translateY(-1px); }
.btn--ghost{
  background: transparent;
  color: #fff;
}
.btn--ghost:hover{
  background: rgba(255,255,255,.10);
}
.btn--light{
  background: #fff;
  color: var(--navy);
}

/* Scroll hint */
.scroll-hint{
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 44px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
}
.scroll-hint__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  animation: dot 1.35s ease infinite;
}
@keyframes dot{
  0%{ transform: translateY(-8px); opacity: .8; }
  70%{ transform: translateY(10px); opacity: 1; }
  100%{ transform: translateY(10px); opacity: .2; }
}

/* Bands */
.band{
  padding: 5rem 0;
}
.band--flush{ padding-top: 3.5rem; padding-bottom: 3.5rem; }
.band--light{ background: #fff; }
.band--dark{
  background: linear-gradient(180deg, var(--navy), var(--navy-2));
  color: #fff;
}

/* Section head */
.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.2rem;
}
.section-head h2{
  margin: 0;
  font-size: clamp(1.6rem, 2.1vw, 2.2rem);
  font-weight: 950;
  letter-spacing: -0.01em;
}
.section-head p{
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}
.band--dark .section-head p{ color: rgba(255,255,255,.78); }

/* Services */
.service-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.service-card{
  border-radius: var(--radius);
  border: 1px solid rgba(11, 18, 32, 0.192);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 55px rgba(2,6,23,.06);
  padding: 1.35rem 1.25rem;
  transition: transform .22s ease, box-shadow .22s ease;
}
.service-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 65px rgba(2,6,23,.10);
}
.service-card__label{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(11,31,58,.08);
  color: var(--navy);
}
.service-card h3{
  margin: .9rem 0 .35rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.service-card p{
  margin: 0 0 .75rem;
  color: var(--muted);
}
.link{
  font-weight: 850;
  color: var(--navy);
  display: inline-flex;
  gap: .35rem;
  align-items: center;
}
.link::after{
  content: "→";
  transition: transform .18s ease;
}
.link:hover::after{ transform: translateX(2px); }

/* Statement */
.statement{
  max-width: 980px;
}
.statement__kicker{
  margin: 0 0 .6rem;
  letter-spacing: .08em;
  font-weight: 850;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  font-size: .86rem;
}
.statement__title{
  margin: 0;
  font-size: clamp(2.1rem, 3.2vw, 3.1rem);
  font-weight: 950;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.statement__text{
  margin: .9rem 0 0;
  color: rgba(255,255,255,.82);
  max-width: 70ch;
}

/* Tiles */
.tile-row{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.tile{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  border: 1px solid rgba(11,18,32,.10);
  box-shadow: var(--shadow);
}
.tile__bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform .6s ease;
}
.tile:hover .tile__bg{ transform: scale(1.10); }
.tile::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,31,58,.18), rgba(11,31,58,.78));
}
.tile__content{
  position: relative;
  z-index: 2;
  padding: 1.35rem;
  color: #fff;
  display: grid;
  align-content: end;
  height: 100%;
  gap: .45rem;
}
.tile__content h3{
  margin: 0;
  font-weight: 950;
  font-size: 1.35rem;
}
.tile__content p{
  margin: 0;
  color: rgba(255,255,255,.84);
  max-width: 45ch;
}
.tile__cta{
  margin-top: .5rem;
  width: fit-content;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 850;
}

/* Split */
.split{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2rem;
  align-items: center;
}
.split__copy h2{
  margin: .25rem 0 .6rem;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  font-weight: 950;
  letter-spacing: -0.01em;
}
.split__copy p{
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 70ch;
}
.big-media{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(11,18,32,.10);
  box-shadow: var(--shadow);
}
.big-media img{
  width: 100%;
  height: clamp(340px, 42vw, 520px);
  object-fit: cover;
  transform: scale(1.02);
}

/* CTA */
.cta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  padding: 1.6rem 1.6rem;
}
.cta h2{
  margin: 0 0 .25rem;
  font-size: 1.7rem;
  font-weight: 950;
}
.cta p{
  margin: 0;
  color: rgba(255,255,255,.78);
}

/* Footer */
.site-footer{
  padding: 2.5rem 0;
  border-top: 1px solid rgba(11,18,32,.08);
  background: #fff;
}
.footer__inner{
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}
.footer__copy{
  display: block;
  margin-top: .8rem;
  color: var(--muted);
}
.footer__links{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer__links a{
  color: rgba(11,18,32,.75);
  font-weight: 750;
}
.footer__links a:hover{ color: var(--navy); }

/* Reveal animations (subtle) */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px){
  .section-head{ flex-direction: column; align-items: flex-start; }
  .service-grid{ grid-template-columns: 1fr; }
  .tile-row{ grid-template-columns: 1fr; }
  .split{ 
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.2rem;
  }
  .hero{ min-height: 88vh; }
  .hero__content{ padding: 6rem 0 4.5rem; }
  .hero__stats{ grid-template-columns: 1fr; max-width: 520px; }
  .cta{ flex-direction: column; align-items: flex-start; }

  /* Todas las secciones: imagen primero */
  .split__media{
    order: 1;
    margin-top: 2;
    margin-bottom: 2rem;
  }

  .split__copy{
    order: 0;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  /* Anulamos cualquier reverse en móvil */
  .split--reverse .split__media{
    order: 1;
  }

  .split--reverse .split__copy{
    order: 0;
  }

  /* Botones más pegados a la imagen */
  .inline-actions{
    margin-top: 1.4rem;
    margin-bottom: 0rem;
  }

  /* Evita margen extra bajo el texto */
  .split__copy p:last-of-type{
    margin-bottom: 0rem;
  }

  /* Quita el “salto” extra justo después del método */
  #metodo{
    padding-bottom: 0rem;
  }

  .band{
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  /* Reduce aire de la sección siguiente (Control/Calidad/Plazos) */
  .metric-grid{
    margin-top: 1rem;
  }

  /* OPCIÓN: forzar texto primero en móvil */
  .split--text-first .split__copy{
    order: 0;
    margin-bottom: 0rem;
  }

  .split--text-first .split__media{
    order: 1;
    margin-top: 1rem; /* pequeño aire entre texto e imagen */
    margin-bottom: -1rem;
  }
}


/* ===========================
   Servicios page additions
=========================== */

/* Page hero (no video) */
.page-hero{
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.page-hero__media{
  position: absolute;
  inset: 0;
}
.page-hero__image{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}
.page-hero__scrim{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 20% 25%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(to bottom, rgba(11,31,58,.55), rgba(11,31,58,.78));
}
.page-hero__content{
  position: relative;
  color: #fff;
  padding: 6rem 0 4rem;
  max-width: 900px;
}
.page-hero__title{
  margin: 1.1rem 0 .8rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.06;
  font-size: clamp(2.1rem, 3.3vw, 3.2rem);
}
.page-hero__lead{
  margin: 0;
  color: rgba(255,255,255,.86);
  max-width: 72ch;
  font-size: clamp(1.02rem, 1.15vw, 1.2rem);
}
.page-hero__actions{
  display: flex;
  gap: .9rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

/* Dark kicker variant */
.kicker--dark{
  background: rgba(11,31,58,.08);
  border: 1px solid rgba(11,31,58,.12);
  color: var(--navy);
}

/* Ghost button on light sections */
.btn--dark{
  color: var(--navy);
  border-color: rgba(11,31,58,.18);
}
.btn--dark:hover{
  background: rgba(11,31,58,.06);
}

/* Bullets */
.bullets{
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .6rem;
}
.bullets li{
  position: relative;
  padding-left: 1.2rem;
  color: var(--muted);
  font-weight: 650;
}
.bullets li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .55rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--navy);
}

/* Inline actions */
.inline-actions{
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}

/* Split reverse */
.split--reverse{
  grid-template-columns: .95fr 1.05fr;
}
.split--reverse .split__copy{ order: 1; }
.split--reverse .split__media{ order: 0; }

/* Feature row */
.feature-row{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.feature{
  padding: 1rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 55px rgba(2,6,23,.06);
}
.feature h3{
  margin: 0 0 .35rem;
  font-weight: 900;
}
.feature p{
  margin: 0;
  color: var(--muted);
}

/* Metrics */
.metric-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.metric{
  padding: 1rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(11,31,58,.04);
}
.metric__num{
  display: block;
  font-weight: 950;
  color: var(--navy);
  font-size: 1.1rem;
}
.metric__txt{
  display: block;
  margin-top: .25rem;
  color: var(--muted);
  font-weight: 650;
}

/* Responsive additions */
@media (max-width: 980px){
  .page-hero{ min-height: 62vh; }
  .page-hero__content{ padding: 5.2rem 0 3.6rem; }
  .feature-row{ grid-template-columns: 1fr; }
  .metric-grid{ grid-template-columns: 1fr; }
  .split--reverse{ grid-template-columns: 1fr; }
  .split--reverse .split__copy{ order: 0; }
  .split--reverse .split__media{ order: 1; }
}

/* ===========================
   Contact page additions
=========================== */

.contact-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.contact-card{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 55px rgba(2,6,23,.06);
  padding: 1.35rem 1.35rem;
  display: grid;
  gap: 1.1rem;
}

.contact-card--wide{
  grid-column: 1 / -1;
}

.contact-badge{
  display: inline-flex;
  width: fit-content;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(11,31,58,.08);
  border: 1px solid rgba(11,31,58,.12);
  color: var(--navy);
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .78rem;
}

.contact-card h3{
  margin: .75rem 0 .25rem;
  font-weight: 950;
  letter-spacing: -0.01em;
}

.contact-muted{
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.contact-card__actions{
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

/* Form */
.form-card{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 55px rgba(2,6,23,.06);
  padding: 1.35rem 1.35rem;
}

.form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.field{
  display: grid;
  gap: .35rem;
}

.field--full{
  grid-column: 1 / -1;
}

label{
  font-weight: 850;
  color: rgba(11,18,32,.86);
  font-size: .95rem;
}

input, select, textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(11,18,32,.12);
  padding: .85rem .9rem;
  font-size: 1rem;
  outline: none;
  background: #fff;
  color: var(--ink);
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(11,31,58,.45);
  box-shadow: 0 0 0 4px rgba(11,31,58,.10);
}

.form-btn{
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

.form-note{
  margin: .8rem 0 0;
  color: var(--muted);
  font-size: .92rem;
}

@media (max-width: 980px){
  .contact-grid{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
}

/* ===========================
   Projects blocks (3 types)
=========================== */

.type-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.type-tab{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,.12);
  background: rgba(255,255,255,.92);
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}

.type-tab:hover{
  transform: translateY(-2px);
  background: rgba(11,31,58,.06);
  border-color: rgba(11,31,58,.20);
}

/* Full-width blocks */
.proj-block{
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.proj-block__bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.proj-block__scrim{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 20% 25%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(to bottom, rgba(11,31,58,.55), rgba(11,31,58,.88));
}

.proj-block__inner{
  position: relative;
  z-index: 2;
  padding: 5.2rem 0 3.2rem;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items: end;
}

.proj-block__content{
  color: #fff;
  max-width: 820px;
}

.proj-block__title{
  margin: 1rem 0 .7rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.06;
  font-size: clamp(2rem, 3.0vw, 3.1rem);
}

.proj-block__text{
  margin: 0;
  color: rgba(255,255,255,.86);
  max-width: 70ch;
  font-size: clamp(1.02rem, 1.15vw, 1.2rem);
}

.proj-block__actions{
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.4rem;
}

/* Project list inside block */
.proj-list{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  padding: 1.05rem 1.05rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.proj-list__title{
  margin: 0 0 .75rem;
  color: rgba(255,255,255,.92);
  font-weight: 950;
  letter-spacing: -0.01em;
}

.proj-item{
  display: grid;
  gap: .15rem;
  padding: .85rem .8rem;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}

.proj-item + .proj-item{
  margin-top: .65rem;
}

.proj-item:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
}

.proj-item__name{
  color: rgba(255,255,255,.95);
  font-weight: 950;
}

.proj-item__meta{
  color: rgba(255,255,255,.72);
  font-weight: 650;
}

/* Light buttons over dark background */
.btn--light{
  border-color: rgba(255,255,255,.35);
}
.btn--light:hover{
  background: rgba(255,255,255,.10);
}

@media (max-width: 980px){
  .proj-block{
    min-height: 86vh;
    align-items: start;
  }
  .proj-block__inner{
    grid-template-columns: 1fr;
    padding: 4.6rem 0 3rem;
    align-items: start;
  }
}
/* Smooth scroll for anchor navigation */
html {
  scroll-behavior: smooth;
}
/* ===========================
   Projects blocks as carousels
=========================== */

.type-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.type-tab{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,.12);
  background: rgba(255,255,255,.92);
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}
.type-tab:hover{
  transform: translateY(-2px);
  background: rgba(11,31,58,.06);
  border-color: rgba(11,31,58,.20);
}

/* Full-width blocks */
.proj-block{
  position: relative;
  min-height: 95vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.proj-block__bg{
  position: absolute;
  inset: 0;
}

/* Two layers to cross-fade */
.proj-bgLayer{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 520ms ease, transform 900ms ease;
}
.proj-bgLayer.is-active{
  opacity: 1;
  transform: scale(1.0);
}

.proj-block__scrim{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 20% 25%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(to bottom, rgba(11,31,58,.55), rgba(11,31,58,.88));
}

/* Arrows */
.proj-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0, 0, 0, 0.411);
  color: rgba(255,255,255,.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.proj-arrow:hover{
  transform: translateY(-50%) scale(1.06);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.30);
}
.proj-arrow span{
  font-size: 34px;
  line-height: -5px;
  margin-top: -7px;
}
.proj-arrow--left{ left: 18px; }
.proj-arrow--right{ right: 18px; }

/* Layout inside block */
.proj-block__inner{
  position: relative;
  z-index: 2;
  padding: 5.2rem 0 3.2rem;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items: end;
}

.proj-block__content{
  color: #fff;
  max-width: 820px;
}

.proj-block__title{
  margin: 1rem 0 .7rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.06;
  font-size: clamp(2rem, 3.0vw, 3.1rem);
}

.proj-block__text{
  margin: 0;
  color: rgba(255,255,255,.86);
  max-width: 70ch;
  font-size: clamp(1.02rem, 1.15vw, 1.2rem);
}

.proj-block__actions{
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.4rem;
}

/* Active project card */
.proj-active{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.proj-active__title{
  margin: 0;
  color: rgba(255,255,255,.95);
  font-weight: 950;
  letter-spacing: -0.01em;
  font-size: 1.15rem;
}

.proj-active__meta{
  margin: .25rem 0 0;
  color: rgba(255,255,255,.72);
  font-weight: 650;
}

.proj-active__actions{
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}

.proj-active__hint{
  margin: .9rem 0 0;
  color: rgba(255,255,255,.70);
  font-weight: 650;
  font-size: .95rem;
}

/* Project change animation (content) */
.proj-active.is-swapping{
  animation: projSwap 420ms ease both;
}
@keyframes projSwap{
  0%{ opacity: .35; transform: translateY(10px); }
  100%{ opacity: 1; transform: translateY(0); }
}

/* Light buttons over dark background */
.btn--light{
  border-color: rgba(255,255,255,.35);
}
.btn--light:hover{
  background: rgba(255,255,255,.10);
}

/* Responsive */
@media (max-width: 980px){
  .proj-block{
    min-height: 86vh;
    align-items: start;
  }
  .proj-block__inner{
    grid-template-columns: 1fr;
    padding: 4.6rem 0 3rem;
    align-items: start;
  }
  .proj-arrow--left{ left: 12px; }
  .proj-arrow--right{ right: 12px; }
}
/* ===========================
   Project page (individual)
=========================== */

.project-hero{
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.project-hero__media{
  position: absolute;
  inset: 0;
}

.project-hero__bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.project-hero__scrim{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 20% 25%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(to bottom, rgba(11,31,58,.55), rgba(11,31,58,.90));
}

.project-hero__content{
  position: relative;
  z-index: 2;
  padding: 5.2rem 0 3rem;
  color: #fff;
  max-width: 980px;
}

.project-hero__title{
  margin: 1rem 0 .7rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2.1rem, 3.2vw, 3.35rem);
}

.project-hero__lead{
  margin: 0;
  color: rgba(255,255,255,.86);
  max-width: 75ch;
  font-size: clamp(1.02rem, 1.15vw, 1.2rem);
}

.project-hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.5rem;
}

.project-meta{
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  max-width: 820px;
}

.project-meta__item{
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  padding: .9rem .95rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project-meta__k{
  display: block;
  color: rgba(255,255,255,.70);
  font-weight: 700;
  font-size: .92rem;
}

.project-meta__v{
  display: block;
  color: rgba(255,255,255,.95);
  font-weight: 950;
  margin-top: .25rem;
}

/* Gallery carousel */
.gallery-carousel{
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: min(72vh, 720px);
  background: rgba(11,31,58,.06);
  border: 1px solid rgba(11,18,32,.10);
}

.gallery-carousel__stage{
  position: absolute;
  inset: 0;
}

/* Two layers for cross-fade */
.gallery-layer{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 520ms ease, transform 900ms ease;
}
.gallery-layer.is-active{
  opacity: 1;
  transform: scale(1.0);
}

/* Arrows */
.gallery-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(11,31,58,.20);
  color: rgba(255,255,255,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gallery-arrow:hover{
  transform: translateY(-50%) scale(1.06);
  background: rgba(11,31,58,.28);
  border-color: rgba(255,255,255,.35);
}
.gallery-arrow span{
  display: block;
  font-size: 34px;
  line-height: 1;
}
.gallery-arrow--left{ left: 16px; }
.gallery-arrow--right{ right: 16px; }

/* Bottom UI */
.gallery-ui{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  z-index: 2;
  background: linear-gradient(to top, rgba(11,31,58,.78), transparent);
}

.gallery-caption{
  display: grid;
  gap: .15rem;
}
.gallery-caption__title{
  color: rgba(255,255,255,.94);
  font-weight: 950;
}
.gallery-caption__count{
  color: rgba(255,255,255,.72);
  font-weight: 700;
  font-size: .95rem;
}

.gallery-dots{
  display: flex;
  gap: .45rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.gallery-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.10);
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}
.gallery-dot.is-active{
  background: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.90);
  transform: scale(1.15);
}

/* Responsive */
@media (max-width: 980px){
  .project-hero__content{
    padding: 4.8rem 0 2.6rem;
  }
  .project-meta{
    grid-template-columns: 1fr;
  }
  .gallery-carousel{
    min-height: 62vh;
  }
}

/* ===========================
   Project hero
=========================== */
.project-hero{
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.project-hero__media{
  position: absolute;
  inset: 0;
}

.project-hero__bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.project-hero__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero__scrim{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 20% 25%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(to bottom, rgba(11,31,58,.55), rgba(11,31,58,.90));
}

.project-hero__content{
  position: relative;
  z-index: 2;
  padding: 5.2rem 0 3rem;
  color: #fff;
  max-width: 980px;
}

.project-hero__title{
  margin: 1rem 0 .7rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2.1rem, 3.2vw, 3.35rem);
}

.project-hero__lead{
  margin: 0;
  color: rgba(255,255,255,.86);
  max-width: 75ch;
  font-size: clamp(1.02rem, 1.15vw, 1.2rem);
}

.project-hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.5rem;
}

.project-meta{
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  max-width: 820px;
}

.project-meta__item{
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  padding: .9rem .95rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project-meta__k{
  display: block;
  color: rgba(255,255,255,.70);
  font-weight: 700;
  font-size: .92rem;
}

.project-meta__v{
  display: block;
  color: rgba(255,255,255,.95);
  font-weight: 950;
  margin-top: .25rem;
}

/* ===========================
   Gallery (full width carousel)
=========================== */
.gallery-carousel{
  position: relative;
  overflow: hidden;
  background: rgba(11,31,58,.06);
  border: 1px solid rgba(11,18,32,.10);
}

.gallery-carousel--full{
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  min-height: min(78vh, 860px);
}

.gallery-carousel__stage{
  position: absolute;
  inset: 0;
}

.gallery-layer{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 520ms ease, transform 900ms ease;
}

.gallery-layer.is-active{
  opacity: 1;
  transform: scale(1.0);
}

/* Arrows */
.gallery-arrow{
   position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gallery-arrow:hover{
  transform: translateY(-50%) scale(1.06);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.30);
}

.gallery-arrow span{
  font-size: 34px;
  line-height: -5px;
  margin-top: -7px;
}

.gallery-arrow--left{ left: 18px; }
.gallery-arrow--right{ right: 18px; }

/* Bottom UI */
.gallery-ui{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  z-index: 2;
  background: linear-gradient(to top, rgba(11,31,58,.78), transparent);
}

.gallery-caption{
  display: grid;
  gap: .15rem;
}

.gallery-caption__title{
  color: rgba(255,255,255,.94);
  font-weight: 950;
}

.gallery-caption__count{
  color: rgba(255,255,255,.72);
  font-weight: 700;
  font-size: .95rem;
}

.gallery-dots{
  display: flex;
  gap: .45rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.gallery-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.10);
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}

.gallery-dot.is-active{
  background: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.90);
  transform: scale(1.15);
}

@media (max-width: 980px){
  .project-meta{ grid-template-columns: 1fr; }
  .gallery-carousel--full{ min-height: 62vh; }
}

/*
------------------------- 
Aviso - Legal hero
------------------------- 
 */

/* Legal hero (short height, full width) */
.legal-hero{
  position: relative;
  min-height: 34vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.legal-hero__media{ position: absolute; inset: 0; }
.legal-hero__bg{
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.legal-hero__scrim{
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,31,58,.25), rgba(11,31,58,.88));
}

.legal-hero__content{
  position: relative; z-index: 2;
  color: #fff;
  padding: 2.8rem 0 2.2rem;
  max-width: 980px;
}

.legal-hero__title{
  margin: .6rem 0 .4rem;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.08;
  font-weight: 950;
}

.legal-hero__lead{
  margin: 0;
  color: rgba(255,255,255,.84);
  max-width: 70ch;
}

.legal-content{
  max-width: 980px;
}

.legal-list{
  margin: 1rem 0 1.2rem;
  padding-left: 1.1rem;
}

.legal-sep{
  margin: 2rem 0;
  border: 0;
  height: 1px;
  background: rgba(11,18,32,.10);
}

.legal-actions{
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ===========================
   Cookie banner + settings
=========================== */
.cookie-banner,
.cookie-modal{
  font-family: inherit;
}

.cookie-banner{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;

  background: rgba(11,31,58,.92);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 18px 55px rgba(0,0,0,.35);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;

  transition: transform 240ms ease, opacity 240ms ease;
}

.cookie-banner.is-visible{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner__inner{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  padding: 16px 16px;
  align-items: center;
}

@media (max-width: 820px){
  .cookie-banner__inner{
    grid-template-columns: 1fr;
  }
}

.cookie-banner__title{
  font-weight: 900;
  margin: 0 0 4px;
  letter-spacing: .2px;
}

.cookie-banner__text{
  margin: 0;
  color: rgba(255,255,255,.78);
  max-width: 80ch;
}

.cookie-banner__links{
  display: inline-flex;
  gap: 10px;
  margin-top: 8px;
}

.cookie-banner__links a{
  color: rgba(255,255,255,.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-btn{
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.cookie-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
}

.cookie-btn--primary{
  background: rgba(255,255,255,.92);
  color: rgba(11,31,58,.95);
  border-color: transparent;
}

.cookie-btn--primary:hover{
  background: rgba(255,255,255,.98);
}

/* Modal */
.cookie-modal{
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.cookie-modal.is-open{
  display: grid;
  place-items: center;
}

.cookie-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.cookie-modal__panel{
  position: relative;
  width: min(760px, calc(100% - 32px));
  background: #0b1f3a;
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  overflow: hidden;
}

.cookie-modal__head{
  padding: 18px 18px 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.cookie-modal__title{
  margin: 0 0 6px;
  font-weight: 950;
}

.cookie-modal__desc{
  margin: 0;
  color: rgba(255,255,255,.78);
}

.cookie-modal__body{
  padding: 14px 18px;
  display: grid;
  gap: 12px;
}

.cookie-row{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}

.cookie-row__name{
  font-weight: 900;
  margin: 0 0 4px;
}

.cookie-row__info{
  margin: 0;
  color: rgba(255,255,255,.75);
}

.cookie-toggle{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  white-space: nowrap;
}

.cookie-toggle input{
  width: 44px;
  height: 26px;
  appearance: none;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.cookie-toggle input:checked{
  background: rgba(255,255,255,.92);
  border-color: transparent;
}

.cookie-toggle input::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(11,31,58,.95);
  transform: translateY(-50%);
  transition: left 160ms ease, background 160ms ease;
}

.cookie-toggle input:checked::after{
  left: 22px;
  background: rgba(11,31,58,.95);
}

.cookie-modal__foot{
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ===========================
   Header tweaks (wider + logo image + bigger name)
=========================== */

/* Make header container wider */
:root{
  --container-wide: 1560px; /* was 1340px */
}

/* Replace CP box with an image logo */
.brand__logo{
  display: none; /* hide old CP badge if still in HTML somewhere */
}

.brand__img{
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
}

/* Make the brand name more readable */
.brand__name{
  font-size: clamp(2rem, 1.2vw, 2.25rem);
  letter-spacing: .02em;
  font-weight: 950;
}

.cta h2{
  white-space: nowrap;          /* evita salto de línea */
  overflow: hidden;
  text-overflow: ellipsis;      /* seguridad */
}

/* Optional: in small screens, compact */
@media (max-width: 520px){
  .brand__tag{ display: none; }
  .brand__img{ width: 42px; height: 42px; }
  .brand__name{ font-size: 1.08rem; }

  .hero__stats{
    position: relative;
    max-width: 100%;
    margin-top: 1.3rem;
  }

  .hero__stats .stat{
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 400ms ease, transform 400ms ease;

    padding: .9rem 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
  }

  .hero__stats .stat.is-active{
    opacity: 1;
    transform: translateY(0);
    position: relative;
  }

  .stat__top{
    font-size: 1.15rem;
  }

  .stat__bottom{
    font-size: .9rem;
  }

  /* CTA más compacto en móvil */
  .cta{
    padding: 1.1rem 1.1rem;   /* antes era mucho más alto */
    gap: .9rem;
    border-radius: 18px;
  }

  .cta h2{
    font-size: 1.1rem;
    line-height: 1.25;
    margin-bottom: .35rem;
  }

  .cta p{
    font-size: .95rem;
    line-height: 1.35;
    margin: 0;
  }

  /* Botón CTA más pequeño */
  .cta .btn{
    padding: .6rem 1rem;
    font-size: .95rem;
    border-radius: 999px;
    align-self: flex-start;  /* evita que estire el bloque */
  }

  /* Footer: apilar en columna y alinear bien */
  .footer__inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }

  /* Bloque izquierdo: que ocupe todo el ancho */
  .footer__left{
    width: 100%;
  }

  /* Marca: ajustar alineación y tamaño */
  .site-footer .brand{
    align-items: center;
    gap: .7rem;
  }

  .site-footer .brand__img{
    width: 42px;
    height: 42px;
  }

  .site-footer .brand__name{
    font-size: 1.1rem;
  }

  /* Links: en columna, con separación y sin "morderse" */
  .footer__links{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr; /* columna */
    gap: .55rem;
  }

  .footer__links a{
    display: block;
    padding: .7rem .85rem;
    border-radius: 14px;
    border: 1px solid rgba(11,18,32,.10);
    background: rgba(11,31,58,.04);
  }

  .footer__copy{
    margin-top: .65rem;
  }
  
  /* 1) Kicker más corto */
  .proj-block .kicker{
    width: fit-content;
    max-width: 86%;
    padding: .42rem .7rem;
    font-size: .74rem;
    letter-spacing: .07em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 2) Botones más pequeños (todos los del bloque) */
  .proj-block .btn{
    padding: .58rem .8rem;
    font-size: .9rem;
    font-weight: 800;
  }

  /* Forzar layout vertical y empujar el box al fondo */
  .proj-block__inner{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    /* ocupa todo el alto del bloque en móvil */
    min-height: calc(100vh - 74px); /* ajusta 74px si tu header es distinto */
    padding: 4.6rem 1.1rem 1.2rem;
  }

  /* 4) Botones superiores en 2 columnas, encima del box */
  .proj-block__actions{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    margin-top: .85rem;
    margin-bottom: 1rem;
  }

  .proj-block__actions .btn{
    width: 100%;
    justify-content: center;
    white-space: nowrap;
  }

  /* El box baja al fondo */
  .proj-active{
    margin-top: auto;      /* <- clave */
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;

    padding: .85rem 3.1rem;  /* deja hueco visual a flechas */
    border-radius: 18px;
  }

  .proj-active__title{ font-size: 1rem; line-height: 1.2; }
  .proj-active__meta{ font-size: .9rem; }
  .proj-active__hint{ font-size: .88rem; }

  .proj-active__actions .btn{
    width: 100%;
    padding: .55rem .8rem;
    font-size: .9rem;
  }

   /* Flechas centradas */
  .proj-arrow{
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .proj-arrow--left{ left: 10px; }
  .proj-arrow--right{ right: 10px; }

  .proj-arrow span{
    display: block;
    line-height: 1;
    transform: translateY(-1px); /* ajuste visual para móvil */
  }

  /* 7) Evitar que las flechas tapen el box: solo damos margen al BOX, no a todo */
  .proj-active{
    padding-left: 3.1rem;  /* hueco visual por la flecha izq */
    padding-right: 3.1rem; /* hueco visual por la flecha dcha */
  }
    /* Pills: que puedan caber SIEMPRE */
  .mixed-badges{
    left: 12px;
    right: 12px;            /* usamos todo el ancho disponible */
    bottom: 12px;

    display: grid;
    grid-template-columns: 1fr 1fr;  /* 2 columnas iguales */
    gap: 8px;

    white-space: normal;    /* permite ajustar */
    flex-wrap: wrap;        /* por si algún navegador mantiene flex */
  }

  /* Ambos botones EXACTAMENTE iguales */
  .mixed-tag{
    width: 100%;
    text-align: center;
    justify-content: center;

    font-size: .78rem;
    padding: .42rem .55rem;
    border-radius: 999px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* CTA hereda igual tamaño (solo cambia colores) */
  .mixed-tag--cta{
    width: 100%;
    text-align: center;
    justify-content: center;

    font-size: .78rem;
    padding: .42rem .55rem;
    border-radius: 999px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

   /* 🔑 Caso CLAVE: solo hay una pill */
  .mixed-badges > .mixed-tag:only-child,
  .mixed-badges > .mixed-tag--cta:only-child{
    width: 50%;              /* mismo tamaño que una columna */
    justify-self: center;    /* centrada horizontalmente */
    grid-column: 1 / -1;     /* ocupa la fila completa, pero NO el ancho */
  }
}

/* ===========================
   Otros proyectos - Full width gallery
=========================== */

/* ===========================
   Otros proyectos (galería mezclada + filtros)
   - Grid full width (4 columnas en desktop)
   - Botones tipo “pill” (tag + ver proyecto)
   - Dos pills en la misma línea (no se apilan)
=========================== */

/* Contenedor filtros */
.gallery-filters{
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}

.gallery-filter{
  border-radius: 999px;
  padding: .65rem 1rem;
  border: 1px solid rgba(11,18,32,.12);
  background: rgba(255,255,255,.92);
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}

.gallery-filter:hover{
  transform: translateY(-2px);
  background: rgba(11,31,58,.06);
  border-color: rgba(11,31,58,.20);
}

.gallery-filter.is-active{
  background: rgba(11,31,58,.10);
  border-color: rgba(11,31,58,.26);
}

/* Grid FULL WIDTH (tocando bordes) */
.mixed-grid{
  width: 100%;
  margin: 1.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; /* <- sin separación */
}

/* Cada card */
.mixed-card{
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3; /* imagen grande, consistente */
  background: rgba(11,31,58,.06);
}

/* Imagen ocupa todo */
.mixed-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 650ms ease;
  display: block;
}

.mixed-card:hover img{
  transform: scale(1.06);
}

/* Degradado para legibilidad abajo */
.mixed-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,31,58,.78), rgba(11,31,58,.05), transparent 60%);
  pointer-events: none;
}

/* CONTENEDOR DE PILLS (tag + ver proyecto) */
.mixed-badges{
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;

  display: inline-flex;      /* <- clave */
  flex-direction: row;       /* <- clave */
  align-items: center;
  gap: 10px;

  white-space: nowrap;       /* <- clave */
  flex-wrap: nowrap;         /* <- por si acaso */
}

/* PILL base */
.mixed-tag{
  display: inline-flex;      /* <- clave */
  align-items: center;
  justify-content: center;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: rgba(11,31,58,.88);
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  line-height: 1;
}

/* PILL CTA (ver proyecto) */
.mixed-tag--cta{
  background: rgba(255,255,255,.92);
  color: var(--navy);
  border: 1px solid rgba(255,255,255,.55);
  text-decoration: none;
  transition: transform 200ms ease, background 200ms ease;
}

.mixed-tag--cta:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.98);
}

/* Estado oculto para filtrado (si lo usas) */
.mixed-card.is-hidden{
  display: none;
}

/* Responsive */
@media (max-width: 1100px){
  .mixed-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px){
  .mixed-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mixed-badges{
    left: 12px;
    bottom: 12px;
  }
  .mixed-tag{
    padding: .5rem .85rem;
    font-size: .82rem;
  }
    /* Reducir padding superior de la sección */
  #destacados.band {
    padding-top: 0rem;
    padding-bottom: 5rem;
  }

  /* Quitar margen excesivo del texto */
  #destacados .split__copy {
    margin-top: 0;
  }

  /* Reducir espacio entre imagen anterior y texto */
  #destacados .kicker {
    margin-top: 0;
  }
}
@media (max-width: 420px){
  .mixed-grid{
    grid-template-columns: 1fr;
  }

     /* Un poco más de “aire” lateral real */
     .proj-carousel .proj-block__inner {
       padding-left: .95rem;
       padding-right: .95rem;
     }
  
     /* Kicker: que no se coma el ancho */
     .proj-carousel .kicker {
       max-width: 100%;
       font-size: .72rem;
       padding: .40rem .65rem;
     }
  
     /* Texto algo más compacto */
     .proj-carousel .proj-block__title {
       font-size: 1.9rem;
       /* evita clamp grande */
       line-height: 1.06;
     }
  
     .proj-carousel .proj-block__text {
       font-size: .98rem;
     }
  
     /* CTAs: centrados y NO gigantes */
     .proj-carousel .proj-block__actions {
       display: grid;
        grid-template-columns: 1fr 1fr;
       gap: .55rem;
       justify-items: stretch;
       margin-top: .9rem;
       margin-bottom: 1.1rem;
     }
  
     .proj-carousel .proj-block__actions .btn {
          width: 100%;
            /* llena su columna */
            padding: .52rem .55rem;
            /* más compacto */
            font-size: .82rem;
            /* baja un poco */
            border-radius: 999px;
            white-space: nowrap;
            /* una línea */
            overflow: hidden;
            text-overflow: ellipsis;
            /* por si algún idioma es largo */
     }
  
     /* Flechas: más pequeñas y más abajo para no tapar CTAs */
     .proj-carousel .proj-arrow {
       width: 40px;
       height: 40px;
       top: 56%;
       /* baja un poco */
       background: rgba(0, 0, 0, .38);
     }
  
     .proj-carousel .proj-arrow--left {
       left: 8px;
     }
  
     .proj-carousel .proj-arrow--right {
       right: 8px;
     }
  
     .proj-carousel .proj-arrow span {
       font-size: 28px;
       margin-top: -4px;
     }
  
     /* Card inferior: centrada, sin “banner”, y que no se corte */
     .proj-carousel .proj-active {
       width: min(340px, 100%);
       margin-left: auto;
       margin-right: auto;
  
       padding: .85rem 1rem;
       border-radius: 18px;
     }
  
     .proj-carousel .proj-active__title {
       font-size: 1rem;
       line-height: 1.2;
     }
  
     .proj-carousel .proj-active__meta {
       font-size: .9rem;
     }
  
     /* Botón del card: ancho controlado y centrado */
     .proj-carousel .proj-active__actions {
       justify-content: center;
     }
  
     .proj-carousel .proj-active__actions .btn {
       width: min(260px, 100%);
       justify-content: center;
       padding: .55rem .85rem;
       font-size: .92rem;
     }
}

/* ===========================
   Language selector (header)
=========================== */

.lang{ position: relative; }

.lang__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  line-height: 1;
}

/* Flag */
.lang__flag{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(11,18,32,.10);
}

/* Code */
.lang__code{
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

/* Dropdown width */
.lang__dropdown{ width: 220px; }

/* Dropdown options */
.lang__opt{
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;

  display: flex;
  align-items: center;
  gap: .6rem;
}

.lang__opt[aria-current="true"]{
  background: rgba(11,31,58,.06);
}

/* Mobile */
@media (max-width: 920px){
  .lang__dropdown{ width: 100%; }
  .lang__code{ font-size: 1rem; }
}

/* =========================================================
   Mantener look "móvil" también en 521–980 (tablet)
   SOLO para .proj-carousel (tus 3 bloques)
========================================================= */
@media (min-width: 521px) and (max-width: 980px) {

  /* 1) Kicker: mismo tamaño que en móvil */
  .proj-carousel .kicker {
    width: fit-content;
    max-width: 86%;
    padding: .42rem .7rem;
    font-size: .74rem;
    letter-spacing: .07em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 2) Título y texto: evita que “salten” a grande */
  .proj-carousel .proj-block__title {
    font-size: clamp(2rem, 5.6vw, 2.4rem);
    line-height: 1.06;
  }

  .proj-carousel .proj-block__text {
    font-size: .98rem;
    max-width: 62ch;
  }

  /* 3) Botones: MISMO look compacto que a 520px */
  .proj-carousel .btn {
    padding: .58rem .8rem;
    font-size: .9rem;
    font-weight: 800;
    border-radius: 999px;
  }

  /* 4) Botones superiores en 2 columnas */
  .proj-carousel .proj-block__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    margin-top: .85rem;
    margin-bottom: 1rem;
  }

  .proj-carousel .proj-block__actions .btn {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
  }

  /* 5) Layout vertical + card al fondo (como móvil) */
  .proj-carousel .proj-block__inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: calc(100svh - 74px);
    /* ajusta si header distinto */
    padding: 4.6rem 1.1rem 1.2rem;
    gap: 1.1rem;
  }

  .proj-carousel .proj-active {
    margin-top: auto;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;

    padding: .85rem 3.1rem;
    /* hueco visual a flechas */
    border-radius: 18px;
  }

  /* 6) Botón interno del card a ancho completo (como móvil) */
  .proj-carousel .proj-active__actions .btn {
    width: 100%;
    justify-content: center;
    padding: .55rem .8rem;
    font-size: .9rem;
  }

  /* 7) Flechas contenidas */
  .proj-carousel .proj-arrow {
    width: 44px;
    height: 44px;
  }

  .proj-carousel .proj-arrow--left {
    left: 10px;
  }

  .proj-carousel .proj-arrow--right {
    right: 10px;
  }
}


/* ===========================
   Desktop: evitar que .proj-active se estire (PC) ELIMINAR SI QUEREMOS QUE SEA COMO ANTES
=========================== */
@media (min-width: 981px){

  /* La columna derecha no debe forzar ancho completo */
  .proj-carousel .proj-active{
    justify-self: end;      /* se pega a la derecha */
    align-self: end;        /* se queda abajo */
    width: fit-content;     /* 🔑 se ajusta al contenido */
    max-width: 520px;       /* límite razonable */
    min-width: 320px;       /* para que no quede demasiado estrecho */
  }

  /* El botón NO debe estirar el bloque */
  .proj-carousel .proj-active__actions .btn{
    width: fit-content;
  }
}

/* ===========================
    Desktop: evitar que .proj-active se estire (PC) ELIMINAR SI QUEREMOS QUE SEA COMO ANTES
=========================== */

@media (max-width: 1314px) {

  .nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ccd1d86e;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }

  .nav-toggle__bar {
    width: 20px;
    height: 2px;
    background-color: #0b1f3b;
    border-radius: 2px;
  }

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 74px;
    /* ajusta si tu header no mide ~74px */
    z-index: 60;

    width: 100%;
    max-height: calc(100vh - 74px);
    overflow: auto;

    background: rgba(255, 255, 255, .96);
    border-top: 1px solid rgba(11, 18, 32, .10);

    padding: .9rem 1rem 1rem;
    display: none;
  }

  .nav.is-open {
    display: block;
    animation: dd .18s ease both;
  }

  .nav__list {
    display: grid;
    grid-auto-rows: min-content;
    gap: .35rem;
    align-items: stretch;
  }

  .nav__link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: .9rem 1rem;
    border-radius: 16px;
    font-size: 1.05rem;
    line-height: 1.2;

    background: rgba(11, 31, 58, .04);
    border: 1px solid rgba(11, 18, 32, .08);
  }

  .nav__btn {
    border: 0;
    background: rgba(11, 31, 58, .04);
    cursor: pointer;
  }

  .nav__cta {
    justify-content: center;
    background: var(--navy);
    border-color: transparent;
    color: #fff !important;
  }

  .dropdown {
    position: static;
    width: 100%;
    display: none;
    margin: .25rem 0 .65rem;

    padding: .55rem;
    border-radius: 16px;
    border: 1px solid rgba(11, 18, 32, .08);
    background: rgba(11, 31, 58, .03);
    box-shadow: none;
  }

  .has-dropdown.is-open .dropdown {
    display: grid;
    gap: .25rem;
  }

  .dropdown__link {
    padding: .7rem .85rem;
    border-radius: 14px;
    font-weight: 750;
    font-size: 1rem;
    background: #fff;
    border: 1px solid rgba(11, 18, 32, .08);
  }

  .dropdown__link:hover {
    background: rgba(11, 31, 58, .06);
  }

  .nav__chev {
    margin-left: .6rem;
    margin-bottom: 0;
  }
}

/* =========================================================
   Cookies banner responsive (mejoras)
   - Desktop/tablet >=873: mantiene 2 columnas (actual)
   - <873: apila contenido y ajusta botones
========================================================= */

/* Base: mejorar comportamiento general */
.cookie-banner {
  max-height: calc(100svh - 32px);
  overflow: auto;
}

.cookie-banner__actions {
  gap: 10px;
  flex-wrap: wrap;
  /* por si acaso */
}

/* ---------------------------------------------------------
   1) < 873px: pasamos a 1 columna (adiós a 1.2fr / .8fr)
--------------------------------------------------------- */
@media (max-width: 872px) {
  .cookie-banner__inner {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
    padding: 14px;
  }

  /* Texto un pelín más compacto */
  .cookie-banner__title {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .cookie-banner__text {
    font-size: .95rem;
    line-height: 1.45;
  }

  /* Acciones en 3 columnas (encaja bien 820–872 aprox.) */
  .cookie-banner__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 10px;
  }

  .cookie-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    font-size: .95rem;
  }
}

/* ---------------------------------------------------------
   2) <= 520px: móvil real (2 columnas + Aceptar abajo)
   - Rechazar | Configurar
   - Aceptar (full width)
--------------------------------------------------------- */
@media (max-width: 520px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-radius: 16px;
  }

  .cookie-banner__inner {
    padding: 12px;
    gap: 10px;
  }

  .cookie-banner__links {
    gap: 12px;
    flex-wrap: wrap;
  }

  .cookie-banner__actions {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* Aceptar ocupa toda la fila inferior */
  .cookie-btn--primary {
    grid-column: 1 / -1;
  }

  .cookie-btn {
    padding: 10px 12px;
    font-size: .92rem;
  }
}

/* ---------------------------------------------------------
   3) <= 380px: ultra-compact (iPhone SE / Galaxy S8)
--------------------------------------------------------- */
@media (max-width: 380px) {
  .cookie-banner__text {
    font-size: .828rem;
  }

  .cookie-btn {
    padding: 8.1px 9px;
    font-size: .81rem;
  }
}


