:root{
  --red:#e30613;
  --black:#000;
  --white:#fff;
}

/* RESET */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Segoe UI', sans-serif;
}

html, body{
  overflow-x:hidden;
}

body{
  background:#fff;
  color:#111;
  line-height:1.5;
}

/* =========================
   TOP BAR
========================= */
.topbar{
  background:var(--black);
  color:#fff;
  text-align:center;
  padding:8px 12px;
  font-size:12px;
}

/* =========================
   HEADER
========================= */
.header{
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:15px 20px;
  gap:15px;
}

.logo img{
  height:80px;
}

.nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:15px;
}

.nav a{
  text-decoration:none;
  color:#000;
  font-size:14px;
  position:relative;
  transition:.3s;
}

.nav a::after{
  content:"";
  position:absolute;
  width:0;
  height:2px;
  background:var(--red);
  left:0;
  bottom:-4px;
  transition:.3s;
}

.nav a:hover{
  color:var(--red);
}

.nav a:hover::after{
  width:100%;
}

.cta-nav{
  background:var(--red);
  color:#fff !important;
  padding:6px 14px;
  border-radius:4px;
}

/* QR */
.qr{
  display:none;
}

/* =========================
   HERO
========================= */
.hero{
  height:75vh;
  background:url(img/hero.png) center/cover no-repeat;
  position:relative;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.6);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  color:#fff;
  padding:20px;
}

.hero-title{
  font-size:1.5rem;
  max-width:90%;
  animation:fadeUp 1.2s ease forwards;
  opacity:0;
}

@keyframes fadeUp{
  from{opacity:0; transform:translateY(30px);}
  to{opacity:1; transform:translateY(0);}
}

.btn-hero{
  margin-top:25px;
  background:var(--red);
  color:#fff;
  padding:14px 30px;
  text-decoration:none;
  font-weight:bold;
  border-radius:6px;
  transition:.3s;
}

.btn-hero:hover{
  background:#fff;
  color:var(--red);
  transform:scale(1.05);
}

/* =========================
   HERO SECOND (PRODUCTOS / EMPRESA)
========================= */
.hero-second{
  background:url('./img/fondo1.png') center/cover no-repeat;
  min-height:100vh;
  width:100%;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:20px 10px;
}

/* =========================
   HOME EMPRESA BLOQUE
========================= */
.empresa-home{
  background:#fff;
  padding:60px 20px;
}

.empresa-container{
  max-width:900px;
  margin:auto;
  text-align:center;
  padding:40px 20px;
}

.empresa-container h2{
  font-size:28px;
  margin-bottom:20px;
}

.empresa-container p{
  font-size:15px;
  line-height:1.6;
  margin-bottom:15px;
  color:#333;
}

.empresa-destacado{
  font-weight:bold;
  color:var(--red);
  margin-top:20px;
}

/* =========================
   EMPRESA HERO
========================= */
.empresa-hero{
  position:relative;
}

.empresa-overlay{
  background:rgba(0,0,0,0.65);
  width:100%;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 20px;
}

.empresa-wrapper{
  display:flex;
  flex-direction:column;
  gap:30px;
  max-width:1200px;
  margin:auto;
  align-items:center;
}

.empresa-img img{
  width:100%;
  max-width:450px;
  border-radius:10px;
  box-shadow:0 20px 40px rgba(0,0,0,0.5);
  transition:.4s;
}

.empresa-img img:hover{
  transform:translateY(-5px) scale(1.02);
}

.empresa-hero .empresa-texto{
  max-width:600px;
  text-align:center;
  color:#fff;
}

.empresa-hero .empresa-texto h2{
  font-size:26px;
  margin-bottom:15px;
  color:#fff;
}

.empresa-hero .empresa-texto p{
  font-size:15px;
  line-height:1.6;
  margin-bottom:12px;
  color:#eee;
}

/* =========================
   FOOTER
========================= */
.footer{
  background:var(--black);
  color:#fff;
  text-align:center;
  padding:25px 15px;
  font-size:13px;
}

/* =========================
   WHATSAPP
========================= */
.whatsapp{
  position:fixed;
  bottom:20px;
  right:20px;
  z-index:999;
  padding-bottom:env(safe-area-inset-bottom);
}

.whatsapp img{
  width:55px;
  transition:.3s;
}

.whatsapp img:hover{
  transform:scale(1.1);
}

/* =========================
   MODAL
========================= */
.modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.75);
  backdrop-filter:blur(4px);
  justify-content:center;
  align-items:center;
  padding:15px;
  z-index:1000;
}

.modal-content{
  background:#fff;
  padding:25px;
  width:100%;
  max-width:420px;
  border-radius:12px;
  max-height:85vh;
  overflow-y:auto;
}

.modal-content h2{
  text-align:center;
  margin-bottom:15px;
}

.modal-content input,
.modal-content textarea{
  width:100%;
  padding:10px;
  margin-top:5px;
  border:1px solid #ccc;
  border-radius:5px;
}

.modal-buttons{
  display:flex;
  gap:10px;
  margin-top:18px;
}

.btn-enviar{
  flex:1;
  background:var(--red);
  color:#fff;
  border:none;
  padding:10px;
  border-radius:5px;
}

.btn-cancelar{
  flex:1;
  background:#000;
  color:#fff;
  border:none;
  padding:10px;
  border-radius:5px;
}

/* =========================
   MENSAJE EXITO
========================= */
.mensaje-exito{
  display:none;
  position:fixed;
  top:20px;
  left:50%;
  transform:translateX(-50%);
  background:#28a745;
  color:#fff;
  padding:12px 20px;
  border-radius:5px;
  z-index:9999;
}

/* =========================
   DESKTOP
========================= */
@media(min-width:768px){

  .header{
    flex-direction:row;
    justify-content:space-between;
    padding:15px 5%;
  }

  .logo img{
    height:110px;
  }

  .nav{
    gap:25px;
  }

  .hero-title{
    font-size:2rem;
    max-width:800px;
  }

  .qr{
    display:block;
    height:90px;
  }

  .empresa-wrapper{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
  }

  .empresa-hero .empresa-texto{
    text-align:left;
    padding-left:40px;
  }

  .empresa-hero .empresa-texto h2{
    font-size:32px;
  }

}

/* =========================
   PRODUCTOS / SLIDER
========================= */

.productos{
  max-width:1400px;
  width:100%;
  margin:auto;
  display:flex;
  flex-direction:column;
  gap:35px;
}

/* SECCION */
.product-section{
  text-align:center;
  color:#fff;
}

.product-section h2{
  font-size:20px;
  margin-bottom:10px;
}

/* SLIDER */
.slider{
  position:relative;
  width:100%;
  max-width:600px;
  margin:0 auto;
  aspect-ratio:16/10;
  overflow:hidden;
  border-radius:8px;
  background:#f5f5f5;
}

/* WRAPPER (CLAVE) */
.slides-wrapper{
  overflow:hidden;
  width:100%;
  height:100%;
}

/* SLIDES */
.slides{
  display:flex;
  height:100%;
  transition: transform 0.4s ease;
}

/* IMAGENES */
.slides img{
  flex:0 0 100%;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  background:#fff;
}

/* BOTONES */
.slider-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:35px;
  height:35px;
  background:#000;
  color:#fff;
  border:none;
  cursor:pointer;
  z-index:10;
  opacity:0.85;
}

.prev{ left:5px; }
.next{ right:5px; }

/* DESCRIPCION */
.product-desc{
  margin-top:15px;
  max-width:650px;
  margin-left:auto;
  margin-right:auto;
  font-size:14px;
  line-height:1.5;
  color:#fff;
}