:root {
  --ink: #0b1830;
  --navy: #112648;
  --brass: #c6a15b;
  --brass2: #e3c98f;
  --bg: #f2f4f8;
  --card: #fff;
  --tx: #18212f;
  --mut: #5b6678;
  --line: rgba(24, 33, 47, .12);
  --r: 16px;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--sans);
  color: var(--tx);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--brass);
  z-index: 60;
}

/* nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5%;
  transition: .35s;
  /* CAMBIO: Texto oscuro y fondo blanco por defecto */
  color: var(--ink); 
  background: var(--card); 
}

.nav.sc {
  /* CAMBIO: Fondo blanco con ligera transparencia al hacer scroll */
  background: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(10px);
  padding: 12px 5%;
  /* CAMBIO: Sombra un poco más suave para que combine mejor con el blanco */
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08); 
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
}

.brand em {
  color: var(--brass2);
  font-style: italic;
}

.mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  color: var(--brass2);
  font-size: 18px;
}

#menu {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
}

#menu a {
  position: relative;
  padding: 4px 0;
  opacity: .88;
  transition: .2s;
}

#menu a:not(.cta-nav)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1.5px;
  width: 0;
  background: var(--brass);
  transition: .3s;
}

#menu a:hover,
#menu a.on {
  opacity: 1;
}

#menu a:hover::after,
#menu a.on::after {
  width: 100%;
}

.cta-nav {
  padding: 9px 20px !important;
  border: 1px solid var(--brass);
  border-radius: 30px;
  transition: .25s;
}

.cta-nav:hover {
  background: var(--brass);
  color: var(--ink);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  align-items: center;
}

.burger span {
  width: 24px;
  height: 2px;
  /* CAMBIO: Líneas del menú oscuro en lugar de blanco */
  background: var(--ink); 
  transition: .3s;
}

.burger[aria-expanded=true] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.burger[aria-expanded=true] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 5% 90px;
  color: #fff;
  overflow: hidden;
  background: var(--ink);

  padding: 120px 5% 90px; /* Cambia el 120px por 160px o 180px */
}


.hero video,
.hero > img {
  position: absolute;
  top: 100px; /* Empuja la imagen para que inicie debajo del menú */
  left: 0;
  width: 100%;
  height: calc(100% - 100px); /* Reduce el alto para que no se desborde por abajo */
  object-fit: cover;
  object-position: center top; 
}

.veil {
  position: absolute;
  top: 100px; /* Debemos empujar el degradado oscuro también */
  left: 0;
  width: 100%;
  height: calc(100% - 100px);
  background: linear-gradient(100deg, rgba(11, 24, 48, .95) 15%, rgba(11, 24, 48, .6) 60%, rgba(11, 24, 48, .35));
}

.hero-in {
  position: relative;
  max-width: 760px;
  margin-left: max(0px, calc((100% - 1160px) / 2));
}

.kicker {
  color: var(--brass2);
  letter-spacing: .14em;
  font-size: 13px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.kicker::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--brass);
}

.hero h1 {
  font-size: clamp(42px, 7vw, 84px);
  letter-spacing: -.015em;
}

.hero h1 em {
  color: var(--brass2);
}

.rot {
  margin: 26px 0 12px;
  font-size: 20px;
  color: #dfe5f0;
}

.rot b {
  color: var(--brass2);
  font-weight: 500;
  display: inline-block;
  transition: .4s;
}

.rot b.out {
  opacity: 0;
  transform: translateY(8px);
}

.lead {
  max-width: 560px;
  color: #c3cddd;
  margin-bottom: 34px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 40px;
  background: var(--brass);
  color: var(--ink);
  font-weight: 600;
  transition: .25s;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--brass2);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(198, 161, 91, .35);
}

.btn.ghost {
  background: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .4);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, .1);
  box-shadow: none;
}

.scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 14px;
  transform: translateX(-50%);
}

.scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--brass2);
  animation: dot 1.8s infinite;
}

@keyframes dot {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* sections */
.sec {
  padding: clamp(70px, 10vw, 130px) 5%;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}

.eyebrow {
  color: var(--brass);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
}

.sec h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  margin-bottom: 22px;
  letter-spacing: -.01em;
}

.big {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
  color: var(--mut);
}

