/* ========================================= */
/* 1. RESETS & VARIABLES GLOBALES */
/* ========================================= */
:root {
  /* Paleta de Colores */
  --color-primary: #004a8e;
  /* Azul Corporativo - Principal */
  --color-secondary: #00a8ff;
  /* Azul Claro - Hover/Accent */
  --color-whatsapp: #25D366;
  /* Verde CTA */
  --color-background-light: #f4f8fb;
  /* Fondo suave */
  --color-text-dark: #1c2a3b;
  /* Gris oscuro para texto principal */
  --color-white: #ffffff;
  /* Tipografía - Montserrat */
  font-family: 'Montserrat', sans-serif;
}

/* Reset Base y Estilos Globales */
html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 90px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-text-dark);
  line-height: 1.6;
  background-color: #fff;
  overflow-x: hidden;
}

/* Tipografía Específica */
h1,
h2,
h3 {
  font-weight: 900;
  line-height: 1.1;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  padding-bottom: 0.5rem;
  margin-bottom: 3rem;
}

h2 span {
  display: block;
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  color: var(--color-secondary);
  font-weight: 700;
  margin-top: 0.5rem;
  letter-spacing: 1px;
}

p {
  font-weight: 400;
  margin-bottom: 1rem;
}


/* Botones Estándar (CTA) */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
}

/* Estilos CTA de WhatsApp */
.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: white !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* ========================================= */
/* 2. HEADER (STICKY) */
/* ========================================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: visible;
  /* Permitir que el logo sobresalga */
}

.header-top-bar {
  height: 15px;
  background-color: #004a8e;
  width: 100%;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
}

.logo-container img {
  height: clamp(100px, 12vw, 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 10px;

  z-index: 1000;
  border: none;
  border-radius: 50%;

}

.logo-container img:hover {
  transform: scale(1.1);
}

.menu-toggle {
  display: block;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary);
}

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  flex-direction: column;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-menu.active {
  display: flex;
}

.nav-link {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 700;
  padding: 0.75rem;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--color-secondary);
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--color-white);
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.dropdown-content a {
  color: var(--color-text-dark);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.dropdown-content a i {
  margin-right: 10px;
  color: var(--color-primary);
  width: 20px;
}

.dropdown-content a:hover {
  background-color: var(--color-background-light);
  color: var(--color-secondary);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Ajustes móvil para el dropdown */
@media (max-width: 767px) {
  .dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .dropdown-toggle {
    display: flex !important;
    /* Asegurar que se vea en móvil */
    justify-content: center;
    width: 100%;
    cursor: pointer;
  }

  .dropdown-content {
    display: none;
    /* Inicialmente oculto */
    position: static;
    box-shadow: none;
    background-color: transparent;
    transform: none;
    padding-left: 0;
    width: 100%;
    text-align: center;
  }

  .dropdown.active .dropdown-content {
    display: block;
    /* Se muestra al activarse */
  }

  .dropdown-toggle i {
    transition: transform 0.3s ease;
  }

  .dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
  }

  .dropdown-content a {
    padding: 10px 0;
    font-size: 0.95rem;
    background-color: rgba(0, 74, 142, 0.03);
    border-radius: 4px;
    margin: 5px 0;
  }
}

/* Divisor y Redes Sociales en Menú (General / Móvil) */
.nav-divider {
  display: block;
  width: 80%;
  height: 1px;
  background-color: #e0eaf3;
  margin: 1rem auto;
}

.nav-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  padding: 0.5rem;
}

.nav-icon {
  color: var(--color-text-dark);
  font-size: 1.25rem;
  transition: color 0.3s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.nav-icon:hover {
  transform: scale(1.2);
}

.nav-icon .fa-whatsapp:hover {
  color: var(--color-whatsapp);
}

.nav-icon .fa-instagram:hover {
  color: #E1306C;
}

.nav-icon .fa-headset:hover {
  color: var(--color-secondary);
}

/* Ajustes para pantallas grandes (Desktop) */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    width: auto;
    box-shadow: none;
    padding: 0;
  }

  .nav-divider {
    display: inline-block;
    width: 1px;
    height: 24px;
    background-color: rgba(0, 74, 142, 0.25);
    margin: 0 3.5rem;
    align-self: center;
  }

  .nav-socials {
    padding: 0;
  }
}

/* ========================================= */
/* 3. SECCIÓN HERO (SLIDER) */
/* ========================================= */
.hero-slider-wrapper {
  position: relative;
  overflow: hidden;
  height: 85vh;
  background-color: #000;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Efecto Ken Burns (Zoom Lento) */
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.65;
}

