/* Desperctive – landing de stands */
:root {
  --negro: #030919;
  --noche: #030919;          /* azul casi negro (fondo de la galería) */
  --pie: #070707;
  --azul: #0266f6;           /* azul del logo */
  --azul-claro: #3d8bff;
  --azul-oscuro: #04174a;    /* inicio del degradado */
  --degradado: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul) 100%);
  --degradado-hover: linear-gradient(135deg, #062a7a 0%, var(--azul-claro) 100%);
  --blanco: #fff;
  --gris: #a9b0bd;
  --linea: rgba(255, 255, 255, .1);
  --ancho: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --titulos: 'Lexend', system-ui, sans-serif;
  --texto: 'Space Grotesk', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--negro); color: var(--gris); font: 400 16px/1.7 var(--texto); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--blanco); font-family: var(--titulos); line-height: 1.1; }
p { margin: 0 0 1em; }
.contenedor { width: min(var(--ancho), 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--azul-claro); outline-offset: 3px; }

/* ============ Menú (arriba a la derecha) ============ */
.menu {
  position: fixed; top: 18px; right: 22px; z-index: 50;
  display: flex; align-items: center; gap: 4px;
  padding: 6px; border-radius: 999px;
  background: rgba(3, 9, 25, .35); backdrop-filter: blur(10px); border: 1px solid var(--linea);
  transition: background .3s;
}
.menu.oscuro { background: rgba(3, 9, 25, .78); }
.menu a { padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--blanco); font: 500 14px/1 var(--titulos); transition: background .25s, color .25s; }
.menu a:hover { background: rgba(255, 255, 255, .1); }
.menu .menu__wa { background: var(--degradado); }
.menu .menu__wa:hover { background: var(--degradado-hover); }
@media (max-width: 480px) {
  .menu { top: 12px; right: 50%; transform: translateX(50%); }
  .menu a { padding: 8px 12px; font-size: 13px; }
}

/* ============ Banner ============ */
.banner {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 110px 0 120px; text-align: center;
  background: var(--negro);
}
.banner__ondas { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.onda {
  position: absolute; width: 760px; aspect-ratio: 810 / 888;
  background: url("../imagenes/fondo-banner.webp") center / contain no-repeat;
  opacity: .35;
  animation: girar 60s linear infinite;
}
.onda--1 { left: -260px; top: -120px; }
.onda--2 { right: -300px; top: -60px; width: 820px; animation-direction: reverse; animation-duration: 75s; }
.onda--3 { left: 38%; top: 260px; width: 520px; opacity: .18; animation-duration: 90s; }
@keyframes girar { to { transform: rotate(360deg); } }

.banner__logo {
  width: 300px; margin: 0 auto 12px;
  mix-blend-mode: lighten; /* el negro del JPG se funde con el fondo #030919 */
  animation: aparecer 1s var(--ease) both;
}
.banner__marca { color: var(--blanco); font: 600 15px/1.4 var(--titulos); text-transform: uppercase; letter-spacing: 4px; margin-bottom: 18px; animation: aparecer 1s var(--ease) .15s both; }
.banner__titulo { font-size: clamp(34px, 6vw, 72px); font-weight: 500; letter-spacing: -.02em; line-height: 1.12; margin-bottom: 38px; }
.banner__titulo .linea { display: block; animation: subir 1s var(--ease) both; animation-delay: calc(.3s + var(--i) * .15s); }
.banner__botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; animation: aparecer 1s var(--ease) .7s both; }
@media (max-width: 600px) {
  .banner { padding: 90px 0 80px; }
  .banner__logo { width: 250px; }
  .onda { width: 520px; }
  .onda--2 { width: 560px; }
}