.head {
  max-width: 680px;
  margin-bottom: 50px;
}

.head p:last-child {
  color: var(--mut);
}

.dark {
  background: var(--ink);
  color: #fff;
}

.navy {
  background: var(--navy);
  color: #fff;
}

.dark .head p:last-child,
.dark .big,
.navy .big {
  color: #b9c4d8;
}

.navy p {
  color: #cfd7e6;
}

.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s, transform .8s;
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* about tabs */
.tab-list {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: #e5e9f0;
  border-radius: 40px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}

.tab-list button {
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  color: var(--mut);
  transition: .25s;
  white-space: nowrap;
}

.tab-list button.on {
  background: var(--ink);
  color: #fff;
}

.tab-body {
  margin-top: 24px;
  padding: 34px;
  background: var(--card);
  border-radius: var(--r);
  border-top: 3px solid var(--brass);
  box-shadow: 0 20px 50px -25px rgba(11, 24, 48, .25);
  min-height: 230px;
  animation: fade .5s;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.tab-body h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.chips span {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-weight: 500;
  transition: .25s;
}

.chips span:hover {
  background: var(--ink);
  color: var(--brass2);
  transform: translateY(-3px);
}

/* especialidades */
.spec {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: stretch;
}

.sp-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-tabs button {
  text-align: left;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  font-family: var(--serif);
  font-size: 20px;
  color: #b9c4d8;
  transition: .3s;
  position: relative;
}

.sp-tabs button:hover {
  border-color: var(--brass);
}

.sp-tabs button.on {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

.sp-panel {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  background: var(--navy);
  border-radius: var(--r);
  overflow: hidden;
  min-height: 480px;
  animation: fade .5s;
}

.sp-img {
  background-size: cover;
  background-position: center;
  min-height: 200px;
  position: relative;
}

.sp-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 38, 72, .55), transparent);
}

.sp-txt {
  padding: 34px;
}

.sp-txt h3 {
  font-size: 32px;
  margin-bottom: 10px;
}

.sp-txt > p {
  color: #b9c4d8;
  margin-bottom: 20px;
}

.acc-i {
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.acc-b {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  text-align: left;
  font-weight: 500;
}

.acc-b i {
  font-style: normal;
  color: var(--brass2);
  font-size: 22px;
  line-height: 1;
  transition: .3s;
}

.acc-i.open .acc-b i {
  transform: rotate(45deg);
}

.acc-p {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s;
}

.acc-i.open .acc-p {
  grid-template-rows: 1fr;
}

.acc-p div {
  overflow: hidden;
}

.acc-p p {
  padding-bottom: 14px;
  color: #b9c4d8;
}

.sp-txt .btn {
  margin-top: 20px;
  padding: 11px 24px;
}

/* equipo */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  align-items: start;
}

.m {
  background: var(--card);
  border-radius: var(--r);
  padding: 26px;
  text-align: center;
  box-shadow: 0 18px 40px -26px rgba(11, 24, 48, .35);
  transition: .3s;
}

.m:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -24px rgba(11, 24, 48, .4);
}

.ph {
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--brass);
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--brass2);
  font-family: var(--serif);
  font-size: 44px;
}

.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.m h3 {
  font-size: 23px;
}

.role {
  color: var(--brass);
  font-weight: 600;
  font-size: 14px;
  margin: 6px 0 14px;
}

.tg {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 14px;
  transition: .25s;
}

.tg:hover,
.tg[aria-expanded=true] {
  background: var(--ink);
  color: #fff;
}

.more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s;
}

.m.open .more {
  grid-template-rows: 1fr;
}

.more > div {
  overflow: hidden;
  text-align: left;
  font-size: 14px;
  color: var(--mut);
}

.more h4 {
  margin: 18px 0 6px;
  color: var(--tx);
  font-size: 14px;
}

.more ul {
  padding-left: 18px;
}

.more li {
  margin-bottom: 5px;
}

.soc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.soc a {
  padding: 7px 16px;
  border: 1px solid var(--brass);
  border-radius: 30px;
  font-size: 14px;
  transition: .25s;
}

.soc a:hover {
  background: var(--brass);
  color: var(--ink);
}

.more .soc {
  justify-content: center;
  padding-bottom: 4px;
}

.more .soc a {
  color: var(--tx);
}

