/* === Estilos base === */
body {
  font-family: Arial, sans-serif;
  background-color: #f5f7fa;
  margin: 0;
  padding: 0;
  color: #333;
}

/* === Scroll suave === */
html {
  scroll-behavior: smooth;
}

/* === Encabezado sticky con efecto de scroll === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #101e29;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  transition: all 0.3s ease;
  z-index: 1500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

header.scrolled {
  padding: 0.7rem 1rem;
  background-color: rgba(16, 30, 41, 0.95);
  backdrop-filter: blur(5px);
}

/* === Contenido del header === */
.header-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-content img {
  height: 40px;
  width: auto;
  transition: height 0.3s ease;
}

header.scrolled .header-content img {
  height: 30px;
}

.header-content h1 {
  margin: 0;
  font-size: 2rem;
  color: #ffffff;
  transition: font-size 0.3s ease;
}

header.scrolled .header-content h1 {
  font-size: 1.5rem;
}

/* === Botón menú hamburguesa === */
.menu-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: top 0.3s ease;
}

header.scrolled .menu-btn {
  top: 10px;
}

.menu-btn div {
  width: 30px;
  height: 4px;
  background-color: white;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.4s;
}

/* === Animación del ícono hamburguesa === */
.menu-btn.active .bar1 {
  transform: rotate(-48deg) translate(-9px, 10px);
}
.menu-btn.active .bar2 {
  opacity: 0;
}
.menu-btn.active .bar3 {
  transform: rotate(48deg) translate(-5px, -9px);
}

/* === Menú lateral === */
.side-menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #101e29;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 100px;
  transition: 0.4s;
  z-index: 1000;
}

.side-menu.active {
  left: 0;
}

.side-menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 15px 0;
  transition: color 0.3s;
}

.side-menu a:hover {
  color: #ffd700;
}

/* === Contenido principal === */
.container {
  max-width: 1000px;
  margin: 8rem auto 2rem auto; /* antes era 2rem auto */
  padding: 0 1rem;
}

.section {
  margin-bottom: 3rem;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #002a5c;
}

/* === Sección "¿Qué es Technolab?" === */
.intro-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.intro-text {
  flex: 1;
  min-width: 280px;
}

.intro-img {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.intro-img img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* === Simuladores === */
.simuladores {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.simulador {
  flex: 1 1 300px;
  background-color: #fff;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.simulador img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.simulador h3 {
  margin-top: 0;
  color: #003e89;
}

/* === Botón de descarga === */
.download {
  text-align: center;
  margin-top: 2rem;
}

.download a {
  display: inline-block;
  background-color: #133f75;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background-color 0.3s;
}

.download a:hover {
  background-color: #1368ca;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* === Logo y título antiguos (compatibilidad) === */
.logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.logo {
  width: 40px;
  height: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* === Ventana modal de contacto === */
.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease;
}

.modal-content h2 {
  margin-top: 0;
  color: #002a5c;
}

.modal-content .qr {
  width: 150px;
  height: 150px;
  margin: 0.7rem auto 2rem auto;
  display: block;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover {
  color: #c00;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* === Responsividad === */
@media (max-width: 768px) {
  .logo {
    width: 28px;
  }
  header h1 {
    font-size: 1.7rem;
  }
  header.scrolled h1 {
    font-size: 1.3rem;
  }
}
/* === Modal de normas === */
.modal-large {
  max-width: 900px;
  width: 85%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
}

.scrollable-text {
  max-height: 65vh;
  overflow-y: auto;
  margin-top: 1rem;
  line-height: 1.6;
  font-size: 1rem;
  color: #222;
}

.scrollable-text h2,
.scrollable-text h3 {
  color: #133f75;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.scrollable-text ul {
  margin-left: 1.2rem;
  margin-bottom: 1rem;
}

.scrollable-text li {
  margin-bottom: 0.4rem;
}

.final-tip {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: #0e3568;
  background: #f4f8ff;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #1d5bbf;
}

/* ===== LISTAS DEL MODAL DE SEGURIDAD ===== */
.modal-content ul {
  list-style-position: inside; /* Los puntos se alinean con el texto */
  padding-left: 0;
  margin-left: 0;
  margin-bottom: 1rem;
}

.modal-content ul li {
  margin-bottom: 6px; /* Menos espacio entre ítems */
  line-height: 1.4; /* Texto más compacto pero legible */
  color: #333;
}

.modal-content h3 {
  margin-top: 1.2rem;
  color: #133f75;
  font-weight: 600;
}

.modal-content h2 {
  color: #0d2c5a;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.scrollable-text {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 10px;
}

.scrollable-text::-webkit-scrollbar {
  width: 6px;
}

.scrollable-text::-webkit-scrollbar-thumb {
  background-color: #b8c6e0;
  border-radius: 4px;
}
/* ===== JUSTIFICAR TEXTO Y TÍTULOS (excepto el primero) ===== */
.modal-content p,
.modal-content li,
.modal-content h3,
.modal-content h2:not(:first-of-type) {
  text-align: justify;
  text-justify: inter-word;
}

/* ===== Título principal centrado ===== */
.modal-content h2:first-of-type {
  text-align: center;
  color: #0d2c5a;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

/* ===== Ajustes visuales de listas ===== */
.modal-content ul {
  list-style-position: inside;
  padding-left: 0;
  margin-left: 0;
}

.modal-content li {
  margin-bottom: 6px;
  line-height: 1.4;
  color: #333;
}
