/* =============================================================================
   PROYECTO: NexCore Solutions - Estilos Principales
   AUTOR: AslanDev
   DESCRIPCIÓN: Hoja de estilos global. Maneja la maquetación, tipografía,
   variables de color y animaciones principales del sitio.
=============================================================================
*/

/* --- VARIABLES GLOBALES & CONFIGURACIÓN --- */
:root {
  /* Paleta de colores corporativa */
  --color-primary: #ea5b0c; /* Naranja vibrante para CTAs y acentos */
  --color-secondary: #27348b; /* Azul profundo para solidez y confianza */
  --color-accent: #1ca1dc; /* Celeste para detalles secundarios */
  --color-text: #333333; /* Gris oscuro para legibilidad de texto */
  --color-white: #ffffff;

  /* Tipografía base */
  --font-main: "Montserrat", sans-serif;

  /* Transiciones estándar para UI consistente */
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto rebote */
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Manejo intuitivo del modelo de caja */
}

body {
  font-family: var(--font-main);
  overflow-x: hidden; /* Previene scroll horizontal indeseado */
  background-color: #f9f9f9;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased; /* Mejora renderizado de fuentes */
}

/* =============================================================================
   COMPONENTES UI: HEADER & NAVEGACIÓN
=============================================================================
*/
.nexcore-header {
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 5%;
}