/* saneamiento */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.pills button {
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 30px;
  font-size: 14px;
  transition: .25s;
}

.pills button:hover {
  border-color: var(--brass2);
}

.pills button.on {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

.sn-card {
  padding: 34px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  min-height: 210px;
  animation: fade .5s;
}

.sn-card h3 {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--brass2);
}

.sn-card p {
  color: #dbe2ef;
}

/* contacto */
.info {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.info a {
  display: block;
  padding: 16px 20px;
  background: var(--card);
  border-radius: 12px;
  border-left: 3px solid var(--brass);
  transition: .25s;
}

.info a:hover {
  transform: translateX(6px);
  box-shadow: 0 12px 28px -18px rgba(11, 24, 48, .4);
}

.info small {
  display: block;
  color: var(--mut);
  font-size: 13px;
}

.form {
  background: var(--card);
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r);
  box-shadow: 0 30px 60px -35px rgba(11, 24, 48, .4);
  display: grid;
  gap: 22px;
}

.f {
  position: relative;
  display: block;
}

.f input,
.f textarea {
  width: 100%;
  padding: 22px 14px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #f8f9fb;
  transition: .25s;
  resize: vertical;
}

.f span {
  position: absolute;
  left: 14px;
  top: 15px;
  color: var(--mut);
  pointer-events: none;
  transition: .2s;
  font-size: 15px;
}

.f input:focus + span,
.f input:not(:placeholder-shown) + span,
.f textarea:focus + span,
.f textarea:not(:placeholder-shown) + span {
  top: 5px;
  font-size: 12px;
  color: var(--brass);
}

.f input:focus,
.f textarea:focus {
  outline: 0;
  border-color: var(--brass);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(198, 161, 91, .18);
}

.f i {
  display: none;
  font-style: normal;
  color: #b3372f;
  font-size: 13px;
  margin-top: 4px;
}

.f.bad i {
  display: block;
}

.f.bad input,
.f.bad textarea {
  border-color: #b3372f;
}

.form .btn {
  justify-self: start;
}

/* footer + extras */
.foot {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 50px 5% 40px;
}

.foot p {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 6px;
}

.foot .soc {
  justify-content: center;
  margin-bottom: 26px;
}

.foot .soc a {
  color: #fff;
}

.foot small {
  color: #8d99ae;
}

.wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  padding: 13px 20px;
  border-radius: 40px;
  background: var(--brass);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  transition: .25s;
}

.wa:hover {
  transform: translateY(-3px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 70;
  transform: translate(-50%, 30px);
  opacity: 0;
  padding: 14px 24px;
  background: var(--ink);
  color: #fff;
  border-left: 3px solid var(--brass);
  border-radius: 10px;
  transition: .4s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media(max-width:900px) {
.burger {
    display: flex;
    position: relative; /* Aseguramos que respete el z-index */
    z-index: 10000; /* Un punto más alto que el menú para que la X siempre sea visible y puedan cerrarlo */
 }
 #menu {
    position: fixed;
    /* CAMBIO 1: Ajustamos inset para que ocupe desde el tope y cubra toda la pantalla o la parte derecha */
    inset: 0 0 0 30%; /* Puedes poner 'inset: 0' si quieres que el menú cubra toda la pantalla del celular */
    
    /* CAMBIO 2: Agregamos un z-index altísimo para que SIEMPRE esté por encima de TODO */
    z-index: 9999; 
    
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; 
    padding: 0 40px; 
    gap: 24px;
    background: var(--ink);
    color: #fff;
    font-size: 20px;
    transform: translateX(100%);
    transition: .4s;
    
    /* CAMBIO 3: Agregamos overflow por si hay demasiadas opciones y necesitan hacer scroll DENTRO del menú */
    overflow-y: auto; 
  }
 /* ... el resto del código que tengas aquí abajo déjalo igual ... */
 #menu.open {
    transform: none;
  }

  /* Ajustamos el contenedor de sub-opciones */
  .dd {
    width: 100%;
  }

  /* Ajustamos las sub-opciones para que se vean ordenadas */
  #menu .dd-m {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    border: 0;
    box-shadow: none;
    margin: 10px 0 0 0;
    /* CAMBIO: Le damos 20px de sangría a la izquierda para que se note que es un submenú */
    padding: 0 0 0 20px; 
    min-width: 0;
  }
  .two,
  .spec,
  .sp-panel {
    grid-template-columns: 1fr;
  }
  .sp-tabs {
    flex-direction: row;
    overflow-x: auto;
  }
  .sp-tabs button {
    white-space: nowrap;
    font-size: 17px;
    padding: 14px 18px;
  }
  .sp-img {
    min-height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .rv {
    opacity: 1;
    transform: none;
  }
}

