html {
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
}
/* ==================== HEADER CONTAINER ==================== */
.header-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

/* ==================== NAVEGACIÓN ==================== */
.navegacion {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 40px;
  z-index: 100;
  background-color: transparent;
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
}

.navegacion.nav-hidden {
  transform: translateY(-100%);
}

.navegacion.scrolled {
  background-color: rgba(13, 73, 238, 0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-container {
  flex: 0 0 auto;
  z-index: 102;
  display: flex;
  align-items: center;
}

.logo {
  height: 65px;
  transition: filter 0.3s ease;
}

.navegacion.scrolled .logo {
  filter: none;
}

/* ==================== MENÚ DE NAVEGACIÓN ==================== */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 50px;
  margin: 0;
  padding: 0;
  justify-content: center;
  flex: 1;
  margin-left: -110px;
}

.nav-menu li a {
  font-weight: 300;
  font-size: large;
  position: relative;
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  transition: color 0.3s ease;
}

.nav-menu li a:focus-visible {
  outline: 3px solid #0a84ff;
  outline-offset: 2px;
}

.nav-menu li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #0a84ff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu li a:hover::after {
  width: 100%;
}

.nav-menu li a:hover {
  color: #0a84ff;
}

.navegacion.scrolled .nav-menu li a {
  color: rgb(255, 251, 251);
}

.navegacion.scrolled .nav-menu li a:hover {
  color: #ff7a00;
}

/* ==================== SELECT NAVBAR ==================== */
.nav-select-item {
  display: none; /* Oculto por defecto */
  align-items: center;
}

.nav-select {
  margin-top: -5px;
  background: transparent;
  color: rgb(255, 255, 255);
  border: none;
  padding: 8px 15px 8px 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 19px;
  font-weight: 400;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23242741' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
  position: relative;
}

.nav-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.nav-select:hover {
  background-color: rgba(10, 132, 255, 0.1);
  color: #0a84ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230a84ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.nav-select:focus {
  background-color: rgba(10, 132, 255, 0.15);
  color: #0a84ff;
}

.nav-select option {
  background: #ffffff;
  color: #242741;
  padding: 10px;
  font-size: 0.95rem;
}

.navegacion.scrolled .nav-select {
  color: rgb(255, 251, 251);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fffbfb' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.navegacion.scrolled .nav-select:hover {
  background-color: rgba(255, 122, 0, 0.1);
  color: #ff7a00;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff7a00' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.navegacion.scrolled .nav-select:focus {
  color: #ff7a00;
}

/* ==================== BOTÓN LOGIN ==================== */
.login {
  flex: 0 0 auto;
  z-index: 102;
}

.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn-login:hover::before {
  width: 120%;
  height: 120%;
}

.btn-login i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.btn-login:hover {
  background: rgba(10, 132, 255, 0.2);
  border-color: #0a84ff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(10, 132, 255, 0.4);
}

.btn-login:hover i {
  transform: scale(1.1);
}

.navegacion.scrolled .btn-login {
  background: rgba(255, 255, 255, 0.15);

  border-color: rgba(255, 255, 255, 0.3);
}

.navegacion.scrolled .btn-login:hover {
  background: #ff7a00;
  border-color: #ff7a00;
  box-shadow: 0 5px 15px rgba(255, 122, 0, 0.4);
}

.navegacion.scrolled .btn-login:hover::before {
  background: rgba(255, 122, 0, 0.3);
}

/* Login en menú móvil */
.nav-login-item {
  display: none;
}

.nav-login-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px 20px !important;
  margin-top: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.nav-login-link i {
  font-size: 1.3rem;
}

.nav-login-link:hover {
  background: #ff7a00 !important;
  border-color: #ff7a00 !important;
  transform: translateX(0) !important;
  padding-left: 20px !important;
  box-shadow: 0 5px 15px rgba(255, 122, 0, 0.3);
}

/* ==================== BOTÓN HAMBURGUESA ==================== */
.hamburger {
  display: none;
  flex-direction: column;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 15px 50px;
  gap: 6px;
  z-index: 102;
}

.hamburger:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  border-radius: 3px;
}

.line {
  width: 28px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
  position: relative;
}

/* Animación del hamburguesa - Primera línea */
.hamburger.active .line1 {
  transform: rotate(45deg) translate(9px, 9px);
}

