/* =======================================================
   IDENTIDAD CORPORATIVA: AGENCIA SDIP (Investigación Privada)
   ACTUALIZACIÓN DE PALETA (NUEVO LOGO)
   ======================================================= */

:root {
  --azul-marino: #132c4a; /* Nuevo Azul Marino del logo */
  --gris-claro: #f3f4f6;
  --texto-oscuro: #132c4a; /* Texto oscuro alineado al nuevo azul */
  --texto-claro: #ffffff;
  --acento-plateado: #929ba4; /* Nuevo Gris/Plateado (sustituye al dorado) */
  --fuente-titulos: "Montserrat", sans-serif;
  --fuente-texto: "Roboto", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fondo general en gris claro, texto en oscuro */
body {
  background-color: var(--gris-claro);
  color: var(--texto-oscuro);
  font-family: var(--fuente-texto);
  font-weight: 300;
  line-height: 1.6;
}

/* Tipografía para Títulos */
h1, h2, h3 {
  font-family: var(--fuente-titulos);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 15px;
  color: var(--azul-marino);
}

h1 {
  font-size: 3.5rem;
  color: var(--texto-claro);
}

/* Estilos base para botones globales */
.btn-primary {
  background-color: transparent;
  border: 2px solid var(--acento-plateado);
  color: var(--acento-plateado);
  padding: 12px 30px;
  font-family: var(--fuente-titulos);
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 2px;
}

.btn-primary:hover {
  background-color: var(--acento-plateado);
  color: var(--azul-marino);
}

/* Navegación */
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 20px 50px;
  background-color: rgba(19, 44, 74, 0.95); /* Nuevo azul marino transparente */
  position: fixed;
  width: 100%;
  transition: 0.3s;
  z-index: 100;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
  font-family: var(--fuente-titulos);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--acento-plateado);
}

.navbar a {
  color: var(--texto-claro);
  text-decoration: none;
  margin-left: 20px;
  font-family: var(--fuente-titulos);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.navbar a:hover {
  color: var(--acento-plateado);
}

/* Sección Principal (Hero) */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(rgba(19, 44, 74, 0.7), rgba(19, 44, 74, 0.9)),
    url("../img/fondo-investigacion.jpg") center/cover;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--gris-claro);
}

/* =========================================
   SECCIÓN DE TESTIMONIOS - SDIP PRIVADA
   ========================================= */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    background: linear-gradient(145deg, #132c4a 0%, #0a182b 100%);
}

.testimonial-card:hover {
    transform: translateY(-12px);
    border-color: #929ba4;
    box-shadow: 0 20px 40px -10px rgba(146, 155, 164, 0.25);
    background: linear-gradient(145deg, #1d436e 0%, #132c4a 100%);
}

.testimonial-icon-wrapper {
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-icon-wrapper {
    background-color: #929ba4;
    transform: scale(1.1);
}

.testimonial-card:hover .testimonial-icon-wrapper i {
    color: #132c4a;
}

/* =========================================
   BOTÓN DEL BANNER CTA - SDIP PRIVADA
   ========================================= */
.btn-cta-banner {
    background-color: #ffffff;
    color: #132c4a !important; 
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-cta-banner:hover {
    background-color: transparent;
    color: #ffffff !important;
    border-color: #929ba4; 
    box-shadow: 0 0 20px rgba(146, 155, 164, 0.4);
}

/* Bloquear el scroll mientras carga Preloader */
body.loading {
  overflow: hidden;
}

#preloaderCSI {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0a182b; /* Fondo acorde al nuevo azul oscuro */
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-content-csi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo-text {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 4px;
  animation: pulse-logo 1.5s infinite;
}

.loader-logo-text span {
  color: #929ba4; 
}

.loader-spinner-csi {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(146, 155, 164, 0.1); 
  border-top: 3px solid #929ba4; 
  border-radius: 50%;
  animation: spin-csi 1s linear infinite;
}

@keyframes spin-csi {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-logo {
  0% {
    transform: scale(1);
    opacity: 0.8;
    text-shadow: 0 0 0 rgba(146, 155, 164, 0);
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
    text-shadow: 0 0 15px rgba(146, 155, 164, 0.4);
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
    text-shadow: 0 0 0 rgba(146, 155, 164, 0);
  }
}

.preloader-hidden {
  opacity: 0;
  visibility: hidden;
}

/* =========================================
   BOTÓN LÍNEA DIRECTA DE EMERGENCIA - SDIP PRIVADA
   ========================================= */
.btn-emergency-tactical {
  background: linear-gradient(135deg, #132c4a 0%, #1d436e 100%);
  color: #ffffff !important; /* TEXTO BLANCO PURO PARA MAXIMO CONTRASTE */
  padding: 10px 20px !important;
  border-radius: 6px;
  font-weight: 600 !important; /* LETRA MÁS GRUESA */
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(19, 44, 74, 0.3);
  transition: all 0.3s ease-in-out !important;
  border: 2px solid #132c4a; /* BORDE AZUL PARA FUNDIRSE CON EL FONDO */
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}

.btn-emergency-tactical:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(19, 44, 74, 0.5);
  background: linear-gradient(135deg, #1d436e 0%, #132c4a 100%);
  color: #ffffff !important;
  border-color: #1d436e;
}

.btn-emergency-tactical i {
  font-size: 0.95rem;
  color: #ffffff; /* ICONO BLANCO */
  animation: phone-pulse 2s infinite;
}

.btn-emergency-tactical:hover i {
  color: #25d366; /* Se pone verde WhatsApp al pasar el mouse */
}

@keyframes phone-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .btn-emergency-tactical {
    margin-top: 15px;
    justify-content: center;
    width: 100%;
  }

  .md\:h-14 {
    height: 3.6rem !important; 
  }
}

@media (min-width: 768px) {
  .md\:h-14 {
    height: 3.7rem !important; 
  }
}

.text-2xl {
  font-size: 1.4rem !important; 
}