/* ===================== v2: gráficos, botones y páginas ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #e3c98f, #c6a15b 55%, #a9803a);
  box-shadow: 0 10px 26px -8px rgba(198, 161, 91, .7);
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  animation: shine 3.4s infinite;
}

@keyframes shine {
  0%,
  55% {
    left: -70%;
  }
  100% {
    left: 130%;
  }
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: .3s;
}

.btn:hover svg {
  transform: translateX(5px);
}

.btn.light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .5);
}

.btn.ghost::after {
  display: none;
}

.ic {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.dd {
  position: relative;
}

.dd-m {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 270px;
  padding: 10px;
  margin-top: 14px;
  background: var(--ink);
  border: 1px solid rgba(198, 161, 91, .35);
  border-radius: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .25s;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .4);
}

.dd-m::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.dd:hover .dd-m,
.dd:focus-within .dd-m {
  opacity: 1;
  visibility: visible;
  transform: none;
}

#menu .dd-m a {
  display: block;
  padding: 11px 14px;
  border-radius: 9px;
  opacity: 1;
  color: #fff; /* AGREGA ESTA LÍNEA PARA QUE EL TEXTO SEA BLANCO */
}
#menu .dd-m a::after {
  display: none;
}

#menu .dd-m a:hover {
  background: rgba(198, 161, 91, .15);
  color: var(--brass2);
}

.dd > a::after {
  content: "▾";
  position: static !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  margin-left: 6px;
  font-size: 11px;
}

/* hero v2 */
.hero {
  background: radial-gradient(circle at 80% 20%, #1b3b6e, var(--ink));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(198, 161, 91, .05) 46px 47px);
  pointer-events: none;
}

.hero-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 50px;
  align-items: center;
}

.hero-in {
  margin: 0;
}

.hcard {
  position: relative;
  border-radius: 200px 200px 24px 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid rgba(198, 161, 91, .5);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
  transition: transform .2s;
}

.hcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 24, 48, .7), transparent 55%);
}

.hcol {
  position: relative;
}

.badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .25);
  font-size: 14px;
  line-height: 1.3;
  animation: float 5s ease-in-out infinite;
}

.badge b {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.badge .ic {
  color: var(--brass2);
  width: 30px;
  height: 30px;
}

.b1 {
  left: -34px;
  bottom: 18%;
}

.b2 {
  right: -18px;
  top: 12%;
  animation-delay: -2.5s;
}

@keyframes float {
  50% {
    transform: translateY(-12px);
  }
}

.ring {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -140px;
  top: 50%;
  margin-top: -260px;
  border: 1px dashed rgba(198, 161, 91, .35);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}

.ring::before {
  content: "";
  position: absolute;
  inset: 60px;
  border: 1px solid rgba(198, 161, 91, .2);
  border-radius: 50%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.marquee {
  overflow: hidden;
  background: var(--brass);
  color: var(--ink);
  padding: 16px 0;
  font-family: var(--serif);
  font-size: 22px;
  white-space: nowrap;
}

.marquee div {
  display: inline-flex;
  gap: 46px;
  animation: mq 28s linear infinite;
  padding-left: 46px;
}

.marquee span::after {
  content: "✦";
  margin-left: 46px;
  font-size: 14px;
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1160px;
  margin: -60px auto 0;
  position: relative;
  z-index: 5;
  padding: 0 5%;
}

.stat {
  background: #fff;
  border-radius: var(--r);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 26px 50px -28px rgba(11, 24, 48, .45);
  border-bottom: 3px solid var(--brass);
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
}

.stat span {
  color: var(--mut);
  font-size: 14px;
}

.wm {
  position: absolute;
  right: -60px;
  top: 40px;
  width: 420px;
  height: 420px;
  opacity: .05;
  stroke: currentColor;
  fill: none;
  stroke-width: .6;
  pointer-events: none;
}

.sec {
  position: relative;
  overflow: hidden;
}

.wrap {
  position: relative;
  z-index: 2;
}

.cards4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.scard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
  border-radius: var(--r);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  border: 1px solid rgba(198, 161, 91, .25);
}

.scard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .8s;
}

.scard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(11, 24, 48, .96) 20%, rgba(11, 24, 48, .35));
  transition: .4s;
}

.scard:hover img {
  transform: scale(1.12);
}

.scard:hover::before {
  background: linear-gradient(0deg, rgba(11, 24, 48, .98) 35%, rgba(198, 161, 91, .25));
}

.scard .ico {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
  color: var(--brass2);
  border: 1px solid rgba(255, 255, 255, .25);
}

.scard div.t {
  padding: 26px;
}

.scard h3 {
  font-size: 25px;
  margin-bottom: 8px;
}

.scard p {
  font-size: 14px;
  color: #cdd6e6;
  margin-bottom: 14px;
}

.scard .more-l {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--brass2);
  font-weight: 600;
  font-size: 14px;
}

.scard .more-l svg {
  width: 16px;
  height: 16px;
  transition: .3s;
}

.scard:hover .more-l svg {
  transform: translateX(6px);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}

.pic {
  position: relative;
}

.pic > img {
  width: 100%;
  border-radius: var(--r);
  aspect-ratio: 5/4;
  object-fit: cover;
  box-shadow: 0 40px 70px -35px rgba(11, 24, 48, .6);
}

.pic::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 2px solid var(--brass);
  border-radius: var(--r);
  z-index: -1;
}

.pic .badge {
  left: auto;
  right: -20px;
  bottom: -20px;
  background: var(--ink);
  color: #fff;
  border-color: var(--brass);
}

.checks {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 22px 0 30px;
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checks .ic {
  color: var(--brass);
  width: 22px;
  height: 22px;
  margin-top: 3px;
}

.band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--ink), #1c3d73);
  color: #fff;
  text-align: center;
  padding: clamp(60px, 8vw, 100px) 5%;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 120%, rgba(198, 161, 91, .35), transparent 45%), repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, .04) 46px 47px);
}

.band > * {
  position: relative;
}

.band h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  max-width: 760px;
  margin: 0 auto 14px;
}

.band p {
  max-width: 560px;
  margin: 0 auto 30px;
  color: #c3cddd;
}

.band .row {
  justify-content: center;
}

/* inner page hero */
/* inner page hero */
.phero {
  position: relative;
  min-height: 77vh; /* <--- ESTA ES LA LÍNEA QUE DEBES CAMBIAR */
  display: flex;
  align-items: flex-end;
  padding: 150px 5% 70px;
  color: #fff;
  background: var(--ink) center/cover;
  isolation: isolate;
}

.phero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(11, 24, 48, .97) 8%, rgba(11, 24, 48, .65) 60%, rgba(11, 24, 48, .8));
}

.phero .wrap {
  width: 100%;
}

.crumb {
  font-size: 14px;
  color: var(--brass2);
  margin-bottom: 16px;
}

.crumb a:hover {
  text-decoration: underline;
}

.phero h1 {
  font-size: clamp(40px, 6vw, 76px);
  margin-bottom: 16px;
}

.phero p.l {
  max-width: 640px;
  color: #cfd8e8;
  font-size: 18px;
  margin-bottom: 28px;
}

/* service cards */
.sgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.svc {
  position: relative;
  padding: 28px;
  background: #fff;
  border-radius: var(--r);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: .35s;
}

.svc::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  width: 0;
  background: var(--brass);
  transition: .4s;
}

.svc:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 50px -28px rgba(11, 24, 48, .45);
}

.svc:hover::before {
  width: 100%;
}

.svc .ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ink), var(--navy));
  color: var(--brass2);
  margin-bottom: 18px;
  transition: .4s;
}

.svc:hover .ico {
  transform: rotate(-8deg) scale(1.08);
}

.svc h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.svc p {
  color: var(--mut);
  font-size: 15px;
}

.layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.layout .form {
  position: sticky;
  top: 96px;
  border-top: 4px solid var(--brass);
}

.form h3 {
  font-size: 28px;
}

.sub {
  color: var(--mut);
  margin-bottom: 6px;
}