/* ============ Botones ============ */
.boton {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; text-decoration: none;
  font: 600 13px/1 var(--titulos); letter-spacing: .14em; text-transform: uppercase;
  transition: background .25s, color .25s, transform .25s;
}
.boton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.boton svg.relleno { fill: currentColor; stroke: none; }
.boton:hover { transform: translateY(-2px); }
.boton--blanco { background: var(--blanco); color: var(--negro); }
.boton--blanco:hover { background: #e8ecf3; }
.boton--azul { background: var(--degradado); color: var(--blanco); }
.boton--azul:hover { background: var(--degradado-hover); }

/* ============ Galería (filas horizontales + visor) ============ */
/* Fondo: negro arriba y azul noche abajo, como la referencia */
.galeria-seccion { background: linear-gradient(180deg, var(--negro) 0 30%, var(--noche) 30% 100%); padding: 0 0 100px; }
.galeria { display: flex; flex-wrap: wrap; gap: 18px; }
/* Cada foto crece según su proporción (--r = ancho/alto): filas parejas y horizontales */
.galeria__item {
  position: relative; display: block; overflow: hidden;
  flex: var(--r) 1 calc(var(--r) * 250px);
  aspect-ratio: var(--r);
  background: #111;
}
.galeria::after { content: ""; flex: 10 1 0; } /* la última fila no se estira de más */
.galeria__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.galeria__item::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(2, 102, 246, .25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 44px no-repeat;
  opacity: 0; transition: opacity .35s;
}
.galeria__item:hover img { transform: scale(1.06); }
.galeria__item:hover::after, .galeria__item:focus-visible::after { opacity: 1; }
@media (max-width: 600px) {
  .galeria { gap: 10px; }
  .galeria__item { flex-basis: calc(var(--r) * 150px); }
}

/* Visor (popup) */
.visor {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(3, 9, 25, .94); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.visor.abierto { opacity: 1; visibility: visible; }
.visor__img { max-width: 92vw; max-height: 86vh; object-fit: contain; transform: scale(.96); transition: transform .4s var(--ease), opacity .25s; }
.visor.abierto .visor__img { transform: none; }
.visor.cargando .visor__img { opacity: .3; }
.visor button {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--linea); color: #fff; cursor: pointer;
  font: 300 30px/1 var(--titulos); transition: background .25s;
}
.visor button:hover { background: var(--degradado); }
.visor__cerrar { top: 18px; right: 18px; }
.visor__ant { left: 18px; top: 50%; transform: translateY(-50%); }
.visor__sig { right: 18px; top: 50%; transform: translateY(-50%); }
.visor__contador { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--gris); font: 500 13px var(--titulos); letter-spacing: .1em; }
body.sin-scroll { overflow: hidden; }

/* ============ Servicios ============ */
.servicios-seccion { background: var(--negro); padding: 110px 0; border-top: 1px solid var(--linea); }
.intro { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.intro h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 500; letter-spacing: -.02em; margin-bottom: 20px; }
.intro p { font-size: 17px; }
.servicios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .servicios { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.servicio {
  position: relative; padding: 36px 30px; overflow: hidden;
  background: linear-gradient(180deg, #0b0f19, #05070c); border: 1px solid var(--linea);
  transition: border-color .35s, transform .35s var(--ease);
}
.servicio::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--azul), transparent);
  transform: scaleX(0); transition: transform .5s var(--ease);
}
.servicio:hover { border-color: rgba(2, 102, 246, .5); }
.servicio:hover::before { transform: scaleX(1); }
.servicio__icono {
  display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 24px;
  border-radius: 18px;color: var(--blanco);
  box-shadow: 0 10px 26px rgba(2, 102, 246, .22);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.servicio:hover .servicio__icono { transform: translateY(-3px) rotate(-4deg); box-shadow: 0 14px 32px rgba(2, 102, 246, .35); }
.servicio__icono svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.servicio h3 { font-size: 21px; font-weight: 500; margin-bottom: 12px; }
.servicio p { margin: 0; font-size: 15px; }

/* ============ Pie ============ */
.pie {
  position: relative; overflow: hidden; isolation: isolate; padding: 100px 0 50px;
  background: var(--negro); /* mismo fondo que el banner */
  color: var(--gris);
}
.pie__redes { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 70px; }
.pie__redes a { color: var(--blanco); text-decoration: none; font: 500 18px/1.4 var(--texto); position: relative; }
.pie__redes a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.pie__redes a:hover::after { transform: scaleX(1); }
.pie__frase { color: var(--blanco); font: 500 clamp(26px, 3.6vw, 44px)/1.25 var(--texto); letter-spacing: -.01em; margin-bottom: 60px; }
.pie__frase a { color: #d7dbe3; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; transition: color .25s; word-break: break-word; }
.pie__frase a:hover { color: var(--azul-claro); }
.pie__datos { margin-bottom: 60px; }
.pie__titulo { color: var(--blanco); font: 600 14px var(--titulos); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.pie__datos ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pie__datos a { color: var(--blanco); text-decoration: none; }
.pie__datos a:hover { color: var(--azul-claro); }
.pie__derechos { margin: 0; font-size: 13px; color: #7d8594; }

/* ============ Animaciones ============ */
@keyframes aparecer { from { opacity: 0; transform: translateY(16px); } }
@keyframes subir { from { opacity: 0; transform: translateY(60%); clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -20% 0); } }
.js [data-animar] { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .9s var(--ease); transition-delay: var(--retardo, 0s); }
.js [data-animar].visible { opacity: 1; transform: none; }
.js .servicio[data-animar].visible:hover { transform: translateY(-4px); transition-delay: 0s; }
/* Galería: cada foto aparece con un leve zoom */
.js .galeria__item { opacity: 0; transform: scale(.94); transition: opacity .8s ease, transform .9s var(--ease); transition-delay: var(--retardo, 0s); }
.js .galeria__item.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-animar], .js .galeria__item { opacity: 1; transform: none; }
}