.slide.active .slide-bg {
  transform: scale(1.15);
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  color: white;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 900px;
}

.hero-content h1 {
  color: white;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  margin-bottom: 1.5rem;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-content h1.small-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  margin-bottom: 1.2rem;
}

.hero-content h1.small-title span {
  display: block;
  color: var(--color-secondary);
}

.hero-content .hero-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  max-width: 750px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tag-container {
  margin-bottom: 1.8rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tag {
  background-color: rgba(0, 74, 142, 0.85);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 5px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-content .btn {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Activar animaciones en slide activo */
.slide.active .tag-container {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.slide.active .hero-content h1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.slide.active .hero-content .hero-desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}

.slide.active .hero-content .btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.0s;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 15;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.dot.active {
  background-color: var(--color-white);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ========================================= */
/* 4. BLOC DE SERVICIOS (GRID) */
/* ========================================= */
.services-section {
  position: relative;
  background-image: url('../images/seccion_servicios.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 1;
}

/* Capa de superposición semitransparente para asegurar el contraste y legibilidad */
.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 248, 251, 0.88) 100%);
  z-index: -1;
}

@media (max-width: 1024px) {
  .services-section {
    background-attachment: scroll;
  }
}

.border-top-divider {
  border-top: 1px solid rgba(0, 74, 142, 0.15);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card-servicio {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(224, 234, 243, 0.6);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 74, 142, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  text-align: center;
}

.card-servicio:hover {
  background-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 74, 142, 0.1);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

/* ========================================= */
/* 5. LANDING CARD (CSS 3D INTERACTION) */
/* ========================================= */
.card-showcase {
  display: flex;
  flex-direction: column; /* Apiladas verticalmente por defecto en móvil */
  align-items: center;
  gap: 45px;
  padding: 2rem 1.5rem;
  overflow-x: visible;
}

.card-showcase::-webkit-scrollbar {
  display: none; /* Chrome, Safari y Opera */
}

.card-container-wrapper {
  width: 100%;
  max-width: 340px; /* Ancho máximo adaptado para móviles */
  perspective: 1000px;
  text-align: center;
}

.card-display {
  width: 100%;
  aspect-ratio: 1.58 / 1; /* Mantiene la proporción horizontal perfecta en cualquier pantalla */
  background-color: #eee;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.6s ease-out, box-shadow 0.3s;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-container-wrapper:hover .card-display {
  transform: rotateY(180deg) scale(1.05);
}

/* Soporte para tarjetas con imágenes anverso/reverso reales */
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
}

.card-front {
  z-index: 2;
  transform: rotateY(0deg);
}

.card-back {
  transform: rotateY(180deg);
}

.card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Animación de rotación continua opcional */
@keyframes continuousRotation {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(360deg);
  }
}

.card-display.auto-rotate {
  animation: continuousRotation 10s linear infinite;
}

.card-display.auto-rotate:hover {
  animation-play-state: paused;
}

@media (min-width: 992px) {
  .card-showcase {
    flex-direction: row; /* Diseño horizontal en pantallas grandes */
    justify-content: center;
    overflow-x: visible;
    padding: 2rem 1rem;
    gap: 30px;
  }
  
  .card-container-wrapper {
    flex: 0 1 380px;
    width: 380px;
    max-width: 380px;
  }
  
  .card-container-wrapper .card-display {
    height: auto; /* Dejar que el aspect-ratio calcule la altura automáticamente */
  }
}

/* ========================================= */
/* 6. SECCIÓN NOVEDAD (TIMELINE) */
/* ========================================= */
.timeline-section {
  background-color: var(--color-background-light);
  padding: 5rem 1rem;
}

.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #ccc;
  top: 0;
  left: 20px;
  bottom: 0;
}

.timeline-item {
  position: relative;
  background-color: var(--color-white);
  padding: 20px 20px 20px 40px;
  margin-bottom: 30px;
  margin-left: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--color-primary);
  border-radius: 50%;
  top: 20px;
  left: -32px;
  z-index: 1;
}

.timeline-title h3 {
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 5px;
}

.timeline-date {
  display: block;
  font-size: 0.9rem;
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .timeline-container::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    width: 45%;
    margin-left: 0;
  }

  .timeline-item:nth-child(even) {
    margin-left: auto;
  }

  .timeline-item::before {
    left: auto;
    right: -42px;
  }

  .timeline-item:nth-child(even)::before {
    right: auto;
    left: -42px;
  }
}

/* ========================================= */
/* 7. BLOQUE WHATSAPP CTA */
/* ========================================= */
.whatsapp-cta {
  background-color: var(--color-primary);
  padding: 5rem 1rem;
  text-align: center;
  color: white;
}