.others {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.others a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 20px;
  transition: .3s;
}

.others a:hover {
  background: var(--ink);
  color: var(--brass2);
  transform: translateY(-4px);
}

.others .ic {
  color: var(--brass);
}

/* steps, gallery, contact */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: s;
  margin-top: 34px;
}

.step {
  position: relative;
  padding: 30px 26px 26px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r);
  background: rgba(255, 255, 255, .05);
  counter-increment: s;
}

.step::before {
  content: "0" counter(s);
  position: absolute;
  top: -22px;
  left: 22px;
  font-family: var(--serif);
  font-size: 44px;
  color: var(--brass2);
  background: var(--navy);
  padding: 0 10px;
}

.step h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.step p {
  color: #cfd7e6;
  font-size: 15px;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.mosaic img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  border-radius: 14px;
  transition: .5s;
}

.mosaic img:hover {
  transform: scale(1.04) rotate(-1deg);
}

.cinfo {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.cinfo a,
.cinfo div.o {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  transition: .3s;
}

.cinfo a:hover {
  transform: translateX(8px);
  border-color: var(--brass);
  box-shadow: 0 16px 30px -20px rgba(11, 24, 48, .5);
}

.cinfo .ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass2);
  flex: none;
}

.cinfo small {
  display: block;
  color: var(--mut);
  font-size: 13px;
}

.offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.office {
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.office img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.office div {
  padding: 22px;
}

.office h3 {
  font-size: 24px;
  margin-bottom: 6px;
}

.groupimg {
  width: 100%;
  border-radius: var(--r);
  margin-bottom: 50px;
  max-height: 480px;
  object-fit: cover;
  box-shadow: 0 40px 70px -40px rgba(11, 24, 48, .6);
}

.m .ph {
  width: 150px;
  height: 150px;
}

.m {
  border-top: 3px solid var(--brass);
}

/* footer v2 */
.foot {
  text-align: left;
}

.fgrid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  max-width: 1160px;
  margin: 0 auto 36px;
}

.foot h4 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--brass2);
  margin-bottom: 14px;
  font-weight: 500;
}

.foot a {
  display: block;
  color: #b9c4d8;
  margin-bottom: 8px;
  transition: .2s;
}

.foot a:hover {
  color: var(--brass2);
  transform: translateX(4px);
}

.foot .fb {
  color: #8d99ae;
  font-size: 14px;
  max-width: 300px;
  margin-top: 14px;
}

.foot .soc a {
  display: inline-block;
  color: #fff;
  margin: 0;
}

.foot .cp {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 24px;
  color: #8d99ae;
  font-size: 14px;
}

.pane[hidden] {
  display: none;
}

.wa {
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(198, 161, 91, .6);
  }
  70%,
  100% {
    box-shadow: 0 0 0 18px transparent;
  }
}

@media (max-width: 900px) {
  .hero-wrap,
  .split,
  .layout,
  .offices {
    grid-template-columns: 1fr;
  }
  .hcol {
    max-width: 380px;
    margin: 0 auto;
  }
  .b1 {
    left: -10px;
  }
  .b2 {
    right: -6px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    margin-top: -40px;
  }
  .cards4 {
    grid-template-columns: 1fr 1fr;
  }
  .others,
  .steps {
    grid-template-columns: 1fr;
  }
  .mosaic {
    grid-template-columns: 1fr 1fr;
  }
  .fgrid {
    grid-template-columns: 1fr 1fr;
  }
  .layout .form {
    position: static;
  }
  #menu .dd-m {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 0 0 0 10px;
    min-width: 0;
  }
  .dd > a::after {
    display: none;
  }
  #menu .dd-m a {
    font-size: 16px;
    opacity: .8;
  }
  .ring {
    display: none;
  }
}

@media (max-width: 560px) {
  .cards4 {
    grid-template-columns: 1fr;
  }
  .fgrid {
    grid-template-columns: 1fr;
  }
}
.brand .logo-img {
  height: 100px; /* Puedes subir o bajar este número para cambiar el tamaño del logo */
  width: auto;
  object-fit: contain;
}

/* ================= CHAT IA ================= */

/* ================= CHAT IA ================= */

.chat-container{
    position:fixed;
    bottom:100px;
    right:20px;
    z-index:9999;
    font-family:Arial, Helvetica, sans-serif;
}