/* Animación del hamburguesa - Segunda línea */
.hamburger.active .line2 {
  opacity: 0;
  transform: scale(0);
}

/* Animación del hamburguesa - Tercera línea */
.hamburger.active .line3 {
  transform: rotate(-45deg) translate(3.5px, -3.5px);
}

/* ==================== MAIN CONTENT ==================== */
main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  z-index: 1;
}

/* ==================== RESPONSIVE - TABLETS Y MÓVILES ==================== */
@media (max-width: 768px) {
  .navegacion {
    padding: 10px 20px;
    width: 100%;
  }

  .logo {
    height: 50px;
  }

  .hamburger {
    display: flex;
  }

  /* Menú oculto por defecto */
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(
      135deg,
      rgba(13, 73, 238, 0.98) 0%,
      rgba(0, 93, 185, 0.98) 100%
    );
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 100px 20px 20px 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 99;
    justify-content: flex-start;
    overflow-y: auto;
  }

  /* Mostrar menú cuando está activo */
  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
  }

  .nav-menu li a {
    display: block;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    padding: 10px 0;
    transition: all 0.3s ease;
  }

  .nav-menu li a:hover {
    color: #ff7a00;
    padding-left: 10px;
  }

  .nav-menu li a::after {
    display: none;
  }

  .nav-menu li a:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
  }

  /* Mostrar login en menú móvil */
  .nav-login-item {
    display: block;
    border-bottom: none;
    padding-top: 20px;
  }

  /* Select en móvil */
  .nav-select-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
  }

  .nav-select {
    width: 100%;
    color: white;
    font-size: 1.2rem;
    padding: 12px 35px 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  }

  .nav-select:hover,
  .nav-select:focus {
    background-color: rgba(255, 122, 0, 0.1);
    color: #ff7a00;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff7a00' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  }

  /* Ocultar login desktop en móvil */
  .login {
    display: none;
  }
}

/* Pantallas medianas - laptops pequeños y tablets grandes */
/* @media (max-width: 1200px) {
  .navegacion {
    padding: 5px 35px;
  }

  .nav-menu {
    gap: 35px;
    margin-left: -80px;
  }

  .nav-menu li a {
    font-size: 0.95rem;
  }

  .logo {
    height: 60px;
  }
} */

/* @media (max-width: 1024px) and (min-width: 769px) {
  .navegacion {
    padding: 5px 25px;
  }

  .nav-menu {
    gap: 20px;
    margin-left: -50px;
  }

  .nav-menu li a {
    font-size: 0.9rem;
  }
  .logo {
    height: 60px;
  }
} */

/* Pantallas muy pequeñas - móviles pequeños */
/* @media (max-width: 380px) {
  .logo {
    height: 45px;
  }

  .navegacion {
    padding: 8px 15px;
  }
} */
/* ===================== SECCIÓN INICIO - RESPONSIVE MEJORADO ===================== */

.seccion-inicio {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: start;
  overflow: hidden;
  box-sizing: border-box;
}

.slide {
  position: absolute;
  object-fit: cover;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.slide-1 .slide-background {
  background-image: linear-gradient(
    to bottom,
    black 0%,
    black 40%,
    black 60%,
    white 100%
  );
}

.slide-2 .slide-background {
  background-image: linear-gradient(
    to bottom,
    #1a1a2e 0%,
    #16213e 40%,
    #0f3460 60%,
    #533483 100%
  );
}

.capa {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 28, 29, 0.3);
  z-index: 1;
  pointer-events: none;
}

.slide.active .animate-text {
  animation: fadeInUp 1s ease forwards;
}

.slide:not(.active) .animate-text {
  opacity: 0;
  transform: translateY(30px);
  animation: none;
}

/* ===================== TEXTO SISTEMA - RESPONSIVE ===================== */

.texto-sistema {
  position: relative;
  z-index: 2;
  left: clamp(1rem, 5vw, 100px); /* Responsivo: desde 1rem hasta 100px */
  text-align: left;
  color: white;
  padding: 0 clamp(1rem, 4vw, 50px); /* Responsivo: padding dinámico */
  max-width: 90vw;
  width: min(100%, 1200px);
}

