/* =========================================================
   Global Strategy Search · estilos
   Valores sacados de la versión original (grabación de pantalla)
   ========================================================= */

:root {
  /* Fondos (de más oscuro a más claro) */
  --fondo-profundo: #060e19;   /* equipo, pie, menú */
  --fondo-blog: #050c1b;
  --fondo: #091525;            /* servicios, tarjetas */
  --fondo-contacto: #0f1e35;
  --campo: #17263b;
  --borde: #1c2a3d;
  --borde-campo: #25354c;

  /* Azules de la marca */
  --azul: #2563eb;             /* botones y sello */
  --azul-hover: #1d4fd8;
  --azul-claro: #6b95e6;       /* cursivas, antetítulos, cargos */
  --azul-meta: #4f86f0;

  /* Texto */
  --texto: #f3f5f8;
  --texto-suave: #c9d0da;
  --texto-apagado: #808c9e;
  --texto-placeholder: #5f6b7d;

  /* Tipografía */
  --f-titulo: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --f-texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Medidas */
  --ancho: 1500px;
  --margen: clamp(20px, 5vw, 48px);
  --radio: 6px;
  --alto-menu: 76px;
  --seccion: clamp(88px, 11vw, 150px);
  --curva: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 1024px) {
  :root { --alto-menu: 90px; }
}

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

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

body {
  margin: 0;
  background: var(--fondo-profundo);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }

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

.contenedor {
  width: 100%;
  max-width: calc(var(--ancho) + var(--margen) * 2);
  margin-inline: auto;
  padding-inline: var(--margen);
}

.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--azul); color: #fff; padding: 10px 16px; border-radius: var(--radio);
}
.saltar:focus { top: 12px; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 44px; padding: 0 22px;
  border-radius: var(--radio); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--curva), border-color .25s var(--curva), transform .25s var(--curva);
}
.boton--principal { background: var(--azul); color: #fff; }
.boton--principal:hover { background: var(--azul-hover); }
.boton--principal:active { transform: scale(.98); }
.boton--borde { border-color: rgba(255,255,255,.22); color: #fff; background: rgba(6,14,25,.15); }
.boton--borde:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); }
.boton--grande { min-height: 52px; padding: 0 30px; font-size: 16px; }
.boton span { transition: transform .25s var(--curva); }
.boton:hover span { transform: translateX(3px); }

/* ---------- Antetítulo y títulos de sección ---------- */
.antetitulo {
  display: flex; align-items: center; gap: 14px;
  color: var(--azul-meta);
  font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  margin-bottom: 22px;
}
.antetitulo::before {
  content: ""; width: 22px; height: 2px; background: currentColor; flex: none;
}
.antetitulo--centro { justify-content: center; }
.antetitulo--centro::before { display: none; }

.titulo-seccion {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 1.05;
  letter-spacing: -.01em;
  font-variation-settings: "opsz" 72;
}
.titulo-seccion em {
  font-style: italic; font-weight: 400; color: var(--azul-claro);
}

/* =========================================================
   MENÚ
   ========================================================= */
