/* ============================================
   CONSORTIA CONSULTING - GLOW VIBRANTE
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #2C3E50;
  line-height: 1.6;
  background: white;
}

/* ============================================
   NAVBAR (MODO OSCURO - COLOR AJUSTADO)
   ============================================ */
.navbar {
  background: #062532; /* CAMBIO: Tu color especÃ­fico para fundirse con el logo */
  box-shadow: 0 1px 10px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */
.navbar-logo {
  display: block;
  text-decoration: none;
  line-height: 0;
}

.navbar-logo img {
  height: 90px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
  object-fit: contain;
}

.navbar-logo img:hover {
  transform: scale(1.05);
}

/* MENÃš */
.navbar-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

/* Enlaces en blanco para contrastar con el fondo oscuro */
.navbar-menu a {
  text-decoration: none;
  color: #FFFFFF; 
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
  padding: 0.5rem 0;
}

.navbar-menu a:hover {
  color: #FF6B35; /* Naranja al pasar el mouse */
}

.navbar-menu a.active {
  color: #FF6B35;
  border-bottom: 2px solid #FF6B35;
}

/* BotÃ³n Contacto */
.btn-contact {
  background: #FF6B35 !important;
  color: white !important;
  padding: 0.7rem 1.5rem !important;
  border-radius: 6px;
  border-bottom: none !important;
  font-weight: 700 !important;
}

.btn-contact:hover {
  background: #E85D2A !important;
  transform: translateY(-2px);
}

/* Botón Hamburguesa */
.navbar-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 5px;
}

.navbar-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  transition: all 0.3s;
  border-radius: 3px;
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  width: 100%;
  height: 65vh;
  min-height: 500px;
  overflow: hidden;
  position: relative;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ============================================
   CONTENEDOR BLANCO
   ============================================ */
.white-container {
  background: white;
  margin-top: -20vh;
  position: relative;
  z-index: 100;
  border-radius: 24px 24px 0 0;
  padding: 4rem 0 5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.main-title {
  text-align: center;
  font-size: 2.5rem;
  color: #2C3E50;
  font-weight: 700;
  margin-bottom: 2rem;
}

/* ============================================
   TABS
   ============================================ */
.tabs {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 3rem;
}

.tab {
  padding: 1rem 2rem;
  font-weight: 600;
  color: #6C757D;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: all 0.3s;
}

.tab.active {
  color: #2C3E50;
  border-bottom-color: #003049;
}

/* ============================================
   TARJETAS
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 
    0 0 25px rgba(255, 107, 53, 0.8),
    0 0 50px rgba(0, 48, 73, 0.7),
    0 0 75px rgba(10, 147, 150, 0.6),
    0 20px 50px rgba(0,0,0,0.2);
}

.card-img {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: white;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

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

.card-body {
  padding: 1.5rem;
  text-align: center;
  background: white;
}

.card-body h3 {
  font-size: 1.3rem;
  color: #2C3E50;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.card-body p {
  color: #6C757D;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-body a {
  color: #003049;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.3s;
}

.card-body a:hover {
  color: #FF6B35;
}

/* ============================================
   SECCIÃ“N DE CONTENIDO
   ============================================ */
.content-section {
  background: #F8F9FA;
  padding: 5rem 0;
}

.content-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #2C3E50;
  font-weight: 700;
  margin-bottom: 1rem;
}

.subtitle {
  text-align: center;
  color: #6C757D;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.content-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.content-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 0 20px rgba(255, 107, 53, 0.7),
    0 0 40px rgba(0, 48, 73, 0.6),
    0 0 60px rgba(10, 147, 150, 0.5),
    0 15px 40px rgba(0,0,0,0.15);
}

.content-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: white;
}

.content-card h3 {
  padding: 1.5rem 1.5rem 1rem;
  color: #2C3E50;
  font-size: 1.2rem;
  font-weight: 600;
  background: white;
}

.content-card a {
  padding: 0 1.5rem 1.5rem;
  display: inline-block;
  color: #003049;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
  background: white;
}

.content-card a:hover {
  color: #FF6B35;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #F8F9FA;
  border-top: 1px solid #E5E7EB;
  padding: 2.5rem 0 1.5rem;
}

.footer-logo {
  display: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-bottom: 2rem;
}

.footer-links a {
  color: #6C757D;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #003049;
}

.footer-bottom {
  border-top: 1px solid #E5E7EB;
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  color: #6C757D;
  font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .navbar-toggle {
    display: flex;
  }
  
  .navbar-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #062532;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  
  .navbar-menu.active {
    transform: translateX(0);
  }
  
  .navbar-menu li {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }
  
  .navbar-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
  }
  
  .btn-contact {
    margin: 0.5rem 1.5rem !important;
  }
  
  .navbar-logo img {
    height: 70px;
  }
  
  .hero {
    height: 50vh;
  }
  
  .white-container {
    margin-top: -15vh;
    padding: 3rem 0 4rem;
  }
  
  .main-title {
    font-size: 2rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    gap: 1rem 1.5rem;
  }
}
/* ============================================
   ESTILOS DEL MODAL (POPUP)
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 37, 50, 0.85); /* Azul oscuro semitransparente */
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 600px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  overflow: hidden;
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  background: #062532; /* Azul Navbar */
  padding: 2rem 2rem 1.5rem;
  color: white;
  text-align: center;
}

.modal-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: white;
}

.modal-header p {
  color: #FF6B35; /* Naranja */
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.modal-close:hover {
  opacity: 1;
  color: #FF6B35;
}

.modal-body {
  padding: 2rem;
  color: #2C3E50;
  font-size: 1.05rem;
  line-height: 1.7;
}

.modal-body ul {
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
}

.modal-footer {
  padding: 1.5rem 2rem;
  background: #F8F9FA;
  border-top: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.btn-modal-action {
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  border: none;
  transition: all 0.3s;
  font-size: 0.95rem;
  flex: 1;
}

.modal-close-btn {
  background: white;
  color: #6C757D;
  border: 1px solid #DEE2E6;
}

.modal-close-btn:hover {
  background: #E9ECEF;
  color: #2C3E50;
}