/* ===================== TÍTULOS H1 Y H2 - RESPONSIVE CON CLAMP ===================== */

.animate-text {
  font-family: "Montserrat", sans-serif;
  opacity: 0;
  transform: translateY(30px);
}

.texto-sistema h1 {
  font-size: clamp(
    1.5rem,
    8vw,
    4rem
  ); /* Escala fluidamente entre 1.5rem y 4rem */
  font-weight: 300;
  margin: 0;
  letter-spacing: clamp(0.5px, 1vw, 2px);
  text-transform: uppercase;
  animation-delay: 0.2s;
  line-height: 1.1;
}

.texto-sistema h2 {
  font-size: clamp(
    1.5rem,
    8vw,
    4rem
  ); /* Escala fluidamente entre 1.5rem y 4rem */
  font-weight: 300;
  margin: clamp(0.5rem, 2vw, 1rem) 0; /* Margen superior dinámico */
  letter-spacing: clamp(0.5px, 1vw, 2px);
  text-transform: uppercase;
  animation-delay: 0.5s;
  line-height: 1.1;
}

.texto-sistema .destacado {
  color: #0a84ff;
  font-weight: 400;
}

.texto-sistema p {
  font-size: clamp(
    0.9rem,
    3vw,
    1.3rem
  ); /* Escala fluidamente entre 0.9rem y 1.3rem */
  margin: clamp(1rem, 3vw, 2rem) 0 clamp(1.5rem, 4vw, 2.5rem) 0;
  font-weight: 100;
  animation-delay: 0.8s;
  line-height: clamp(1.4, 1.6, 1.8);
  max-width: 95%;
}

/* ===================== BOTONES - RESPONSIVE ===================== */

.botones {
  display: flex;
  gap: clamp(1rem, 2vw, 1.25rem); /* Gap adaptable */
  animation-delay: 1.1s;
  flex-wrap: wrap; /* Permite que los botones se ajusten en líneas */
}

.btn {
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem); /* Padding responsivo */
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
  font-size: clamp(0.75rem, 2vw, 1rem); /* Tamaño de fuente responsivo */
  letter-spacing: clamp(0.5px, 1vw, 1px);
  transition: all 0.3s ease;
  border: 2px solid;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px; /* Hit area mínima para móviles */
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn:focus-visible {
  outline: 3px solid #0a84ff;
  outline-offset: 2px;
}

.btn-contacto {
  background-color: transparent;
  color: #0a84ff;
  border-color: #0a84ff;
}

.btn-contacto:hover {
  background-color: #0a84ff;
  color: white;
  transform: translateY(-2px);
}

.btn-contacto:active {
  transform: translateY(0);
}

.btn-info {
  background-color: rgba(128, 128, 128, 0.8);
  color: white;
  border-color: rgba(128, 128, 128, 0.8);
}

.btn-info:hover {
  background-color: #d47100;
  border-color: #d47100;
  transform: translateY(-2px);
}

.btn-info:active {
  transform: translateY(0);
}

/* ===================== INDICADORES DE SLIDE ===================== */

.slide-indicators {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem); /* Distancia del fondo responsiva */
  left: 0;
  /* transform: translateX(-50%); */
  display: flex;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  z-index: 10;
}
.slide-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: 10;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #0a84ff;
  border-radius: 8px;
  animation: progressAnimation linear forwards;
  box-shadow: 0 0 20px rgba(10, 132, 255, 0.6);
  box-sizing: border-box;
}

/* ===================== MARCADORES DE SLIDE ===================== */

.progress-markers {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  pointer-events: all;
  z-index: 11;
}