.menu {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--alto-menu);
  background: rgba(6, 13, 28, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.menu__fila {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.marca { display: inline-flex; align-items: center; gap: 14px; flex: none; }
.marca__sello {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 7px;
  background: var(--azul); color: #fff;
  font-family: var(--f-texto); font-size: 11px; font-weight: 800; letter-spacing: .02em;
}
.marca__nombre { font-weight: 600; font-size: 18px; letter-spacing: -.005em; }

.menu__nav { display: flex; align-items: center; gap: 34px; }
.menu__nav a:not(.boton) {
  font-size: 17px; font-weight: 500; color: var(--texto-suave);
  transition: color .2s;
}
.menu__nav a:not(.boton):hover { color: #fff; }
.menu__cta-movil { display: none; }

.menu__derecha { display: flex; align-items: center; gap: 20px; }
.idioma {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 500; color: var(--texto-apagado);
}
.menu__cta { min-height: 50px; padding: 0 24px; font-size: 16px; }

.menu__abrir {
  display: none;
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  position: relative;
}
.menu__abrir span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--curva), top .3s var(--curva);
}
.menu__abrir span:first-child { top: 17px; }
.menu__abrir span:last-child { top: 25px; }
.menu--abierto .menu__abrir span:first-child { top: 21px; transform: rotate(45deg); }
.menu--abierto .menu__abrir span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .marca__sello { width: 36px; height: 36px; font-size: 10px; }
  .marca__nombre { font-size: 16px; }
  .menu__cta { display: none; }
  .menu__abrir { display: block; }

  .menu__nav {
    position: fixed; top: var(--alto-menu); left: 0; right: 0;
    height: calc(100dvh - var(--alto-menu));
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px var(--margen) 32px;
    background: var(--fondo-profundo);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--curva), transform .3s var(--curva), visibility 0s .3s;
    overflow-y: auto;
  }
  .menu--abierto .menu__nav {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .3s var(--curva), transform .3s var(--curva);
  }
  .menu__nav a:not(.boton) {
    font-family: var(--f-serif); font-size: 30px; color: #fff;
    padding: 14px 0; border-bottom: 1px solid var(--borde);
  }
  .menu__cta-movil { display: inline-flex; margin-top: 28px; min-height: 54px; font-size: 16px; }
}

@media (max-width: 380px) {
  .marca__nombre { font-size: 15px; }
  .idioma { display: none; }
}

/* =========================================================
   VÍDEO DE FONDO · fijo detrás de toda la página.
   Avanza con el scroll hasta la mitad de la página y ahí se queda.
   ========================================================= */
.fondo-video {
  position: fixed; inset: 0; z-index: 0;
  background: #0b0705 url("../img/portada-poster.jpg") center / cover no-repeat;
  pointer-events: none;
}
.fondo-video__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 45%;
}
.fondo-video__velo {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(6,10,24,.30) 0%, rgba(6,10,24,0) 70%),
    linear-gradient(180deg, rgba(6,12,28,.70) 0%, rgba(6,10,22,.52) 45%, rgba(6,10,20,.68) 100%);
}
#contenido, .pie { position: relative; z-index: 1; }

/* =========================================================
   PORTADA
   ========================================================= */
.portada {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
}
.portada__contenido {
  position: relative;
  text-align: center;
  padding-top: calc(var(--alto-menu) + clamp(16px, 4vh, 40px));
  padding-bottom: clamp(32px, 6vh, 64px);
  display: flex; flex-direction: column; align-items: center;
}
.portada__contenido .antetitulo { font-size: clamp(11px, 1.6vh, 15px); letter-spacing: .26em; margin-bottom: clamp(10px, 1.8vh, 18px); }

/* Los tamaños dependen también del alto de la pantalla: así todo cabe aunque
   la ventana sea baja o el navegador tenga zoom */
.portada__titulo {
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: clamp(44px, min(7.4vw, 11.5vh), 122px);
  line-height: .98;
  letter-spacing: -.025em;
  max-width: 8.2em;
}
.portada__lema {
  font-family: var(--f-titulo);
  font-style: italic; font-weight: 400;
  font-size: clamp(34px, min(5.6vw, 8.6vh), 92px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--azul-claro);
  margin-top: clamp(8px, 3vh, 40px);
}
.portada__texto {
  max-width: 34em;
  margin-top: clamp(10px, 2vh, 24px);
  font-size: clamp(15px, min(1.2vw, 2.1vh), 21px);
  line-height: 1.8;
  color: #e3e7ee;
}
.portada__botones {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
  margin-top: clamp(18px, 4vh, 50px);
}
.portada__botones .boton--grande { min-height: clamp(50px, 6.5vh, 62px); padding: 0 34px; font-size: clamp(16px, 2vh, 18px); }

