/* ---------------------------
   VARIABLES GLOBALES
----------------------------*/
:root {
  --brand: #080e2f;
  --dodger-blue: #0D97FF;
  --accent-red: #fb0506;
  --white: #fcfcfd;
  --text-dark: #1a1a1a;
  --text-gray: #555;
  --bg-light: #f7f8fa;

  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 80px;
}

/* ---------------------------
   RESET Y BASE
----------------------------*/
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0;
}

html { 
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--white);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { 
  color: inherit; 
  text-decoration: none; 
  transition: color var(--transition);
}

a:hover { 
  color: var(--dodger-blue);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------------------------
   HEADER FIJO
----------------------------*/
.main-header {
  background: var(--brand);
  color: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.main-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  background: rgba(8, 14, 47, 0.98);
}

.header-container {
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
}

.logo img {
  height: 55px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-menu {
  margin: 0;       
  max-width: 100%; 
  padding: 0 1.5rem;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-menu a {
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dodger-blue);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--dodger-blue);
}

/* ===== MENÚ MÓVIL ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  transition: var(--transition);
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: var(--header-height);
    right: 0;
    width: 100%;
    background: var(--brand);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .nav-menu.open { 
    max-height: 300px;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }
  
  .menu-toggle { 
    display: flex;
  }
}

/* ---------------------------
   BOTONES REUTILIZABLES
----------------------------*/
.container-btn {
  margin: 2rem 0;
  position: relative;
  text-align: center;
}

.btn {
  display: inline-block;
  background-color: var(--dodger-blue);
  color: #ffffff;
  padding: 15px 42px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(14, 151, 255, 0.4);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  background-color: #ffffff;
  color: var(--brand);
  border: 2px solid var(--brand);
  box-shadow: 0 8px 25px rgba(14, 151, 255, 0.6);
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(14, 151, 255, 0.4);
}

/* ===== RESPONSIVE BOTÓN ===== */
@media (max-width: 768px) {
  .btn {
    padding: 12px 32px;
    font-size: 1rem;
  }
}

/* ===========================
   SECCIONES CON CARDS
=========================== */
.section {
  padding: 4rem 1.5rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.section .section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--brand);
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--dodger-blue), var(--accent-red));
  border-radius: 2px;
}

.section-header .lead {
  color: var(--text-gray);
  max-width: 860px;
  margin: 1.5rem auto 0;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ===== GRID DE CARDS ===== */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
  margin-top: 2rem;
}

.section-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(13, 151, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.section-card:hover::before {
  left: 100%;
}

.section-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(13, 151, 255, 0.2);
  border-color: var(--dodger-blue);
}

/* ===== ICONO ===== */
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--bg-light), #e0e7ff);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.section-card:hover .section-icon {
  transform: rotateY(360deg) scale(1.1);
  background: linear-gradient(135deg, var(--dodger-blue), #0b85e0);
}

.section-icon img {
  width: 45px;
  height: 45px;  
  filter: invert(9%) sepia(18%) saturate(4728%) hue-rotate(208deg) brightness(86%) contrast(105%);
  transition: filter 0.3s ease;
}

.section-card:hover .section-icon img {
  filter: brightness(0) invert(1);
}

/* ===== TEXTOS ===== */
.section-title {
  font-size: 1.3rem;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.4;
}

.section-desc {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== RESPONSIVE GRID ===== */
@media (max-width: 1100px) {
  .section-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3rem 1rem;
  }
  
  .section-grid { 
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-card {
    padding: 2rem 1.5rem;
  }
}

/* ===========================
   MENSAJE DESTACADO
=========================== */
.highlight-message {
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--brand), #0a1452);
  border-radius: 18px;
  font-size: 1.15rem;
  text-align: center;
  color: var(--white);
  max-width: 1200px;
  margin: 3rem auto 0;
  box-shadow: 0 15px 40px rgba(26, 33, 77, 0.4);
  position: relative;
  overflow: hidden;
}

.highlight-message p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-weight: 500;
  line-height: 1.6;
}

/* ===========================
   UTILIDADES
=========================== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }