/* 
  Estilos Base - Verla (Light / Minimalista)
*/
:root {
  --brand-primary: #070081;
  --brand-secondary: #3b33bc;
  --brand-dark: #000000;
  --brand-light: #ffffff;
  
  --text-main: #111111;
  --text-muted: #5f6472;
  
  --bg-light: #f5f6fb;
  --bg-soft: #eef0fb;
  --border-color: rgba(7, 0, 129, 0.09);
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-main);
  background-color: var(--brand-light);
  overflow-x: hidden;
}

/* Utilidades tipográficas */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-primary-brand {
  color: var(--brand-primary) !important;
}

.section-kicker {
  color: var(--brand-secondary);
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* 
  Navbar Glassmorphism (Estilo iOS)
  Inicialmente bg-transparent (en HTML) y navbar-dark (letras blancas)
*/
.navbar {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.15rem 0;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 0.75rem 0;
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.08);
  border-bottom: 1px solid rgba(7, 0, 129, 0.08);
}

.navbar-brand {
  margin-right: 2rem;
}

.nav-link {
  font-weight: 600;
  opacity: 0.92;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: #cfd2ff !important;
  opacity: 1;
}

/* Ajustes de enlaces del navbar al hacer scroll (pasa a ser navbar-light via JS) */
.navbar-light .navbar-nav .nav-link {
  color: var(--text-main) !important;
  font-weight: 600;
}
.navbar-light .navbar-nav .nav-link:hover {
  color: var(--brand-secondary) !important;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-top: 1rem;
    box-shadow: 0 14px 36px rgba(17, 17, 17, 0.12);
  }
  .navbar-dark .navbar-nav .nav-link {
    color: var(--text-main) !important;
  }
}

/* Marca */
.logo-img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 150px;
}

.footer-logo {
  display: inline-block;
  height: 34px;
  width: auto;
  max-width: 132px;
}

/* Botones */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-color: transparent;
  transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, #050062, #2f27a8);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(7, 0, 129, 0.24) !important;
}

/* Hero Section (Fondo oscuro para resaltar el logo y texto blanco) */
.hero-section {
  background-color: var(--brand-dark);
  min-height: 100vh;
  padding-top: 80px; /* offset por el navbar */
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: 0;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.84), rgba(7, 0, 129, 0.46)),
    rgba(0, 0, 0, 0.52);
  z-index: 0;
}

/* Secciones Generales */
.section-padding {
  padding: 100px 0;
}

.section-institutional {
  background:
    radial-gradient(circle at top right, rgba(59, 51, 188, 0.08), transparent 30%),
    linear-gradient(180deg, var(--bg-light), #ffffff);
}

.institutional-copy {
  max-width: 620px;
  line-height: 1.85;
}

/* Tarjetas Teaser Minimalistas */
.service-card {
  background-color: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.04);
}

.service-card:hover {
  border-color: rgba(59, 51, 188, 0.18);
  transform: translateY(-8px);
  box-shadow: 0 24px 44px rgba(7, 0, 129, 0.08);
}

.service-img {
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.5s ease;
}

.service-card:hover .service-img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 2rem;
  flex-grow: 1;
  background-color: var(--brand-light);
  position: relative;
  z-index: 1;
}

.service-tag {
  background-color: rgba(59, 51, 188, 0.08);
  border-radius: 999px;
  color: var(--brand-secondary);
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding: 0.45rem 0.75rem;
  text-transform: uppercase;
}

.form-card {
  border-color: rgba(59, 51, 188, 0.08) !important;
  box-shadow: 0 30px 60px rgba(7, 0, 129, 0.06) !important;
}

/* Formulario */
.form-control,
.form-select,
textarea.form-control {
  background-color: var(--bg-light) !important;
  border: 1px solid transparent !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.25rem rgba(59, 51, 188, 0.12);
}

/* Footer Links */
.footer-link:hover {
  color: var(--brand-primary) !important;
}

.footer-contact-list li + li {
  margin-top: 1rem;
}

.footer-contact-list a:hover {
  color: var(--brand-primary) !important;
}

.privacy-page {
  background-color: var(--bg-light);
}

.privacy-hero {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(7, 0, 129, 0.8)),
    #000;
  padding: 110px 0 90px;
}

.privacy-card {
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  box-shadow: 0 22px 48px rgba(17, 17, 17, 0.05);
  padding: 2rem;
}

.privacy-card-accent {
  background:
    linear-gradient(180deg, rgba(59, 51, 188, 0.08), rgba(255, 255, 255, 0.92));
}

.privacy-copy {
  line-height: 1.85;
}

.privacy-list li {
  line-height: 1.8;
}

.privacy-icon {
  align-items: center;
  background: rgba(59, 51, 188, 0.1);
  border-radius: 999px;
  color: var(--brand-primary);
  display: inline-flex;
  font-size: 1.1rem;
  height: 52px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 52px;
}

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

.privacy-number-card {
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  min-height: 100%;
  padding: 1.4rem;
}

.privacy-number-card span {
  align-items: center;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  margin-bottom: 0.9rem;
  width: 34px;
}

.privacy-number-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .logo-img {
    height: 32px;
    max-width: 126px;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }
}

/* 
  Animaciones de Scroll (Reveal)
*/
.reveal {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translate(0, 0);
}

.fade-bottom {
  transform: translateY(40px);
}

.fade-left {
  transform: translateX(-40px);
}

.fade-right {
  transform: translateX(40px);
}