@media (max-width: 600px) {
  .portada__contenido .antetitulo { font-size: 11px; letter-spacing: .22em; }
  .portada__titulo { font-size: clamp(42px, 13.5vw, 62px); }
  .portada__lema { font-size: clamp(34px, 11vw, 50px); }
  .portada__texto { line-height: 1.7; }
  .portada__botones { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; gap: 12px; }
  .portada__botones .boton--grande { min-height: 54px; font-size: 16px; }
}

/* =========================================================
   SECCIONES
   ========================================================= */
.seccion { padding-block: var(--seccion); }
/* Fondos semitransparentes: el vídeo se sigue viendo detrás */
.seccion--servicios { background: rgba(9, 21, 37, .80); }
.seccion--equipo { background: rgba(6, 14, 25, .76); }
.seccion--blog { background: rgba(5, 12, 27, .80); }
.seccion--contacto { background: rgba(15, 30, 53, .84); }

.seccion h3 {
  font-family: var(--f-serif); font-weight: 500;
  font-size: clamp(23px, 1.7vw, 30px); line-height: 1.2;
  letter-spacing: -.005em;
}
.seccion p:not(.antetitulo) { color: var(--texto-apagado); font-size: 16px; line-height: 1.85; }

@media (min-width: 1024px) {
  .seccion p:not(.antetitulo) { font-size: 17px; }
}

/* ---------- Servicios: cuadrícula 2 x 2 con líneas ---------- */
.servicios {
  margin-top: clamp(48px, 6vw, 86px);
  display: grid; grid-template-columns: 1fr;
  border: 1px solid var(--borde); border-radius: var(--radio);
  overflow: hidden;
}
.servicio {
  padding: clamp(30px, 3vw, 46px) clamp(24px, 3vw, 46px) clamp(36px, 3.4vw, 52px);
  border-top: 1px solid var(--borde);
}
.servicio:first-child { border-top: 0; }
.servicio__num {
  display: block; margin-bottom: 22px;
  color: var(--azul-meta); font-size: 13px; font-weight: 700; letter-spacing: .18em;
}
.servicio h3 { margin-bottom: 20px; }
.servicio p { max-width: 36em; }

@media (min-width: 768px) {
  .servicios { grid-template-columns: 1fr 1fr; }
  .servicio:nth-child(2) { border-top: 0; }
  .servicio:nth-child(even) { border-left: 1px solid var(--borde); }
}

/* ---------- Tarjetas (equipo y blog) ---------- */
.tarjetas {
  margin-top: clamp(48px, 6vw, 86px);
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 768px) { .tarjetas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tarjetas { grid-template-columns: repeat(3, 1fr); gap: 30px; } }

.tarjeta {
  background: rgba(9, 21, 37, .88);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
}

.persona { padding: clamp(30px, 3vw, 46px) clamp(26px, 3vw, 46px) clamp(36px, 3vw, 48px); }
.persona__foto {
  display: block; width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover;
  background: radial-gradient(circle at 35% 30%, #2f5fd6 0%, #1c3d9f 55%, #142c74 100%);
  border: 2px solid rgba(79, 134, 240, .55);
  box-shadow: 0 0 22px rgba(79, 134, 240, .35);
  margin-bottom: 30px;
}
.persona__cargo {
  margin: 6px 0 18px;
  color: var(--azul-claro) !important;
  font-size: 13px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  line-height: 1.4 !important;
}

.articulo { display: flex; flex-direction: column; overflow: hidden; background: rgba(7, 18, 38, .9); }
.articulo__imagen {
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 100%) 0 0 / 14px 14px,
    linear-gradient(160deg, #0b2557 0%, #0c1f47 50%, #0a1834 100%);
  border-bottom: 1px solid var(--borde);
}
.articulo__imagen img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%;
  transition: transform .8s var(--curva);
}
.articulo:hover .articulo__imagen img { transform: scale(1.04); }
.articulo__cuerpo {
  flex: 1; display: flex; flex-direction: column;
  padding: clamp(28px, 2.4vw, 36px) clamp(24px, 2.4vw, 36px) clamp(30px, 2.6vw, 40px);
}
.articulo__meta { font-size: 14px !important; line-height: 1.4 !important; margin-bottom: 18px; }
.articulo__meta span { color: var(--azul-meta); font-weight: 600; }
.articulo h3 { margin-bottom: 18px; }
.articulo .enlace-flecha { margin-top: auto; padding-top: 24px; }