.progress-marker {
  width: clamp(12px, 2vw, 18px);
  height: clamp(12px, 2vw, 18px);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  z-index: 12;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-marker:hover {
  background-color: rgba(255, 255, 255, 0.7);
  border-color: #0a84ff;
  transform: scale(1.2);
}

.progress-marker:focus-visible {
  outline: 3px solid #0a84ff;
  outline-offset: 2px;
}

.progress-marker.active {
  background-color: #0a84ff;
  border-color: #0a84ff;
  box-shadow: 0 0 15px rgba(10, 132, 255, 0.8);
}

/* ===================== ANIMACIÓN DE PROGRESO ===================== */

/* La duración se establece dinámicamente en JavaScript */
@keyframes progressAnimation {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* ===================== VARIANTE: ANIMACIÓN PAUSADA ===================== */

.progress-fill.paused {
  animation-play-state: paused;
}

/* ===================== RESPONSIVO ===================== */

@media (max-width: 768px) {
  .slide-progress-bar {
    width: 100%;
    left: 0;
    right: 0;
    height: 3px;
    bottom: 0;
  }

  .progress-marker {
    width: clamp(10px, 1.8vw, 16px);
    height: clamp(10px, 1.8vw, 16px);
    min-width: 40px;
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  .slide-progress-bar {
    width: 100vw;
    left: 0;
    right: 0;
    height: clamp(4px, 1vw, 6px);
    bottom: 0;
    margin: 0;
    padding: 0;
  }

  .progress-marker {
    width: clamp(8px, 1.5vw, 14px);
    height: clamp(8px, 1.5vw, 14px);
    min-width: 36px;
    min-height: 36px;
  }
}

/* ===================== ACCESIBILIDAD ===================== */

@media (prefers-reduced-motion: reduce) {
  .progress-fill {
    animation: none;
    width: 100%;
  }

  .progress-marker {
    transition: none;
  }
}
/* .indicator {
  width: clamp(8px, 1.5vw, 12px);
  height: clamp(8px, 1.5vw, 12px);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
  min-height: 44px; 
  display: flex;
  align-items: center;
  justify-content: center;
}

.indicator:focus-visible {
  outline: 3px solid #0a84ff;
  outline-offset: 2px;
}

.indicator.active {
  background-color: #0a84ff;
  width: clamp(20px, 4vw, 40px);
  border-radius: 6px;
}

.indicator:hover {
  background-color: rgba(255, 255, 255, 0.8);
} */

/* ===================== BOTONES DE NAVEGACIÓN ===================== */

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  font-size: clamp(1.2rem, 3vw, 2rem);
  padding: clamp(10px, 2vw, 15px) clamp(12px, 2.5vw, 20px);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.slide-nav:hover {
  background-color: rgba(10, 132, 255, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.slide-nav:focus-visible {
  outline: 3px solid #0a84ff;
  outline-offset: 2px;
}

.slide-nav.prev {
  left: clamp(0.5rem, 2vw, 1.25rem);
}

.slide-nav.next {
  right: clamp(0.5rem, 2vw, 1.25rem);
}

/* ===================== KEYFRAMES ===================== */

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================== MEDIA QUERIES - TABLET ===================== */

@media (max-width: 1024px) {
  .texto-sistema {
    left: clamp(1rem, 4vw, 60px);
    padding: 0 clamp(1rem, 3vw, 30px);
  }

  .texto-sistema h1,
  .texto-sistema h2 {
    font-size: clamp(1.3rem, 6vw, 3rem);
  }

  .texto-sistema p {
    font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  }

  .botones {
    gap: clamp(0.75rem, 1.5vw, 1rem);
  }

  .btn {
    padding: clamp(0.6rem, 1.5vw, 0.9rem) clamp(1.2rem, 3vw, 2rem);
    font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  }
}

/* ===================== MEDIA QUERIES - MÓVIL (768px) ===================== */

@media (max-width: 768px) {
  .texto-sistema {
    left: 0;
    padding: 0 clamp(1rem, 5vw, 1.5rem);
    max-width: 100%;
    width: 100%;
  }

  .texto-sistema h1,
  .texto-sistema h2 {
    font-size: clamp(1.2rem, 6vw, 2.5rem);
    letter-spacing: clamp(0.3px, 0.8vw, 1px);
  }

  .texto-sistema p {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    margin: clamp(0.75rem, 2vw, 1.5rem) 0 clamp(1rem, 3vw, 1.5rem) 0;
  }

  .botones {
    flex-direction: row;
    gap: clamp(0.5rem, 1vw, 0.75rem);
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .btn {
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 2.5vw, 1.5rem);
    font-size: clamp(0.65rem, 1.5vw, 0.85rem);
    flex: 1 1 auto;
    min-width: 140px;
    min-height: 44px;
  }

  .slide-nav {
    font-size: clamp(1rem, 2vw, 1.5rem);
    padding: clamp(8px, 1.5vw, 12px) clamp(10px, 2vw, 15px);
    min-width: 40px;
    min-height: 40px;
  }

  .slide-indicators {
    bottom: clamp(0.75rem, 2vw, 1.5rem);
    gap: clamp(0.5rem, 1vw, 0.75rem);
  }

  .indicator {
    width: clamp(6px, 1.2vw, 10px);
    height: clamp(6px, 1.2vw, 10px);
  }

  .indicator.active {
    width: clamp(16px, 3vw, 30px);
  }
}

/* ===================== MEDIA QUERIES - MÓVIL PEQUEÑO (480px) ===================== */

@media (max-width: 480px) {
  .texto-sistema {
    left: 0;
    padding: 0 clamp(0.75rem, 4vw, 1rem);
  }

  .texto-sistema h1,
  .texto-sistema h2 {
    font-size: clamp(1rem, 5vw, 1.8rem);
    letter-spacing: clamp(0.2px, 0.5vw, 0.8px);
  }

  .texto-sistema p {
    font-size: clamp(0.75rem, 2.2vw, 0.9rem);
    margin: clamp(0.5rem, 1.5vw, 1rem) 0 clamp(0.75rem, 2vw, 1.25rem) 0;
  }

  .botones {
    flex-direction: column;
    gap: clamp(0.5rem, 2vw, 0.75rem);
  }

  .btn {
    width: 100%;
    padding: clamp(0.5rem, 2vw, 0.7rem) clamp(1rem, 3vw, 1.25rem);
    font-size: clamp(0.6rem, 1.5vw, 0.8rem);
    min-width: unset;
  }

  .slide-nav {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    padding: clamp(6px, 1vw, 10px) clamp(8px, 1.5vw, 12px);
    min-width: 36px;
    min-height: 36px;
  }

  .slide-nav.prev {
    left: clamp(0.3rem, 1.5vw, 0.75rem);
  }

  .slide-nav.next {
    right: clamp(0.3rem, 1.5vw, 0.75rem);
  }

  .slide-indicators {
    bottom: clamp(0.5rem, 1.5vw, 1rem);
    gap: clamp(0.4rem, 0.8vw, 0.6rem);
  }

  .indicator {
    width: clamp(5px, 1vw, 8px);
    height: clamp(5px, 1vw, 8px);
  }

  .indicator.active {
    width: clamp(14px, 2.5vw, 24px);
  }
}

/* ===================== ACCESIBILIDAD ===================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===================== TEMA OSCURO ===================== */

@media (prefers-color-scheme: dark) {
  .btn-info {
    background-color: rgba(100, 100, 100, 0.8);
    border-color: rgba(100, 100, 100, 0.8);
  }

  .btn-info:hover {
    background-color: #d47100;
  }
}

.seccion-servicios {
  width: 100%;
  padding: 50px 20px;
  background: #f5f5f5;
}

.modulos-grid {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  gap: 50px;
  justify-content: center;
  max-width: 980px;
  margin: 40px auto 0 auto;
}

.modulo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
}

.modulo-item .icono,
.modulo-item img.icono {
  width: 300px;
  height: 200px;
  object-fit: cover;
  display: block;
}

.modulo-item .modulo-contenido {
  width: 300px;
  box-sizing: border-box;
  padding: 6px 0;
}

.modulo-contenido h3 {
  margin: 0 0 8px 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  color: #20313a;
  font-weight: 700;
}

.modulo-contenido .descripcion {
  font-family: "Montserrat", sans-serif;
  color: #6b6f74;
  line-height: 1.6;
  margin: 0 0 12px 0;
  font-size: 0.95rem;
  text-align: left;
}

.modulo-contenido .btn-ver-mas {
  align-self: flex-start;
  border: none;
  background: transparent;
  color: #0a84ff;
  font-weight: 600;
  border-bottom: 2px solid #0a84ff;
  padding: 6px 0;
}

.modulos-grid > .modulo-item:nth-child(3n + 2) .icono,
.modulos-grid > .modulo-item:nth-child(3n + 2) img.icono-centro {
  border-radius: 20px 20px 20px 0;
}

.modulos-grid > .modulo-item:nth-child(3n + 1) .icono,
.modulos-grid > .modulo-item:nth-child(3n) .icono,
.modulos-grid > .modulo-item:nth-child(3n + 1) img.icono-lateral,
.modulos-grid > .modulo-item:nth-child(3n) img.icono-lateral {
  border-radius: 0 20px 20px 20px;
}

.icono-centro {
  border-radius: 20px 20px 20px 0;
}

.icono-lateral {
  border-radius: 0 20px 20px 20px;
}

.modulos-grid > .modulo-item:nth-child(3n + 1),
.modulos-grid > .modulo-item:nth-child(3n) {
  display: flex;
  flex-direction: column;
}

.modulos-grid > .modulo-item:nth-child(3n + 1) .modulo-contenido,
.modulos-grid > .modulo-item:nth-child(3n) .modulo-contenido {
  order: 0;
}

.modulos-grid > .modulo-item:nth-child(3n + 1) .icono,
.modulos-grid > .modulo-item:nth-child(3n) .icono {
  order: 1;
}

.modulos-grid > .modulo-item:nth-child(3n + 2) {
  display: flex;
  flex-direction: column;
}

.modulos-grid > .modulo-item:nth-child(3n + 2) .icono {
  order: 0;
}

.modulos-grid > .modulo-item:nth-child(3n + 2) .modulo-contenido {
  order: 1;
}

@media (max-width: 1024px) {
  .modulos-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    gap: 22px;
  }

  .modulo-item .icono {
    width: 100%;
    height: 200px;
    max-width: 300px;
  }

  .modulo-item .modulo-contenido {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .seccion-servicios {
    padding: 30px 20px;
  }

  .modulos-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 18px;
    margin: 40px 0 0 0;
  }

  .modulo-item {
    align-items: center;
    text-align: center;
    padding: 0;
  }

  .modulo-item .icono {
    width: 100%;
    height: 200px;
    max-width: 100%;
  }

  .modulo-item .modulo-contenido {
    width: 100%;
    max-width: 100%;
    padding: 15px;
  }

  .modulo-contenido .descripcion {
    text-align: center;
  }

  .modulo-contenido h3 {
    font-size: 1rem;
  }

  .modulo-contenido .descripcion {
    font-size: 0.9rem;
  }
}

.modulo-contenido {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-ver-mas {
  display: inline-block;
  padding: 10px 5px;
  background-color: transparent;
  color: #0a84ff;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  align-self: flex-start;
  border: none;
  border-bottom: 2px solid #0a84ff;
  cursor: pointer;
  position: relative;
}

.btn-ver-mas:focus-visible {
  outline: 3px solid #0a84ff;
  outline-offset: 2px;
}

.btn-ver-mas::before {
  content: "→";
  position: absolute;
  right: -20px;
  bottom: 5px;
  opacity: 0;
  color: #d47100;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.btn-ver-mas::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #d47100;
  transition: width 0.4s ease;
}

.btn-ver-mas:hover {
  color: #d47100;
  padding-right: 30px;
}

.btn-ver-mas:hover::before {
  opacity: 1;
  right: 5px;
  animation: bounce-arrow 0.6s ease;
}

.btn-ver-mas:hover::after {
  width: 100%;
}

@keyframes bounce-arrow {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: #ffffff;
  margin: 5% auto;
  padding: 0;
  border-radius: 15px;
  width: 80%;
  max-width: 900px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.4s ease;
  position: relative;
}

.close {
  color: #aaa;
  position: absolute;
  right: 25px;
  top: 15px;
  font-size: 35px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 1001;
  background: transparent;
  border: none;
  padding: 0;
}

.close:hover,
.close:focus-visible {
  color: #ff0000;
  transform: rotate(90deg);
}

#contenidoModal {
  padding: 40px;
  font-family: "Montserrat", sans-serif;
}

#contenidoModal h2 {
  color: #0a84ff;
  font-size: 2.5rem;
  margin-bottom: 20px;
  border-bottom: 3px solid #0a84ff;
  padding-bottom: 15px;
}

#contenidoModal h3 {
  color: #333;
  font-size: 1.5rem;
  margin-top: 25px;
  margin-bottom: 15px;
}

#contenidoModal p {
  color: #666;
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

#contenidoModal ul {
  list-style: none;
  padding-left: 0;
}