.whatsapp-cta h2 {
  color: white;
}

.whatsapp-cta p {
  color: #c9d8e5;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.btn-whatsapp.large {
  padding: 1.2rem 3rem;
  font-size: 1.3rem;
}

.btn-whatsapp:hover {
  background-color: #2cba63;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* Utils */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.text-center {
  text-align: center;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

/* ========================================= */
/* 8. SECCIÓN SOBRE NOSOTROS */
/* ========================================= */
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.nosotros-text h3 {
  color: var(--color-primary);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.nosotros-text p {
  margin-bottom: 1.2rem;
}

.nosotros-ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.nosotros-image {
  text-align: center;
}

.nosotros-image img {
  max-width: 100%;
  max-height: 350px;
  border-radius: 50%;
  box-shadow: 0 15px 30px rgba(0, 74, 142, 0.1);
  border: 8px solid var(--color-background-light);
  transition: transform 0.3s ease;
}

.nosotros-image img:hover {
  transform: scale(1.03);
}

@media (min-width: 768px) {
  .nosotros-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
  }
}

/* ========================================= */
/* MODAL DE SOPORTE TÉCNICO */
/* ========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(28, 42, 59, 0.6);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--color-white);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  border: 1px solid rgba(0, 74, 142, 0.1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 74, 142, 0.1);
  padding-bottom: 0.75rem;
}

.modal-header h3 {
  color: var(--color-primary);
  margin-bottom: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-text-dark);
  transition: color 0.2s;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--color-secondary);
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(0, 74, 142, 0.1);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  color: var(--color-text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 74, 142, 0.1);
}

.captcha-group {
  background-color: var(--color-background-light);
  padding: 1rem;
  border-radius: 8px;
  border: 1px dashed rgba(0, 74, 142, 0.2);
}

.captcha-question-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.captcha-question-container span {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.1rem;
  white-space: nowrap;
}

.captcha-question-container input {
  max-width: 120px;
}

.modal-alert {
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  display: none;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}

.modal-alert.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.modal-alert.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 1.5rem;
}

.modal-footer .btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
}

.modal-footer .btn-secondary {
  background-color: #e0eaf3;
  color: var(--color-text-dark);
}

.modal-footer .btn-secondary:hover {
  background-color: #d0dee8;
}

/* ========================================= */
/* PREMIUM SECTION DIVIDER */
/* ========================================= */
.premium-divider {
  border: none;
  height: 3px;
  background: linear-gradient(90deg, transparent 5%, rgba(0, 74, 142, 0.85) 50%, transparent 95%);
  margin: 0 auto;
  max-width: 1000px;
}

/* ========================================= */
/* 8. BOTÓN FLOTANTE Y CHAT DE WHATSAPP (CTA) */
/* ========================================= */
.whatsapp-float-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
  pointer-events: none; /* Permitir que los clics pasen a través del contenedor vacío */
}

/* Permitir eventos en los hijos directos */
.whatsapp-float-container > * {
  pointer-events: auto;
}

/* Estilo del Botón de WhatsApp */
.whatsapp-btn {
  position: relative;
  width: 60px;
  height: 60px;
  background-color: var(--color-whatsapp);
  color: white !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  cursor: pointer;
}

.whatsapp-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Efecto de Doble Anillo de Pulso */
.whatsapp-pulse-ring,
.whatsapp-pulse-ring-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--color-whatsapp);
  opacity: 0.4;
  z-index: -1;
}

.whatsapp-pulse-ring {
  animation: whatsapp-pulse 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.whatsapp-pulse-ring-2 {
  animation: whatsapp-pulse 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite 1.1s;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Globo de Chat Moderno (Glassmorphism) */
.whatsapp-chat-bubble {
  position: relative;
  width: 320px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              visibility 0.4s;
}

.whatsapp-chat-bubble.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Cabecera del globo de chat */
.chat-bubble-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: 15px 20px;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.chat-bubble-avatar {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.chat-bubble-info {
  display: flex;
  flex-direction: column;
}

.chat-bubble-name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.chat-bubble-status {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-whatsapp);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--color-whatsapp);
  animation: dot-blink 1.5s infinite;
}

@keyframes dot-blink {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.chat-bubble-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-bubble-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Cuerpo del globo de chat */
.chat-bubble-body {
  padding: 20px;
  background: rgba(255, 255, 255, 0.6);
}

.chat-bubble-body p {
  color: var(--color-text-dark);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 15px;
  font-weight: 500;
  text-align: left;
}

.chat-bubble-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-whatsapp);
  color: white !important;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.chat-bubble-btn:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

/* Responsividad para móviles */
@media (max-width: 576px) {
  .whatsapp-float-container {
    bottom: 20px;
    right: 20px;
    gap: 10px;
  }
  
  .whatsapp-btn {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
  
  .whatsapp-chat-bubble {
    width: 280px;
  }
  
  .chat-bubble-header {
    padding: 12px 15px;
  }
  
  .chat-bubble-body {
    padding: 15px;
  }
}

/* ========================================= */
/* 9. SECCIÓN SOFTWARE */
/* ========================================= */
.software-section {
  background-color: var(--color-background-light);
  padding: 5rem 0;
  position: relative;
}

.software-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .software-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-software {
  background: var(--color-white);
  border: 1px solid rgba(0, 74, 142, 0.1);
  border-radius: 16px;
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 74, 142, 0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.card-software::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-software:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 74, 142, 0.12);
  border-color: rgba(0, 74, 142, 0.2);
}

.card-software:hover::before {
  opacity: 1;
}

.card-software .icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 74, 142, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: all 0.4s ease;
  color: var(--color-primary);
}

