/* ===== RESET GENERAL ===== */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Si necesitas compensar por navbar fija, usa esto en un contenedor específico */
.main-wrapper {
    padding-top: 95px;
}
/* === Protección global contra scroll lateral y desbordes === */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}


/* === INICIO ESTILOS SECCIÓN 1: CABECERA VERDE === */
.cabecera-verde {
  background-color: #0a962f;
  color: white;
  padding: 4px 30px;
  display: flex;
  align-items: center;
  font-size: 0.85em;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  z-index: 1000;
   gap: 20px;
}

.cabecera-verde .col {
  flex: 1;
}

/* Columna izquierda: redes sociales */
.cabecera-verde .col.redes p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;

}

.cabecera-verde .icon-circle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: #6de08e;
  color: white;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 14px;
  margin-left: 6px;
  text-decoration: none;
}

.cabecera-verde .icon-circle:hover {
  background-color: #51c475;
}

/* Columna central: título */
.titulo-centro {
  text-align: center;
}

.titulo-centro h2 {
  font-size: 1.2em;
  white-space: nowrap;
  margin: 0;
}

.titulo-centro p {
  font-size: 0.9em;
  margin: 0;
  font-weight: normal;
  color: #d9ffd9;
}

/* Columna derecha: correo */
.col.correo {
  text-align: right;
}

.icono-correo {
  margin-right: 6px;
}

.correo-blanco {
  color: white;
  text-decoration: none;
}

.correo-blanco:hover {
  text-decoration: underline;
}
/* === FIN ESTILOS SECCIÓN 1: CABECERA VERDE === */

/* === INICIO RESPONSIVE (POV ANDORID) SECCION 1: CABECERA VERDE === */
@media (max-width: 768px) {
  .cabecera-verde {
    flex-direction: column;
    text-align: center;
    padding: 15px 10px;
    gap: 10px;
}

.cabecera-verde .col {
    width: 100%;
}

.titulo-centro h2 {
    font-size: 1em;
    white-space: normal;
}

.titulo-centro p {
    font-size: 0.85em;
}

.col.correo {
    text-align: center !important;
}

.cabecera-verde .col.redes p {
    justify-content: center;
    flex-wrap: wrap;
}
}
/* === FIN RESPONSIVE SECCIÓN 1: CABECERA VERDE === */


/* === INICIO ESTILOS NAVBAR PRINCIPAL === */
.navbar {
  position: fixed;
  top: 47px; /* Altura del encabezado verde */
  width: 100%;
  z-index: 999;
  background-color: #1c1c1c;
  transition: background-color 0.3s ease-in-out, top 0.3s ease-in-out;
}

.navbar.transparente {
  background-color: transparent;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
}

.nav-logo img.logo-navbar {
   height: 85px;
   margin-right: 20px;

}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  color: white !important;
  font-weight: 700;
  font-size: 0.82em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  text-decoration: none;
  padding: 8px 12px;
  display: block;
  transition: color 0.3s ease;
}

.nav-links li:hover > a {
  color: #0a962f;
}

.nav-links li a.activo {
  color: #0a962f !important;
  font-weight: bold;
}


/* === MENÚ DESPLEGABLE === */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background-color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 0;
  list-style: none;
  overflow: hidden;
  min-width: 220px;
  z-index: 999;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 16px;
  color: #1a1a1a !important;   /* ← TEXTOS visibles */
  font-weight: 600;
  text-decoration: none;
  background-color: white;
  font-size: 0.8em;
  text-shadow: none !important; /* ← Elimina ese efecto grisáceo */
  opacity: 1 !important;        /* ← Refuerza visibilidad */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu li a:hover {
  background-color: #0a962f;
  color: white !important;
}
/* === FIN ESTILOS NAVBAR PRINCIPAL === */


