/* ---------------- VARIABLES DE COLOR ---------------- */
:root {
  /* Paleta Esenupai */
  --primary: #2b5768; /* Azul/Gris Oscuro */
  --secondary: #d9933d; /* Naranja/Oro - Acento principal */
  --tertiary: #cd5f38; /* Rojo/Naranja - Hover, énfasis fuerte */
  --alternate: #315260; /* Tono de soporte oscuro */

  --text-primary: #14181B; /* Casi negro */
  --text-secondary: #737373; /* Gris medio */

  --bg-primary: #F1F4F8; /* Gris muy claro/fondo principal */
  --bg-secondary: #FFFFFF; /* Blanco */
  --bg-navbar: #F6F6F6; /* Blanco / Color de fondo del navbar solicitado */

  --bg-hero-overlay: rgba(0, 0, 0, 0.45);

  --success: #249689;
  --error: #FF5963;
  --warning: #d27135;
  --info: #FFFFFF; /* Blanco puro, usado ahora para el texto del hero */
}

/* ---------------- RESET ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
}

a {
  text-decoration: none;
  color: inherit;
  position: relative;
}

/* ---------------- NAVBAR ---------------- */

/* ELIMINADO: .menu-checkbox { display: none; } ya no se usa. */

header {
  background: var(--bg-navbar);
  color: var(--primary);
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  height: 100%;
}

.logo {
  width: 150px;
  height: auto;
}

/* Estilos de la lista de enlaces en ESCRITORIO */
.navbar ul {
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar ul li {
  margin-left: 20px;
}

.navbar ul li a {
  color: var(--primary);
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 5px;
  transition: color 0.3s ease, background 0.3s ease;
}

.navbar ul li a:hover,
.navbar ul li a.active {
  color: var(--secondary);
  background: rgba(43, 87, 104, 0.1);
}

/* Estilo para el botón de Iniciar Sesión en el Navbar */
.navbar .btn-login {
  background: var(--tertiary);
  color: var(--info);
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: bold;
  margin-left: 30px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.navbar .btn-login:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

/* ---------------- HERO ---------------- */
.hero-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-top: 0px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-hero-overlay);
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0px 0px 0px;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--info);
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.iso {
  margin-top: 20px;
  height: 300px;
}

.descripcion {
  text-align: center;
  font-weight: 600;
  color: var(--info);
  font-size: 2rem;
  margin-top: 0px;
  line-height: 1.2;
}

.descripcion strong {
  font-weight: 700;
  color: var(--secondary);
}

.descripcionDescarga {
  text-align: center;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  margin-bottom: 25px;
  margin-top: 10px;
}

.descripcionDescarga strong {
  font-weight: 600;
  color: var(--info);
}

/* ---------------- BOTONES ---------------- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:hover {
  background: var(--tertiary);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.btn-container {
  text-align: center;
  margin-top: 30px;
}

/* ---------------- SECCIONES ---------------- */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary);
  font-size: 2rem;
}

h3 {
  text-align: center;
  color: var(--secondary);
}

#about {
  text-align: center;
}

/* ---------------- CARDS ---------------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-secondary);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 15px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.2);
  color: var(--secondary);
}

.card h3 {
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.card p {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.card:hover h3,
.card:hover p {
  color: var(--primary);
}

/* ---------------- CONTACTO ---------------- */
#contact {
  width: 100%;
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 80px 20px;
}

#contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

#contact form input,
#contact form textarea {
  padding: 12px;
  margin: 10px 0;
  border: 2px solid var(--alternate);
  border-radius: 8px;
  font-size: 1rem;
  background: #ffffff;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

#contact form input:focus,
#contact form textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 6px var(--secondary);
}

#contact form button {
  background: var(--primary);
  color: var(--bg-secondary);
  border: none;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 10px;
  transition: background 0.3s ease, transform 0.2s ease;
}

#contact form button:hover {
  background: var(--tertiary);
  transform: translateY(-2px);
}

/* ---------------- REDES SOCIALES ---------------- */
.social-bar {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin: 40px 0;
}