#contenidoModal ul li {
  color: #555;
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  line-height: 1.6;
}

#contenidoModal ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0a84ff;
  font-weight: bold;
  font-size: 1.3rem;
}

.modal-logo {
  position: absolute;
  top: 20px;
  right: 70px;
  width: 120px;
  height: auto;
  z-index: 999;
}

.modal-header-img {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  #contenidoModal {
    padding: 30px 20px;
  }

  #contenidoModal h2 {
    font-size: 1.8rem;
  }

  .btn-ver-mas {
    align-self: stretch;
    text-align: center;
  }
}

.contacto-servicio {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 10px;
  width: 100%;
  height: 150px;
  background: linear-gradient(90deg, #0a84ff 0%, #005db9 100%);
  color: white;
  border-radius: 30px;
}

.btn-info-servicio {
  color: white;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border-radius: 5px;
  background-color: #ff7a00;
  border: 2px solid #ff7a00;
  translate: transformY(-5px);
  padding: 12px 30px;
}

.btn-info-servicio:hover {
  transform: translateY(-5px);
  background-color: #d47100;
  box-shadow: #00000042 4px 4px 4px;
  border-color: #ffffff;
  color: white;
}

.btn-info-servicio:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .contacto-servicio {
    height: auto;
    padding: 20px;
    text-align: center;
  }

  .contacto-servicio p {
    font-size: small;
  }

  .btn-info-servicio {
    position: static;
    margin: 20px auto 0 auto;
  }
}
.intermedio-seccion {
  display: flex;
  width: 100%;
  height: 750px;
  /* margin-top: 100px;
  margin-bottom: 100px; */
}