/* === INICIO ESTILOS RESPONSIVOS PARA NAVBAR === */
.menu-toggle {
  display: none;
  font-size: 1.8em;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar {
    display: none;
}

.menu-toggle {
    display: block;
}

.nav-menu {
    display: none; /* ← AQUI ESTABA FALTANDO */
  }

.nav-container {
    justify-content: space-between;
    padding: 0 20px;
}

.nav-menu {

    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    background-color: #1c1c1c;
    display: none;
    flex-direction: column;
    z-index: 999;
}

.nav-menu.active {
    display: flex;
}

.nav-links {
    flex-direction: column;
    gap: 0;
}

.nav-links li {
    border-bottom: 1px solid #333;
}

.nav-links li a {
    padding: 14px 20px;
    font-size: 1em;
}

.dropdown-menu {
    position: static;
    background-color: #2a2a2a;
    box-shadow: none;
    border-radius: 0;
    min-width: auto;
    display: none;
}

.dropdown-menu li a {
    color: white;
}

.dropdown-menu li a:hover {
    background-color: #0a962f;
}

.dropdown.active .dropdown-menu {
    display: block;
}
}
/* === FIN ESTILOS RESPONSIVOS PARA NAVBAR === */

/* === INICIO ESTILO PARA SOMBRA DEL BOTÓN DE MENÚ LATERAL === */
.open-hidden-bar.con-sombra {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  background-color: #2c2c2c;
  border-radius: 6px;
}
/* === FIN ESTILO PARA SOMBRA DEL BOTÓN DE MENÚ LATERAL === */

/* === INICIO ESTILOS SECCIÓN PIE DE PÁGINA (seccion-final) === */
.seccion-final {
  display: flex; /* ← ESTO ES CRUCIAL */
  background-color: #1c1c1c;
  color: white;
  padding: 40px 20px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.seccion-final .col {
  flex: 1;
  min-width: 200px;
}

.logo-footer {
  width: 100px;
  margin-bottom: 10px;
}

.logo-footer.grande {
  width: 230px;
}

.seccion-final h3 {
  border-bottom: 2px solid green;
  display: inline-block;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.seccion-final ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.seccion-final ul li {
  margin-bottom: 10px;
}

.seccion-final .servicios ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.seccion-final .servicios ul li a:hover {
  color: #00ff00;
}

.telefono {
  margin-top: 20px;
  font-size: 1.2em;
  color: #76ff76;
}

.telefono-hover {
  display: inline-block;
  text-align: left;
}

.telefono-hover i,
.telefono-hover {
  font-size: 0.9em;
  color: white;
}

.telefono-numero {
  display: block;
  font-size: 1.5em;
  color: #76ff76;
  font-weight: bold;
  transition: color 0.3s ease;
}

.telefono-numero:hover {
  color: #00ff00;
}

.ubicacion-icono {
  font-size: 1.5em;
  color: #fff;
  margin-right: 8px;
  vertical-align: middle;
}
/* === FIN ESTILOS SECCIÓN PIE DE PÁGINA (seccion-final) === */

/* === INICIO RESPONSIVE: PIE DE PÁGINA (.seccion-final) === */
@media (max-width: 768px) {
  .seccion-final {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .seccion-final .col {
    min-width: 100%;
    padding: 0 10px;
  }

  .logo-footer.grande {
    width: 180px;
    margin: 0 auto 15px;
  }

  .telefono-hover {
    text-align: center;
  }

  .seccion-final h3 {
    border: none;
    font-size: 1.2em;
    margin-bottom: 10px;
  }

  .seccion-final ul li {
    margin-bottom: 8px;
  }

  .seccion-final iframe {
    width: 100% !important;
    height: 250px !important;
  }
}
/* === FIN RESPONSIVE: PIE DE PÁGINA === */


@media (min-width: 769px) {
  .open-hidden-bar,
  #hidden-bar,
  #overlay {
    display: none !important;
}
}

/* Corrige scroll lateral en móviles */
.hidden-bar {
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

.hidden-bar * {
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
}

/* === INICIO ESTILOS HIDDEN-BAR (MENÚ MÓVIL LATERAL) === */

.hidden-bar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background-color: #1c1c1c;
    color: white;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: left 0.3s ease;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hidden-bar.active {
    left: 0;
}

.hidden-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 15px;
    border-bottom: 1px solid #333;
    font-size: 0.95em;
    background-color: #1c1c1c;
    color: white;
}

#close-hidden-bar {
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: white;
}

.open-hidden-bar {
    position: fixed;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.8em;
    color: white;
    cursor: pointer;
    z-index: 2100;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1500;
}

#overlay.active {
    opacity: 1;
    visibility: visible;
}