/* BOTÓN FLOTANTE */

.chat-toggle{
    width:65px;
    height:65px;
    background:linear-gradient(135deg,#1e88ff,#005eff);
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:28px;
    color:#fff;
    cursor:pointer;
    box-shadow:0 8px 25px rgba(0,0,0,0.25);
    transition:0.3s;
    animation:pulse 2s infinite;
}

.chat-toggle:hover{
    transform:scale(1.08);
}
.chat-footer input{
    flex:1;
    height:55px;
    border:none;
    outline:none;
    background:#f1f5f9;
    border-radius:30px;
    padding:0 20px;
    font-size:15px;
}
/* VENTANA */

.chat-box{
    width:350px;
    height:560px;
    background:#fff;
    border-radius:28px;
    overflow:hidden;
    display:none;
    flex-direction:column;
    box-shadow:0 15px 40px rgba(0,0,0,0.20);
    animation:showChat 0.3s ease;
}
.chat-body{
    flex:1;
    background:#f4f7fb;
    padding:20px;
    overflow-y:auto;
}

/* HEADER */

.chat-header{
    background:linear-gradient(135deg,#1e88ff,#005eff);
    padding:22px;
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:relative;
}
.chat-footer button{
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:linear-gradient(135deg,#1e88ff,#005eff);
    color:#fff;
    font-size:22px;
    font-weight:bold;
    cursor:pointer;
    display:flex;
    justify-content:center;
    align-items:center;
    transition:0.3s;
    padding:0;
}

.chat-footer button:hover{
    transform:scale(1.08);
    box-shadow:0 8px 20px rgba(0,94,255,0.35);
}
.chat-header::after{
    content:"";
    position:absolute;
    width:120px;
    height:120px;
    background:rgba(255,255,255,0.08);
    border-radius:50%;
    top:-40px;
    right:-40px;
}

/* INFO */

.header-info{
    display:flex;
    align-items:center;
    gap:14px;
    z-index:2;
}

/* ICONO BOT */

.header-info::before{
    content:"🎧";
    width:52px;
    height:52px;
    background:#fff;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:24px;
    color:#0066ff;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

/* TEXTO */

.header-info h3{
    font-size:22px;
    font-weight:700;
    line-height:1;
}

.header-info p{
    font-size:14px;
    margin-top:8px;
    opacity:0.9;
}

/* ESTADO */

.status{
    width:10px;
    height:10px;
    background:#00ff66;
    border-radius:50%;
    position:absolute;
    left:63px;
    top:67px;
    border:2px solid #1e88ff;
}

/* BOTÓN CERRAR */

.close-chat{
    background:rgba(255,255,255,0.12);
    border:none;
    width:45px;
    height:45px;
    border-radius:15px;
    color:#fff;
    font-size:22px;
    cursor:pointer;
    transition:0.3s;
    z-index:2;
}

.close-chat:hover{
    background:rgba(255,255,255,0.22);
    transform:scale(1.05);
}

/* BODY */

.chat-body{
    flex:1;
    background:#f4f7fb;
    padding:18px;
    overflow-y:auto;
}

/* MENSAJE BOT */

.bot-message{
    background:#fff;
    padding:18px;
    border-radius:22px 22px 22px 8px;
    max-width:250px;
    line-height:1.6;
    font-size:15px;
    color:#333;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    animation:fadeIn 0.4s ease;
}

/* FOOTER */

.chat-footer{
    background:#fff;
    padding:14px;
    display:flex;
    align-items:center;
    gap:10px;
    border-top:1px solid #e5e7eb;
}

/* INPUT */

.chat-footer input{
    flex:1;
    height:52px;
    border:none;
    outline:none;
    background:#f1f5f9;
    border-radius:30px;
    padding:0 18px;
    font-size:15px;
    transition:0.3s;
}

.chat-footer input:focus{
    background:#eaf2ff;
}

/* BOTÓN */

.chat-footer button{
    border:none;
    height:52px;
    padding:0 24px;
    border-radius:30px;
    background:linear-gradient(135deg,#1e88ff,#005eff);
    color:#fff;
    font-size:15px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.chat-footer button:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,94,255,0.35);
}

/* ANIMACIONES */

@keyframes showChat{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}