/* --- AJUSTE MODO NORMAL (ESCRITORIO): SEPARACIÓN HEADER/TEXTO --- */
.nexcore-header.static-header {
  position: relative;
  top: 0;
  margin-bottom: 40px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* --- CAJA DEL LOGO --- */
.logo-box {
  background-color: var(--color-white);
  padding: 10px 30px;
  border-radius: 35px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  min-width: 230px;
  transition: transform 0.3s ease;
  z-index: 1001;
}

.logo-box:hover {
  transform: translateY(-2px);
}

.logo-img {
  max-height: 120px;
  width: auto;
  display: block;
  border-radius: 15px;
  object-fit: contain;
}

/* Botón Hamburguesa (Oculto en Desktop) */
.mobile-nav-toggle {
  display: none;
  background: var(--color-white);
  border: none;
  font-size: 1.8rem;
  color: var(--color-secondary);
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1002;
  transition: all 0.3s ease;
}

.nav-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Redes Sociales */
.social-row {
  display: flex;
  gap: 8px;
  margin-right: 15px;
}

.social-icon {
  width: 38px;
  height: 38px;
  background-color: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 18px;
}

.social-icon:hover {
  background-color: var(--color-secondary);
  transform: translateY(-3px);
}

/* Barra de Menú */
.menu-bar {
  background-color: var(--color-secondary);
  padding: 18px 45px;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.menu-bar ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.menu-bar a {
  text-decoration: none;
  color: var(--color-white);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition-fast);
  position: relative; /* Necesario para la línea del indicador */
}

.menu-bar a:hover {
  color: var(--color-primary);
}

/* === INDICADOR DE PESTAÑA ACTIVA (DESKTOP) === */
.menu-bar a.active-link {
  color: var(--color-primary);
}

/* Línea naranja debajo de la opción activa */
.menu-bar a.active-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Link de inicio móvil (Oculto en Desktop) */
.mobile-home-link {
  display: none;
}

/* =============================================================================
   FIX DE ESPACIO PARA HEADER (ESCRITORIO)
   Añade separación superior a las páginas internas para que el menú no tape el título
=============================================================================
*/
.about-hero,       /* Nosotros */
.services-hero,    /* Servicios */
.tech-hero,        /* Tecnología */
.news-page-header, /* Noticias (Lista) */
.recruit-hero,     /* Reclutamiento */
.article-hero {
  /* Artículo de Blog */
  padding-top: 220px !important;
}

/* El Home (Carrusel) NO lleva este padding */
.hero-carousel {
  padding-top: 0;
}

/* =============================================================================
   SECCIÓN HERO (CARRUSEL)
=============================================================================
*/
.hero-carousel {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
  padding-bottom: 120px;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
}

.slide-content {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-top: 140px;
  color: var(--color-white);
}

/* --- Animaciones de Entrada --- */
.slide-content h1,
.slide-content p,
.slide-content .btn-action {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-content h1 {
  transition-delay: 0.5s;
}
.slide-content p {
  transition-delay: 0.7s;
}
.slide-content .btn-action {
  transition-delay: 0.9s;
}

.slide.active .slide-content h1,
.slide.active .slide-content p,
.slide.active .slide-content .btn-action {
  opacity: 1;
  transform: translateY(0);
}

.slide-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.slide-content h1 span {
  color: var(--color-accent);
}

.slide-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 500;
}

.btn-action {
  display: inline-block;
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-action:hover {
  background-color: var(--color-primary);
  transform: scale(1.05);
}

.scroll-down-indicator {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-down-indicator span {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--color-white);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 6px;
  background-color: var(--color-white);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollAnimation 1.5s infinite;
}

@keyframes scrollAnimation {
  0% {
    top: 6px;
    opacity: 1;
  }
  100% {
    top: 20px;
    opacity: 0;
  }
}

/* =============================================================================
   SECCIÓN NOSOTROS
=============================================================================
*/
.section-nosotros {
  padding: 80px 5%;
  background-color: var(--color-white);
  text-align: center;
}

.container-nosotros {
  max-width: 1200px;
  margin: 0 auto;
}

.nosotros-header {
  margin-bottom: 60px;
}

.sub-title-orange {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: 10px;
}

.main-title {
  font-size: 3rem;
  color: var(--color-secondary);
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.text-orange {
  color: var(--color-primary);
  text-decoration: underline wavy var(--color-primary);
}
.text-blue {
  color: var(--color-secondary);
  text-decoration: underline wavy var(--color-secondary);
}

.tagline {
  color: #666;
  font-size: 1.2rem;
  font-weight: 500;
}

.nosotros-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.nosotros-list {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 30px;
  text-align: left;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.icon-check {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-top: 2px;
}

.value-item p {
  color: #444;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
}

.centered-item {
  grid-column: span 2;
  justify-content: center;
  background: #f4f6f8;
  padding: 15px;
  border-radius: 10px;
}

.nosotros-image {
  flex: 0.8;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.nosotros-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.nosotros-image:hover img {
  transform: scale(1.03);
}

/* =============================================================================
   SECCIÓN SERVICIOS
=============================================================================
*/
.section-servicios {
  padding: 80px 5%;
  background-color: #f4f6f8;
  text-align: center;
}

.container-servicios {
  max-width: 1300px;
  margin: 0 auto;
}

.servicios-header {
  margin-bottom: 60px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  border-radius: 20px;
  padding: 40px 30px;
  color: var(--color-white);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.card-cyan {
  background-color: var(--color-accent);
}
.card-orange {
  background-color: var(--color-primary);
}
.card-blue {
  background-color: var(--color-secondary);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.2);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-smooth);
  border: 2px solid transparent;
}

.service-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.service-card ul {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.service-card ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.service-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-weight: bold;
}

.btn-service {
  display: inline-block;
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 12px 0;
  text-align: center;
  border-radius: 30px 0 30px 0;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition-fast);
  width: 100%;
}

.btn-service:hover {
  background-color: #111;
}

.btn-outline {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

/* =============================================================================
   SECCIÓN BLOG (HOME)
=============================================================================
*/
.section-blog {
  padding: 100px 5%;
  background-color: #f9f9f9;
}

.container-blog {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-header {
  text-align: center;
  margin-bottom: 60px;
}

.blog-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.blog-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-secondary);
  margin: 0;
  line-height: 1.1;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
}

.blog-card {
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--color-accent);
}

.blog-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.blog-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image-wrapper img {
  transform: scale(1.1);
}

.blog-category {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 15px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 30px;
  color: var(--color-white);
  text-transform: uppercase;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.cat-blue {
  background-color: var(--color-secondary);
}
.cat-orange {
  background-color: var(--color-primary);
}
.cat-cyan {
  background-color: var(--color-accent);
}

.blog-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #888;
  font-weight: 500;
}

.blog-meta i {
  color: var(--color-primary);
  margin-right: 8px;
}

.blog-content h3 {
  margin-bottom: 15px;
  line-height: 1.4;
}

.blog-content h3 a {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.blog-content h3 a:hover {
  color: var(--color-primary);
}

.blog-content p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.blog-footer-card {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.read-more-btn {
  color: var(--color-secondary);
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.read-more-btn i {
  font-size: 0.9rem;
  transition: transform 0.3s;
}

.read-more-btn:hover {
  color: var(--color-primary);
  gap: 15px;
}

.read-more-btn:hover i {
  transform: translateX(5px);
}

/* =============================================================================
   FOOTER PRINCIPAL
=============================================================================
*/
.main-footer {
  position: relative;
  padding-top: 60px;
}

.footer-newsletter {
  position: relative;
  width: 100%;
  z-index: 10;
  margin-bottom: -60px;
}

.newsletter-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--color-white);
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  display: flex;
  justify-content: center;
}

.newsletter-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 40px;
}

.newsletter-text h3 {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.newsletter-text p {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1rem;
}

.newsletter-form {
  flex: 1;
  max-width: 500px;
}

.newsletter-form form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.95rem;
}

.newsletter-form button {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-form button:hover {
  background-color: #c44d0a;
}

.footer-body {
  background-color: var(--color-secondary);
  padding-top: 100px;
  padding-bottom: 50px;
  color: var(--color-white);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-logo-box {
  background-color: var(--color-white);
  padding: 10px 20px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 20px;
  width: fit-content;
}

.footer-logo {
  height: 45px;
  width: auto;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e0e0e0;
}

.contact-list li i {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-top: 2px;
  width: 20px;
  text-align: center;
}

.contact-list a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s;
}
.contact-list a:hover {
  color: var(--color-primary);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-line {
  width: 40px;
  height: 3px;
  background-color: var(--color-primary);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: padding-left 0.3s, color 0.3s;
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.schedule-info {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  color: #e0e0e0;
  font-size: 0.9rem;
}

.schedule-info i {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-top: 2px;
}

.btn-footer {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  transition: background 0.3s;
}

.btn-footer:hover {
  background-color: #c44d0a;
}

.footer-bottom {
  background-color: var(--color-secondary);
  padding: 20px 0;
  text-align: center;
}

.copyright-line {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.footer-bottom p {
  color: #aaa;
  font-size: 0.85rem;
}

/* =============================================================================
   PANELES FLOTANTES
=============================================================================
*/
.floating-news-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(234, 91, 12, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
  cursor: pointer;
}

.floating-news-btn:hover {
  background-color: var(--color-secondary);
  transform: scale(1.1) rotate(90deg);
}

.news-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.news-panel-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.news-panel-content {
  background-color: var(--color-secondary);
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(50px);
  transition: transform 0.3s ease;
}

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

.close-panel-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s;
}

.close-panel-btn:hover {
  background-color: #c44d0a;
}

.news-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}
.news-text {
  padding: 25px;
  color: var(--color-white);
  text-align: center;
}

.news-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: gap 0.3s;
}

.read-more-link:hover {
  gap: 15px;
}

/* =============================================================================
   ANIMACIONES GENERALES (Scroll Reveal)
   Descripción: Clases de utilidad para revelar elementos al hacer scroll.
   Controlado por: assets/js/main.js
=============================================================================
*/
.reveal {
  opacity: 0;
  transform: translateY(50px);
  /* Transición suave para evitar movimientos bruscos */
  transition: all 0.8s ease-out;
}

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

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    39,
    52,
    139,
    0.6
  ); /* Azul corporativo con transparencia */
  backdrop-filter: blur(4px); /* Efecto borroso moderno */
  z-index: 10000; /* Por encima de todo */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Estado inicial: Oculto */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-content {
  background-color: var(--color-white);
  padding: 40px;
  border-radius: 30px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

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

.modal-icon-box {
  width: 80px;
  height: 80px;
  background-color: rgba(234, 91, 12, 0.1); /* Naranja suave */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
}

.modal-icon-box i {
  font-size: 40px;
  color: var(--color-primary); /* Naranja fuerte */
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-secondary); /* Azul fuerte */
  margin-bottom: 10px;
}

.modal-message {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 30px;
}

.modal-btn-close {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border: none;
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 5px 15px rgba(39, 52, 139, 0.2);
}

.modal-btn-close:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
}

/* =============================================================================
   VISTA MÓVIL PERSONALIZADA (Sobrescribe estilos para móviles)
=============================================================================
*/
@media (max-width: 992px) {
  /* 1. Header: Alineación a la derecha y ocultar logo */
  .header-container {
    flex-direction: row; /* Forzamos fila para alinear botón a la derecha */
    justify-content: flex-end;
    align-items: center;
    padding: 10px 0;
  }

  /* 2. Ocultar Logo y Scroll Indicator */
  .logo-box,
  .scroll-down-indicator {
    display: none !important;
  }

  /* 3. Botón Hamburguesa */
  .mobile-nav-toggle {
    display: block; /* Hacemos visible el botón */
    margin-left: auto; /* Empujamos a la derecha si es necesario */
  }

  /* 4. Menú Desplegable (Transformación del nav-wrapper) */
  .nav-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    padding: 0;
    margin-top: 15px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    align-items: center;
    overflow: hidden;
    max-height: 0; /* Oculto por defecto */
    transition: max-height 0.5s ease, padding 0.5s ease;
    z-index: 999;
  }

  /* Estado abierto del menú */
  .nav-wrapper.active {
    max-height: 500px;
    padding: 30px 20px;
  }

  /* 5. Ajustes de la lista del menú */
  .menu-bar {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    width: 100%;
    order: 1; /* Menú arriba de redes sociales */
  }

  .menu-bar ul {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .menu-bar a {
    color: var(--color-text);
    display: block;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .menu-bar a:hover {
    color: var(--color-primary);
  }

  /* === INDICADOR DE PESTAÑA ACTIVA (MOBILE) === */
  .menu-bar a.active-link {
    color: var(--color-primary);
    font-weight: 700;
    background-color: #fff0e6; /* Fondo naranja muy suave */
    border-bottom: 1px solid var(--color-primary); /* Resaltar borde inferior */
  }

  /* Quitar línea decorativa de desktop en móvil si existe */
  .menu-bar a.active-link::after {
    display: none;
  }

  /* Mostrar enlace de Inicio */
  .mobile-home-link {
    display: block;
  }

  /* 6. Redes Sociales en el menú móvil */
  .social-row {
    margin-top: 20px;
    margin-right: 0;
    justify-content: center;
    order: 2;
  }

  /* Desactivar padding extra en móvil para las páginas internas si el header es relativo */
  .about-hero,
  .services-hero,
  .tech-hero,
  .news-page-header,
  .recruit-hero,
  .article-hero {
    padding-top: 80px !important;
  }
}

@media (max-width: 768px) {
  /* 1. Ajuste del Newsletter Flotante */
  .newsletter-container {
    padding: 30px 20px;
    margin-bottom: 30px; /* Espacio extra abajo */
  }

  .newsletter-content {
    flex-direction: column; /* Apilar texto y formulario */
    text-align: center;
    gap: 25px;
  }

  .newsletter-form form {
    flex-direction: column; /* Input arriba, botón abajo */
    width: 100%;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%; /* Ocupar todo el ancho */
  }

  /* 2. Cuerpo del Footer */
  .footer-body {
    padding-top: 120px; /* Ajuste para compensar el newsletter apilado */
    padding-bottom: 40px;
    text-align: center; /* Centrar todo el contenido */
  }

  .footer-container {
    grid-template-columns: 1fr; /* Una sola columna */
    gap: 50px; /* Separación entre secciones */
  }

  /* 3. Centrar elementos específicos */
  .footer-logo-box {
    margin: 0 auto 20px auto; /* Centrar caja del logo */
    display: flex; /* Asegura que flexbox lo centre */
  }

  .footer-line {
    margin: 0 auto 20px auto; /* Centrar la línea decorativa naranja */
  }

  /* Centrar iconos y texto de contacto */
  .contact-list li {
    justify-content: center;
    text-align: center;
  }

  /* Centrar enlaces (hover effect adjustment) */
  .footer-links a:hover {
    padding-left: 0; /* Quitar efecto de desplazamiento lateral en móvil */
    color: var(--color-primary);
    transform: scale(1.05); /* Cambiar por un pequeño zoom */
  }

  /* Centrar horarios */
  .schedule-info {
    justify-content: center;
  }
}