.hidden-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hidden-nav ul li {
    border-bottom: 1px solid #333;
}

.hidden-nav ul li a,
.menu-item {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: white;
    font-size: 1em;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hidden-nav ul li a:hover {
    background-color: #0a962f;
    color: white;
    border-left: 4px solid #0a962f;
}

.submenu {
    display: none;
    padding-left: 10px;
}

.submenu.active {
    display: block;
}

.submenu li a {
    padding-left: 30px;
    font-size: 0.95em;
    background-color: #252525;
}

.submenu li a:hover {
    background-color: #0a962f;
}

.toggle-btn {
    background: none;
    border: none;
    padding: 12px;
    cursor: pointer;
    color: white;
}

.toggle-btn i {
    font-size: 0.9em;
    margin-left: 5px;
}

/* Ocultar en escritorio */
@media(min-width: 769px){
    .open-hidden-bar,
    #hidden-bar,
    #overlay {
        display: none;
    }
}

/* Ocultar navbar de escritorio en móviles */
@media(max-width: 768px){
    .navbar {
        display: none;
    }
}

/* === FIN ESTILOS HIDDEN-BAR (MENÚ MÓVIL LATERAL) === */

/* === COMIENZO DE SECCIONES (Jordy/yordy) === */

/* SECCION 1 */
/* INICIO ESTILOS SECCIÓN PARALLAX: CAMPAÑA SEGURIDAD VIAL */
.parallax-campania {
  background-image: url("img/parallax.png");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.parallax-campania::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.parallax-contenido {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.logo-parallax {
  width: 120px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.parallax-contenido h2 {
  font-size: 2em;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.parallax-contenido p {
  font-size: 1.2em;
  max-width: 600px;
  margin: 0 auto;
}

/* RESPONSIVE: fallback sin parallax en móviles */
@media (max-width: 768px) {
  .parallax-campania {
    background-attachment: scroll;
    height: 330px;
    padding: 40px 15px;
  }

  .parallax-contenido h2 {
    font-size: 1.5em;
  }

  .parallax-contenido p {
    font-size: 1em;
  }

  .logo-parallax {
    width: 90px;
    margin-bottom: 12px;
  }
}
/* FIN ESTILOS SECCIÓN PARALLAX: CAMPAÑA SEGURIDAD VIAL */

/* SECCION 2 */
/* === INICIO ESTILOS SECCION DE REQUISITOS NECESARIOS === */
.requisitos-necesarios {
  background-color: #1a1a3d;
  color: #1a1a1a;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.contenedor-requisitos {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.requisitos-necesarios .columna {
  flex: 1 1 50%;
  padding: 60px 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.requisitos-necesarios .columna.derecha {
  padding: 0;
  margin: 0;
}

.imagen-container {
  width: 100%;
  height: 100%;
}

.imagen-container img.imagen-requisitos {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  border-radius: 0;
}

.requisitos-necesarios h2 {
  color: #057D3B;
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: bold;
}

.requisitos-necesarios ul {
  list-style: none;
  padding: 0;
}

.requisitos-necesarios li {
  margin-bottom: 15px;
  font-size: 18px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: white;
}

.requisitos-necesarios i {
  color: #00ff90;
  font-size: 20px;
  margin-top: 3px;
  flex-shrink: 0;
}
/* === RESPONSIVE: SECCIÓN REQUISITOS NECESARIOS === */
@media (max-width: 768px) {
  .requisitos-necesarios {
    flex-direction: column;
  }

  .contenedor-requisitos {
    flex-direction: column;
  }

  .requisitos-necesarios .columna {
    width: 100%;
    padding: 30px 20px;
  }

  .imagen-container {
    width: 100%;
    height: 300px;
  }

  .imagen-container img.imagen-requisitos {
    object-fit: cover;
  }
}
/* === FIN ESTILOS SECCION DE REQUISITOS NECESARIOS === */

/* === INICIO ESTILOS BOTÓN REQUISITOS NECESARIOS === */
.boton-requisitos-container {
  margin-top: 30px;
  text-align: left;
}

.boton-requisitos {
  display: inline-block;
  padding: 12px 25px;
  background-color: #057D3B;
  color: white;
  font-size: 1em;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.boton-requisitos:hover {
  background-color: #045d2b;
  transform: translateY(-2px);
}
/* === FIN ESTILOS BOTÓN REQUISITOS NECESARIOS === */

/* SECCION 3 */
/* INICIO ESTILOS SECCION PARALLAX INFORMACION  */
.parallax-informacion {
  background-image: url("img/parallax2.jpeg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  color: white;
  text-align: center;
  position: relative;
}

.parallax-informacion::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.parallax-contenido-informacion {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.titulo-informacion {
  font-size: 2em;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.linea-decorativa {
  width: 50px;
  height: 2px;
  background-color: #fff;
  margin: 10px auto 40px auto;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  row-gap: 10px;
  justify-items: center;
  margin: 0 auto;
  max-width: 1200px;
}

.info-item {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 12px;
  box-sizing: border-box;
  width: 100%;
  max-width: 280px;
}

.icono-circular {
  width: 70px;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-size: 32px;
}

.info-item h3 {
  margin-bottom: 15px;
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
}

.info-item p,
.info-item ul {
  font-size: 0.95em;
  color: #eee;
  line-height: 1.5;
  margin: 0 0 10px 0;
  padding: 0;
}

.info-item ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 235px; 
  text-align: justify;
  text-justify: inter-word;
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}
/* FIN ESTILOS SECCION PARALLAX INFORMACION  */

/* BOTÓN MAYOR INFORMACIÓN */
.boton-info-container {
  margin-top: 40px;
  text-align: center;
}

.boton-info {
  display: inline-block;
  padding: 12px 30px;
  background-color: rgba(255, 255, 255, 0.1); /* igual que las tarjetas */
  color: #fff;
  font-size: 1em;
  font-weight: bold;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 transparent;
  transition: background-color 0.3s ease, transform 0.2s ease, border 0.3s ease;
}

.boton-info:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}



/* SECCION 4 */
/* === INICIO ESTILOS SECCION DE VEHICULOS QUE PUEDO CONDUCIR === */
.parallax-video-vehiculos {
  position: relative;
  height: 650px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: left;
}

.parallax-video-vehiculos .background-video {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: 1;
}

.parallax-video-vehiculos .contenido-video {
  position: relative;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.55);
  padding: 50px;
  max-width: 800px;
  border-radius: 10px;
  backdrop-filter: blur(3px);
}

.parallax-video-vehiculos .contenido-video h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #00ff90;
}

.parallax-video-vehiculos .contenido-video p {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #ffffff;
}

.parallax-video-vehiculos .contenido-video ul {
  list-style: none;
  padding-left: 0;
}

.parallax-video-vehiculos .contenido-video li {
  margin-bottom: 12px;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.parallax-video-vehiculos .contenido-video i {
  color: #00ff90;
}
/* === FIN ESTILOS SECCIÓN PARALLAX VIDEO: ¿Qué vehículos puedo conducir? === */

/* RESPONSIVE: PARALLAX VIDEO */
@media (max-width: 768px) {
  .parallax-video-vehiculos {
    height: auto;
    padding: 40px 15px;
  }

  .parallax-video-vehiculos .contenido-video {
    padding: 30px 20px;
    border-radius: 0;
  }

  .parallax-video-vehiculos .contenido-video h2 {
    font-size: 1.5em;
  }

  .parallax-video-vehiculos .contenido-video p {
    font-size: 1em;
  }
}
/* === FIN ESTILOS SECCION DE VEHICULOS QUE PUEDO CONDUCIR === */