.enlace-flecha {
  display: inline-flex; align-items: center; gap: .4em; align-self: flex-start;
  min-height: 44px;
  color: var(--azul-claro); font-weight: 600; font-size: 16px;
}
.enlace-flecha span { transition: transform .25s var(--curva); }
.enlace-flecha:hover span { transform: translateX(4px); }

/* ---------- Contacto ---------- */
.contacto {
  display: grid; grid-template-columns: 1fr; gap: 56px;
}
@media (min-width: 1024px) {
  .contacto { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 7%; align-items: start; }
}

.datos { margin-top: 44px; }
.datos dt {
  color: var(--azul-meta);
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  margin-top: 22px;
}
.datos dt:first-child { margin-top: 0; }
.datos dd { margin-top: 6px; font-size: 18px; color: var(--texto); overflow-wrap: anywhere; }
.datos a { display: inline-block; padding-block: 11px; margin-block: -11px; }
.datos a:hover { color: var(--azul-claro); }

.formulario {
  display: grid; grid-template-columns: 1fr; gap: 22px 24px;
}
@media (min-width: 640px) {
  .formulario { grid-template-columns: 1fr 1fr; }
  .campo--ancho { grid-column: 1 / -1; }
}
.campo label {
  display: block; margin-bottom: 10px;
  color: var(--texto-apagado);
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.campo input, .campo textarea {
  width: 100%;
  background: var(--campo);
  border: 1px solid var(--borde-campo);
  border-radius: var(--radio);
  padding: 15px 20px;
  font-size: 17px;
  color: var(--texto);
  transition: border-color .2s, background-color .2s;
}
.campo input { min-height: 56px; }
.campo textarea { min-height: 118px; resize: vertical; }
.campo input::placeholder, .campo textarea::placeholder { color: var(--texto-placeholder); }
.campo input:focus, .campo textarea:focus {
  outline: none; border-color: var(--azul); background: #1a2b43;
}
.campo [aria-invalid="true"] { border-color: #e2655f; }

.formulario .boton { width: 100%; min-height: 62px; font-size: 18px; }
.formulario__aviso { min-height: 1.6em; font-size: 15px !important; color: var(--texto-suave) !important; }

/* ---------- Pie ---------- */
.pie {
  background: rgba(6, 14, 25, .9);
  border-top: 1px solid rgba(255,255,255,.04);
  padding: 60px 0 56px;
  text-align: center;
}
.marca--pie { margin-bottom: 20px; }
.marca--pie .marca__sello { width: 34px; height: 34px; font-size: 9px; border-radius: 6px; }
.pie p { color: var(--texto-apagado); font-size: 15px; }
.pie__legal { margin-top: 14px; font-size: 13px !important; color: #5c6779 !important; }

/* =========================================================
   APARICIÓN AL HACER SCROLL
   Solo se oculta si hay JavaScript; sin él todo se ve.
   ========================================================= */
.js [data-revelar] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--curva), transform .9s var(--curva);
}
.js [data-revelar].visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-revelar] { opacity: 1; transform: none; transition: none; }
  .boton, .boton span, .enlace-flecha span { transition: none; }
}

/* =========================================================
   RESPLANDOR EN LAS LETRAS
   ========================================================= */