.social-bar a {
  font-size: 40px;
  color: var(--secondary);
  transition: color 0.3s ease, transform 0.2s ease;
}

.social-bar a:hover {
  color: var(--primary);
  transform: scale(1.3);
}

@media (max-width: 480px) {
  .social-bar a {
    font-size: 32px;
  }

  .social-bar {
    gap: 40px;
  }
}

/* ---------------- FOOTER ---------------- */
footer {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}

/* ---------------- MODAL ---------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 24, 27, 0.8);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 30px;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  animation: scaleUp 0.3s ease;
}

.modal-content h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

.modal-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.5;
}

.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 2rem;
  font-weight: bold;
  color: var(--secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

.close:hover {
  color: var(--primary);
  transform: scale(1.2);
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0.7);
  }

  to {
    transform: scale(1);
  }
}

/* ---------------- MOCKUPS ---------------- */
.mockup {
  display: block;
  margin: 0px auto 0 auto;
  max-width: 40%;
  width: 100%;
  height: auto;
  box-sizing: border-box;
}

.mockup1 {
  display: block;
  margin: 100px auto 0 auto;
  max-width: 70%;
  width: 100%;
  height: auto;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .mockup {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    margin-top: 15px;
    height: auto;
    box-sizing: border-box;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  section {
    padding: 50px 15px;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .card {
    padding: 15px;
  }

  form input,
  form textarea {
    font-size: 0.9rem;
  }

  form button {
    font-size: 0.95rem;
    padding: 12px;
  }

  .social-bar {
    gap: 40px;
  }
}

/* ---------------- MENÚ MÓVIL (CORREGIDO PARA JS con .show) ---------------- */
@media (max-width: 768px) {
  /* Ocultar botón de login en la lista en móvil (para forzar que se vea solo como un enlace dentro del menú) */
  /* NOTA: Esta regla estaba incorrecta o mal ubicada. La eliminamos para tratarlo dentro del UL */
  /* .navbar .btn-login { display: none; } */
.mockup1 {
    /* Mantenemos el margen de arriba, centrado y auto */
    margin: 100px auto 0 auto;
    
    /* HACEMOS QUE OCUPARE CASI TODO EL ANCHO DEL CONTENEDOR */
    max-width: 100%; /* Le damos un 100% del ancho, más grande que el 70% de desktop */
  }


  /* MOSTRAR EL TOGGLE (Botón) */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1600;
  }

  .menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Animación del icono a X */
  .menu-toggle.show span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  .menu-toggle.show span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.show span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  /* OCULTAR MENÚ por defecto (usando transformación para animación) */
  .navbar ul {
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    display: flex;
    background: var(--bg-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 30px 20px;
    border-top: 2px solid var(--secondary);
    z-index: 1500;
    
    /* CAMBIO CLAVE: Centrar horizontalmente los enlaces */
    align-items: center; 

    /* Regla clave: Ocultar inicialmente fuera de la vista */
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
  }

  /* MOSTRAR MENÚ cuando JS añade la clase 'show' */
  .navbar ul.show {
    transform: translateX(0);
  }

  .navbar ul li {
    margin: 15px 0;
    text-align: center;
    width: 100%; /* Asegura que el LI ocupe todo el ancho para centrar su contenido */
  }

  .navbar ul li a {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-block; /* Cambio a inline-block para que el texto se centre */
    padding: 10px 0;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
  }

  .navbar ul li a:hover {
    background: rgba(43, 87, 104, 0.1);
  }
  
  /* ESTILOS CLAVE PARA ALINEAR EL BOTÓN */
  .navbar ul li a.btn-login {
    /* Resetea los márgenes que tiene en desktop */
    margin: 10px 0; 
    
    /* Vuelve a darle los estilos visuales de botón */
    background: var(--tertiary); 
    color: var(--info);
    padding: 10px 25px; /* Más padding para que parezca un botón */
    border-radius: 8px;
    
    /* Para que respete el centrado de su LI */
    display: inline-block; 
  }
}

/* Ocultar el menú-toggle en escritorio */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}