/* =========================
   RESET GENERAL
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: white;
  line-height: 1.6;

  /* FONDO ESTABLE */
  background-image: url('../img/fondo.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  min-height: 100vh;
  overflow-x: hidden;
}

/* =========================
   NAVBAR
========================= */

.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
}

.logo img {
  height: 60px;
}

.navbar nav {
  display: flex;
  align-items: center;
}

.navbar nav a {
  margin-left: 25px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  transition: 0.3s;
}

.navbar nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: white;
  transition: 0.3s ease;
}

.navbar nav a:hover::after {
  width: 100%;
}

/* ==================================================
BOTÓN SOPORTE WHATSAPP PRO
================================================== */
.whatsapp-support {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 18px;

  background: #25D366;
  color: #fff;

  border-radius: 30px;
  text-decoration: none;

  font-size: 14px;
  font-weight: bold;

  box-shadow: 0 8px 25px rgba(0,0,0,0.4);

  transition: all 0.3s ease;

  /* animación PRO */
  animation: whatsappPulse 2s infinite;
}

/* icono */
.whatsapp-support i {
  font-size: 20px;
}

/* hover */
.whatsapp-support:hover {
  transform: scale(1.1);
  background: #1ebe5d;
}

/* animación pulse */
@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37,211,102,0.6);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37,211,102,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37,211,102,0);
  }
}

/* =========================
   HERO
========================= */

.hero-index {
  height: 100vh;

  background:
  linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
  url('../img/camion1.png') center/cover no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-overlay h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.hero-overlay p {
  color: #e0e0e0;
  font-size: 20px;
  margin-bottom: 30px;
}

/* BOTÓN HERO */

.btn-hero {
  display: inline-block;
  padding: 14px 30px;
  border: 2px solid #009ee3;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.3s;
}

.btn-hero:hover {
  background: #009ee3;
}

/* =========================
   BOTONES GENERALES
========================= */

.btn {
  padding: 14px 28px;
  border: 2px solid white;
  background: transparent;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.3s;
}

.btn:hover {
  background: white;
  color: black;
}

/* =========================
   SECCIONES
========================= */

.section {
  padding: 100px 10%;
  text-align: center;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}

/* =========================
   CARDS
========================= */

.cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card {
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.4);
  width: 260px;
  backdrop-filter: blur(3px);
  border-radius: 12px;
}

/* =========================
   NOSOTROS
========================= */

.nosotros {
  padding: 100px 10%;
}

.contenido-nosotros {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.nosotros .texto {
  flex: 1;
}

.nosotros .texto h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.nosotros .texto p {
  font-size: 18px;
  line-height: 1.7;
}

.nosotros .imagen {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nosotros .imagen img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
}

/* =========================
   APP
========================= */

.app-section {
  padding: 100px 10%;
}

.app-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.app-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.app-image img {
  width: 100%;
  max-width: 220px;
  border-radius: 20px;
}

.app-info {
  flex: 1;
  max-width: 500px;
}

.app-info h2 {
  font-size: 38px;
  margin-bottom: 20px;
}

.app-info p {
  font-size: 18px;
  margin-bottom: 30px;
}

.btn-app {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: 0.3s;
}

.btn-app:hover {
  background: white;
  color: black;
}

/* =========================
   CONTACTO
========================= */

.contacto {
  padding: 100px 10%;
  text-align: center;
  background: linear-gradient(135deg, #004e92, #000428);
}

.contacto h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.contacto p {
  margin-bottom: 15px;
  font-size: 18px;
}

/* GRID CONTACTO */

.contacto-whatsapp {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.cartel-contacto {
  background: rgba(255,255,255,0.1);
  border: 2px solid #25D366;
  padding: 25px;
  border-radius: 12px;
}

.cartel-contacto p {
  margin-bottom: 20px;
}

/* BOTÓN WHATSAPP */

.btn-whatsapp {
  display: inline-block;
  padding: 14px 28px;
  background: #25D366;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
}

/* =========================
   LOGIN MODAL
========================= */

.login-modal{
  display:none;
  position:fixed;
  z-index:2000;
  left:0;
  top:0;
  width:100%;
  height:100%;

  background:rgba(0,0,0,0.65);
  backdrop-filter: blur(5px);

  justify-content:center;
  align-items:center;
}

.login-box{
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);

  padding:40px;
  border-radius:14px;
  width:340px;
  text-align:center;
  position:relative;

  box-shadow:0 10px 40px rgba(0,0,0,0.5);
}

.login-box h2{
  margin-bottom:25px;
  font-size:26px;
}

.login-box input{
  width:100%;
  padding:12px;
  margin-bottom:15px;

  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.2);
  border-radius:8px;

  color:white;
  font-size:14px;
}

.login-box input::placeholder{
  color:#bbb;
}

.btn-login{
  width:100%;
  padding:12px;

  border:2px solid white;
  background:transparent;

  color:white;
  font-weight:600;

  border-radius:8px;
  cursor:pointer;

  transition:0.3s;
}

.btn-login:hover{
  background:white;
  color:black;
}

.close-login{
  position:absolute;
  right:18px;
  top:10px;
  font-size:28px;
  cursor:pointer;
  color:white;
}

.close-login:hover{
  transform:scale(1.2);
}

/* RECUPERAR */

.recuperar{
  margin-top:15px;
  font-size:14px;
}

.recuperar a{
  color:#ccc;
  text-decoration:none;
}

.recuperar a:hover{
  text-decoration:underline;
}

/* ERROR LOGIN */

.error-login{
  background:#ff4d4d;
  color:white;
  padding:10px;
  margin-bottom:15px;
  border-radius:6px;
  font-size:14px;
}

/* =========================
   GUIAS CLIENTE
========================= */

.guias-container{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap:25px;
  margin-top:40px;
}

/* TARJETA GUIA */

.guia-card{

  padding:25px;

  border-radius:10px;

  background: linear-gradient(145deg,#e8f4ff,#ffffff);

  border:1px solid #cde4ff;

  transition:0.25s;

  box-shadow:0 4px 12px rgba(0,0,0,0.08);

}

/* HOVER */

.guia-card:hover{

  transform:translateY(-4px);

  border:1px solid #4aa3ff;

  box-shadow:0 8px 20px rgba(0,0,0,0.12);

}

/* TITULO GUIA */

.guia-card h3{

  font-size:20px;

  color:#0b4d88;

  margin-bottom:10px;

}

/* TEXTO */

.guia-card p{

  font-size:15px;

  color:#1f3f5b;

  margin-bottom:5px;

}

/* RESPONSIVE */

@media (max-width:768px){

  .guias-container{

    grid-template-columns:1fr;

  }

}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px){

  .navbar{
    flex-direction: column;
    gap: 10px;
    padding: 15px 5%;
  }

  .navbar nav{
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar nav a{
    margin:8px 12px;
  }

  .section{
    padding:80px 5%;
  }

  .contenido-nosotros{
    flex-direction:column;
    text-align:center;
    gap:30px;
  }

  .app-container{
    flex-direction:column;
    text-align:center;
    gap:40px;
  }

  .contacto-whatsapp{
    grid-template-columns:1fr;
  }

}

/* FIX MOBILE PARA FONDO */

@media (max-width:768px){
  body{
    background-attachment: scroll;
  }
}