h1, h2, h3, .marca__nombre, .menu__nav a, .idioma, .datos dd, .boton {
  text-shadow: 0 0 22px rgba(110, 150, 255, .38), 0 0 4px rgba(255, 255, 255, .14);
}
p, dd, dt, label, .antetitulo, .servicio__num, .enlace-flecha {
  text-shadow: 0 0 14px rgba(110, 150, 255, .26);
}
em, .portada__lema, .persona__cargo, .articulo__meta span {
  text-shadow: 0 0 20px rgba(107, 149, 230, .65), 0 0 2px rgba(107, 149, 230, .4);
}
.portada__titulo {
  text-shadow: 0 0 34px rgba(130, 165, 255, .45), 0 2px 30px rgba(0, 0, 0, .35);
}

/* Al pasar el ratón, el resplandor se intensifica */
.menu__nav a:not(.boton):hover, .enlace-flecha:hover, .datos a:hover, .marca:hover .marca__nombre {
  text-shadow: 0 0 14px rgba(140, 180, 255, .95), 0 0 30px rgba(79, 134, 240, .7);
}
.boton--principal:hover {
  box-shadow: 0 10px 30px rgba(37, 99, 235, .5), 0 0 24px rgba(79, 134, 240, .55);
}
.boton--borde:hover {
  box-shadow: 0 0 24px rgba(120, 160, 255, .35);
}
.marca__sello { box-shadow: 0 0 18px rgba(37, 99, 235, .45); }

/* =========================================================
   ELEMENTOS QUE SE MUEVEN HACIA EL RATÓN
   (botones, enlaces del menú y textos con acción)
   ========================================================= */
.magnetico {
  translate: var(--mx, 0px) var(--my, 0px);
  transition: translate .9s cubic-bezier(.22, 1, .36, 1);
}
.magnetico.siguiendo { transition: translate .6s cubic-bezier(.22, 1, .36, 1); }
/* Los enlaces del menú también cambian de color: se mantiene esa transición
   sin perder la del movimiento, para que vayan al mismo ritmo que los botones */
.menu__nav a.magnetico:not(.boton) {
  transition: color .2s, translate .9s cubic-bezier(.22, 1, .36, 1);
}
.menu__nav a.magnetico.siguiendo:not(.boton) {
  transition: color .2s, translate .6s cubic-bezier(.22, 1, .36, 1);
}
.menu__nav a:not(.boton), .enlace-flecha, .datos a { display: inline-block; }

/* =========================================================
   CURSOR PROPIO · flecha triangular que cambia de blanco a azul
   y se ilumina sobre lo que se puede pulsar
   ========================================================= */
.cursor { display: none; }

html.cursor-propio, html.cursor-propio * { cursor: none !important; }

html.cursor-propio .cursor {
  display: block;
  position: fixed; left: 0; top: 0; z-index: 9999;
  width: 18px; height: 22px;           /* medio centímetro aprox. */
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, .45)) drop-shadow(0 1px 2px rgba(0, 0, 0, .6));
  transition: opacity .25s, filter .35s var(--curva);
  will-change: transform;
}
html.cursor-propio .cursor.visible { opacity: 1; }

/* La punta de la flecha está en la esquina superior izquierda (donde apunta el ratón) */
.cursor::before {
  content: ""; position: absolute; inset: 0;
  clip-path: polygon(0 0, 100% 64%, 50% 66%, 22% 100%);
  background: #fff;
  transform-origin: 0 0;
  transition: transform .35s var(--curva);
  animation: cursor-color 2.6s ease-in-out infinite alternate;
}
html.cursor-propio .cursor--activo {
  filter: drop-shadow(0 0 4px rgba(150, 185, 255, .95)) drop-shadow(0 0 12px rgba(79, 134, 240, .85));
}
.cursor--activo::before { transform: scale(1.2); }
.cursor--pulsado::before { transform: scale(.88); }

@keyframes cursor-color {
  0%   { background: #ffffff; }
  100% { background: #4f86f0; }
}

@media (prefers-reduced-motion: reduce) {
  .magnetico { translate: none; }
  .cursor::before { animation: none; }
}