.frase-itermedio {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  /* margin-bottom: 50px; */
  overflow: hidden;
}

.frase-itermedio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 750px;
  background: rgba(0, 0, 0, 0.452); /* Ajusta el 0.5 para más/menos oscuridad */
  z-index: 1;
  pointer-events: none;
}

.frase-itermedio img {
  object-fit: cover;
  width: 100%;
  height: 750px;
  top: 0;
  left: 0;
  z-index: 0;
}

.texto-medio {
  position: absolute;
  width: calc(100% - 80px);
  left: 40px;
  color: rgb(255, 255, 255);
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  font-weight: 600;
  z-index: 2;
  line-height: 1.05;
}

#type-target {
  white-space: pre-wrap;
  border-right: 0.12em solid rgba(255, 255, 255, 0.9);
  display: inline;
}

@media (prefers-reduced-motion: reduce) {
  #type-target {
    border-right: none;
  }
}

@media (prefers-color-scheme: dark) {
  .modal-content {
    background-color: #ffffff;
    color: #ffffff;
  }

  #contenidoModal h2,
  #contenidoModal h3 {
    color: #0a84ff;
  }

  #contenidoModal p,
  #contenidoModal li {
    color: #e0e0e0;
  }
}
/* ===================== PAGE LOADER ===================== */