.card-software:hover .icon-wrapper {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  transform: scale(1.1);
}

.card-software h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-weight: 900;
}

.card-software p {
  font-size: 0.95rem;
  color: var(--color-text-dark);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  flex-grow: 1;
  opacity: 0.85;
}

.card-software-logo {
  height: 80px;
  width: auto;
  max-width: 100%;
  margin-bottom: 2rem;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s ease;
}

.card-software:hover .card-software-logo {
  transform: scale(1.15);
  filter: hue-rotate(190deg) drop-shadow(0 8px 20px rgba(255, 107, 107, 0.4));
}

.card-software .btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: 30px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 74, 142, 0.1);
  transition: all 0.3s ease;
}

.card-software .btn:hover {
  box-shadow: 0 6px 20px rgba(0, 168, 255, 0.3);
}

/* ========================================= */
/* 10. PIE DE PÁGINA (FOOTER) PREMIUM */
/* ========================================= */
.premium-footer {
  background-color: #021a30; /* Azul oscuro premium */
  color: #c9d8e5;
  padding: 4rem 0 0 0;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--color-primary);
}

.premium-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(0, 168, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.premium-footer h3.footer-logo {
  font-size: 1.8rem;
  color: var(--color-white);
  font-weight: 900;
  margin-bottom: 1.2rem;
}

.premium-footer h3.footer-logo span {
  color: var(--color-secondary);
}

.premium-footer h4 {
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem 1.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.footer-about p {
  color: #a0b2c6;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 0;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.footer-links-grid a {
  color: #a0b2c6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links-grid a:hover {
  color: var(--color-secondary);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.8rem 0;
  background-color: #011120;
}

.footer-bottom-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .footer-bottom-flex {
    flex-direction: row;
  }
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: #7b8e9f;
}

.footer-bottom .credits a {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.footer-bottom .credits a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* ========================================= */
/* AJUSTES ADICIONALES PARA MÓVILES (HERO SLIDER) */
/* ========================================= */
@media (max-width: 768px) {
  .hero-slider-wrapper {
    height: 85vh;
    min-height: 560px;
  }
  .hero-content {
    padding: 0 1.2rem;
  }
  .tag-container {
    margin-bottom: 0.8rem;
  }
  .hero-content .tag {
    font-size: 0.75rem !important;
    padding: 6px 12px !important;
    line-height: 1.3 !important;
  }
  .hero-content h1 {
    font-size: clamp(1.6rem, 5vw, 2.2rem) !important;
    margin-bottom: 0.8rem !important;
  }
  .hero-content h1.small-title {
    font-size: clamp(1.4rem, 4.5vw, 1.8rem) !important;
    margin-bottom: 0.6rem !important;
  }
  .hero-content .hero-desc {
    font-size: 0.85rem !important;
    margin-bottom: 1.2rem !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .slider-dots {
    bottom: 15px;
  }
}

@media (max-width: 480px) {
  .hero-slider-wrapper {
    height: 85vh;
    min-height: 520px;
  }
  .hero-content {
    padding: 0 1rem;
  }
  .hero-content h1 {
    font-size: 1.5rem !important;
  }
  .hero-content h1.small-title {
    font-size: 1.3rem !important;
  }
  .hero-content .hero-desc {
    -webkit-line-clamp: 2 !important;
  }
  .hero-content .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.85rem;
  }
  .slider-dots {
    bottom: 12px;
  }
}

/* ========================================= */
/* SCROLL REVEAL ANIMATIONS */
/* ========================================= */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: opacity, transform;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}