.page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 9999;
  overflow: hidden;
}

.loader-content {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Cortinas superior e inferior */
.curtain {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  background: #000;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 10;
}

.curtain.top {
  top: 0;
  transform-origin: bottom;
}

.curtain.bottom {
  bottom: 0;
  transform-origin: top;
}

/* Estado al abrir (revelar página) */
.page-loader.reveal .curtain.top {
  transform: translateY(-100%);
}

.page-loader.reveal .curtain.bottom {
  transform: translateY(100%);
}

/* Estado oculto después de abrir */
.page-loader.hidden {
  display: none;
}

/* ===================== LÍNEA DE PROGRESO ===================== */

.loader-line-container {
  width: 400px;
  height: 1px;
  background: #333333;
  position: relative;
  overflow: hidden;
}

.loader-line {
  height: 100%;
  background: #ffffff;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* ===================== PORCENTAJE ===================== */

.loader-percentage-text {
  font-size: 0.85rem;
  font-weight: 400;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.loader-percentage-text span {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #fff;
}
/* body.loader-active {
  overflow: hidden;
  touch-action: none;
}

html.loader-active {
  overflow: hidden;
}

body.loader-active main,
body.loader-active header {
  pointer-events: none;
} */
/* ===================== RESPONSIVE ===================== */

@media (max-width: 768px) {
  .loader-line-container {
    width: 250px;
  }

  .loader-percentage-text {
    font-size: 0.8rem;
  }
}
