/* ================= RESET ================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Segoe UI',sans-serif;
  background:#f4f6f9;
  color:#1e293b;
  padding-top:90px;
}

/* ================= HEADER ================= */

.header{
  position:fixed;
  width:100%;
  top:0;
  background:rgba(255,255,255,0.9);
  backdrop-filter:blur(12px);
  box-shadow:0 8px 30px rgba(0,0,0,0.05);
  z-index:1000;
}

.nav-container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 7%;
}

.logo{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:18px;
  color:#1e3a8a;
}

.logo img,
.logo-img{
  width:28px;
  height:28px;
  object-fit:contain;
}

.nav{
  display:flex;
  gap:30px;
}

.nav a{
  text-decoration:none;
  color:#1e293b;
  font-weight:500;
  transition:0.3s;
}

.nav a:hover{
  color:#2563eb;
}

.carrito-icono{
  position:relative;
  background:linear-gradient(135deg,#2563eb,#4f46e5);
  color:white;
  padding:12px 18px;
  border-radius:50px;
  cursor:pointer;
  transition:0.3s;
}

.carrito-icono:hover{
  transform:scale(1.08);
  box-shadow:0 10px 25px rgba(37,99,235,0.4);
}

.carrito-icono span{
  position:absolute;
  top:-6px;
  right:-6px;
  background:#ef4444;
  padding:4px 8px;
  border-radius:50%;
  font-size:12px;
}

/* ================= HERO ================= */

.hero{
  padding-top:110px;
  padding-bottom:60px;
  background:linear-gradient(135deg,#ffffff,#eef2ff);
}

.hero-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:50px;
  padding:0 7%;
}

.hero-texto{
  flex:1;
}

.hero-texto h1{
  font-size:46px;
  font-weight:800;
  line-height:1.1;
  margin-bottom:20px;
}

.hero-texto p{
  font-size:17px;
  color:#475569;
  margin-bottom:30px;
  max-width:500px;
}

.hero-botones a{
  padding:14px 28px;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
  margin-right:15px;
  transition:0.3s;
  display:inline-block;
}

.btn-principal{
  background:#2563eb;
  color:white;
}

.btn-principal:hover{
  background:#1d4ed8;
}

.btn-secundario{
  border:2px solid #2563eb;
  color:#2563eb;
}

.btn-secundario:hover{
  background:#2563eb;
  color:white;
}

.hero-datos{
  display:flex;
  gap:40px;
  margin-top:40px;
}

.hero-datos h3{
  font-size:22px;
  color:#2563eb;
}

.hero-datos span{
  font-size:14px;
  color:#64748b;
}

/* ================= SLIDER HERO ================= */

.slider{
  position:relative;
  width:100%;
  max-width:520px;
  height:420px;
  overflow:hidden;
  border-radius:20px;
  box-shadow:0 20px 50px rgba(0,0,0,0.25);
}

.slide{
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity 1s ease-in-out, transform 6s ease;
  transform:scale(1);
}

.slide.active{
  opacity:1;
  transform:scale(1.05);
}

/* ================= PRODUCTOS ================= */

.section-title{
  text-align:center;
  margin:60px 0 40px;
  font-size:32px;
}

.products{
  padding:60px 7%;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:25px;
}

.card{
  background:white;
  border-radius:15px;
  padding:20px;
  box-shadow:0 5px 20px rgba(0,0,0,0.05);
  transition:0.3s;
}

.card:hover{
  transform:translateY(-8px);
}

.card img{
  width:100%;
  height:200px;
  object-fit:contain;
  margin-bottom:15px;
}

.price{
  font-size:20px;
  font-weight:bold;
  color:#2563eb;
  margin:10px 0;
}

.colors{
  display:flex;
  gap:10px;
  margin:10px 0;
}

.color{
  width:20px;
  height:20px;
  border-radius:50%;
  cursor:pointer;
  border:1px solid #ccc;
}

.negro{background:black;}
.blanco{background:white;}
.marron{background:#6b3e26;}
.rojo{background:red;}

/* ================= CARRITO ================= */

.cart-panel{
  position:fixed;
  right:-400px;
  top:0;
  width:350px;
  height:100%;
  background:white;
  box-shadow:-5px 0 20px rgba(0,0,0,0.1);
  padding:20px;
  transition:0.4s;
  overflow-y:auto;
}

.cart-panel.active{
  right:0;
}

.total{
  margin-top:20px;
  font-weight:bold;
  font-size:18px;
}

/* ================= WHATSAPP ================= */


/* ================= RESPONSIVE ================= */

@media(max-width:768px){

  section{
    padding:40px 5%;
  }

  .products{
    grid-template-columns:1fr;
    padding:40px 5%;
  }

  .hero-container{
    flex-direction:column;
    text-align:center;
  }

  .slider{
    height:280px;
    margin-top:20px;
  }

  .section-title{
    font-size:24px;
  }

}
/* ================= FIX BOTONES ================= */

.btn{
  padding:10px 18px;
  border-radius:8px;
  border:none;
  cursor:pointer;
  font-weight:600;
  transition:0.3s;
  display:inline-block;
}

.btn-primary{
  background:#2563eb;
  color:white;
}

.btn-primary:hover{
  background:#1d4ed8;
  transform:translateY(-2px);
}

.btn-add{
  width:100%;
  margin-top:10px;
  padding:10px;
  background:linear-gradient(135deg,#2563eb,#4f46e5);
  color:white;
  border:none;
  border-radius:8px;
  font-weight:600;
  cursor:pointer;
  transition:0.3s;
}

.btn-add:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 20px rgba(37,99,235,0.4);
}

/* ================= FIX ESPACIADO SECCIONES ================= */

section{
  padding:60px 8%;
}

.section-title {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 60px;
    position: relative;
}

/* Línea decorativa elegante */
.section-title::after {
    content: "";
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #6366f1);
    display: block;
    margin: 15px auto 0;
    border-radius: 10px;
}

/* ================= MEJORA PRODUCTOS ================= */

.products{
  margin-top:40px;
}

.card{
  padding:25px;
  border-radius:18px;
  transition:0.4s;
}

.card h3{
  font-size:16px;
  margin-bottom:8px;
}

.card:hover{
  transform:translateY(-10px);
  box-shadow:0 20px 40px rgba(0,0,0,0.12);
}

/* ===== SECCIÓN ¿POR QUÉ ELEGIRNOS? FIXED ===== */

.info-section{
  padding:60px 8%;
  background:linear-gradient(135deg,#eef2ff,#f8fafc);
  text-align:center;
}

.info-section h2{
  font-size:32px;
  margin-bottom:30px;
  font-weight:800;
  color:#1e293b;
}

.info-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:30px;
}
.info-card{
  background:white;
  padding:50px 30px;
  border-radius:25px;
  box-shadow:0 20px 60px rgba(0,0,0,0.08);
  transition:all 0.4s ease;
  position:relative;
  overflow:hidden;
}

/* Glow tecnológico al fondo */
.info-card::before{
  content:"";
  position:absolute;
  width:200%;
  height:200%;
  background:radial-gradient(circle at center, rgba(37,99,235,0.15), transparent 70%);
  top:-50%;
  left:-50%;
  transform:scale(0);
  transition:0.5s ease;
}

.info-card:hover::before{
  transform:scale(1);
}

.info-card:hover{
  transform:translateY(-15px);
  box-shadow:0 35px 80px rgba(37,99,235,0.25);
}

/* Icono */
.info-card .icon{
  width:70px;
  height:70px;
  margin:0 auto 20px auto;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
  border-radius:50%;
  background:linear-gradient(135deg,#2563eb,#4f46e5);
  color:white;
  transition:0.4s;
}

.info-card:hover .icon{
  background:linear-gradient(135deg,#22c55e,#16a34a);
  transform:rotate(8deg) scale(1.1);
}

.info-card h3{
  font-size:20px;
  margin-bottom:15px;
  font-weight:700;
  color:#1e293b;
}

.info-card p{
  font-size:14px;
  color:#64748b;
  line-height:1.6;
}

/* ===== CONTACTO PRO CLEAN ===== */

.contact-section{
  padding:70px 6%;
  background:linear-gradient(135deg,#eef2ff,#f8fafc);
  text-align:center;
}

.contact-box{
  max-width:850px;
  margin:auto;
  background:white;
  padding:55px 40px;
  border-radius:25px;
  box-shadow:0 25px 70px rgba(0,0,0,0.08);
  position:relative;
  overflow:hidden;
}

/* Glow elegante */
.contact-box::before{
  content:"";
  position:absolute;
  width:400px;
  height:400px;
  background:radial-gradient(circle, rgba(37,99,235,0.12), transparent 70%);
  top:-150px;
  right:-150px;
}

.contact-box h3{
  font-size:26px;
  font-weight:800;
  margin-bottom:15px;
  color:#1e293b;
}

.contact-box p{
  font-size:16px;
  color:#64748b;
  margin-bottom:30px;
}

/* Botón principal */
.contact-btn{
  display:inline-block;
  padding:16px 40px;
  background:linear-gradient(135deg,#2563eb,#4f46e5);
  color:white;
  font-weight:700;
  border-radius:12px;
  text-decoration:none;
  transition:0.35s ease;
  box-shadow:0 10px 30px rgba(37,99,235,0.3);
}

.contact-btn:hover{
  transform:translateY(-5px);
  box-shadow:0 20px 40px rgba(37,99,235,0.45);
}

/* Texto inferior */
.contact-footer{
  margin-top:25px;
  font-size:14px;
  color:#94a3b8;
}

/* Responsive */
@media(max-width:768px){
  .contact-box{
    padding:40px 25px;
  }

  .contact-box h3{
    font-size:22px;
  }

  .contact-btn{
    width:100%;
  }
}

/* ================= HERO MEJOR ESPACIADO ================= */


/* ================= RESPONSIVE FIX ================= */

@media(max-width:768px){

  section{
    padding:60px 5%;
  }

  .section-title{
    font-size:26px;
  }

  .products{
    grid-template-columns:1fr;
  }

}
/* ===== BOTÓN AÑADIR PRO TECNO ===== */

.card button,
.btn-add{
  width:100%;
  margin-top:12px;
  padding:12px;
  border:none;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
  background:linear-gradient(135deg,#2563eb,#4f46e5);
  color:white;
  transition:all 0.35s ease;
  position:relative;
  overflow:hidden;
}

.card button:hover,
.btn-add:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 25px rgba(37,99,235,0.45);
}

.card button::before{
  content:"";
  position:absolute;
  width:100%;
  height:100%;
  top:0;
  left:-100%;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,0.4),transparent);
  transition:0.5s;
}

.card button:hover::before{
  left:100%;
}
/* ===== STEPS TECNO ===== */

.steps{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:20px;
  justify-content:center;
  margin-top:20px;
}

.step-card{
  padding:20px;
  border-radius:12px;
  text-align:center;
}

.step-card span{
  display:inline-block;
  background:linear-gradient(135deg,#2563eb,#4f46e5);
  color:white;
  width:45px;
  height:45px;
  line-height:45px;
  border-radius:50%;
  font-weight:bold;
  margin-bottom:15px;
  transition:0.3s;
}

.step-card:hover{
  transform:scale(1.08);
  box-shadow:0 25px 60px rgba(79,70,229,0.3);
}

.step-card:hover span{
  background:linear-gradient(135deg,#22c55e,#16a34a);
}

/* Ajuste entre secciones */

.info-section + .info-section{
  padding-top:70px;
}
.contact-section {
    padding: 60px 20px 70px 20px;
    background: linear-gradient(to bottom, #f8fafc, #eef2f7);
}

.contact-box{
  padding:40px;
}
@media (max-width:768px){

  section{
    padding:40px 5%;
  }

  .steps{
    grid-template-columns:1fr 1fr;
  }

  .features{
    grid-template-columns:1fr;
  }

  .step-card{
    font-size:14px;
  }

}
@media (max-width:480px){
  .steps{
    grid-template-columns:1fr;
  }
}
/* ===== FIX ESPACIO GLOBAL ===== */

section{
  padding:60px 8%;
  margin:0;
}

section + section{
  margin-top:0;
}
/* ===== ESPACIADO GLOBAL COMPACTO ===== */

section{
  padding:45px 6%;
}

.section-title{
  margin-bottom:25px;
  font-size:28px;
}

/* ===== PRODUCTOS MÁS COMPACTOS ===== */

.products{
  padding:40px 6%;
  gap:20px;
}

.card{
  padding:18px;
  border-radius:14px;
}

.card img{
  height:170px;
  margin-bottom:10px;
}

.price{
  font-size:18px;
  margin:8px 0;
}

/* ===== ¿POR QUÉ ELEGIRNOS? COMPACTO ===== */

.info-section{
  padding:50px 6%;
}

.info-grid{
  gap:25px;
}

.info-card{
  padding:30px 20px;
  border-radius:18px;
}

.info-card .icon{
  width:55px;
  height:55px;
  font-size:22px;
  margin-bottom:15px;
}

/* ===== STEPS (CÓMO COMPRAR) MÁS PEQUEÑO ===== */

.steps{
  gap:15px;
  margin-top:10px;
}

.step-card{
  padding:15px;
  font-size:14px;
}

.step-card span{
  width:38px;
  height:38px;
  line-height:38px;
  font-size:14px;
  margin-bottom:10px;
}

/* ===== CONTACTO MÁS LIMPIO ===== */

.contact-section {
    position: relative;
    padding: 80px 20px;
    background: #0f172a;
    overflow: hidden;
}

.contact-box{
  padding:30px;
  border-radius:18px;
}

/* ===== HERO MÁS AJUSTADO ===== */

.hero{
  padding-top:110px;
  padding-bottom:50px;
}

/* ===== RESPONSIVE ULTRA LIMPIO ===== */

@media(max-width:768px){

  section{
    padding:35px 5%;
  }

  .products{
    padding:30px 5%;
  }

  .section-title{
    font-size:22px;
  }

  .card{
    padding:15px;
  }

  .info-card{
    padding:25px 15px;
  }

}

/* ===== HERO CON FONDO PROFESIONAL ===== */

.hero {
    position: relative;
    background-image: url("../img/IMAGEN\ DE\ HERO\ 3.png"); /* <-- Cambia por el nombre real */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Oscurece ligeramente para que el texto se vea premium */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.55) 40%,
        rgba(0,0,0,0.3) 70%,
        rgba(0,0,0,0.1) 100%
    );
    z-index: 1;
}

/* Asegura que el contenido esté encima del fondo */
.hero-container {
    position: relative;
    z-index: 2;
}

/* Mejora visual del texto sobre fondo oscuro */
.hero-texto h1,
.hero-texto p,
.hero-datos,
.hero-datos h3,
.hero-datos span {
    color: #ffffff;
}
/* ===== COLORES PRO ===== */

.colors {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.color {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

/* Efecto hover elegante */
.color:hover {
    transform: scale(1.1);
}

/* Color activo */
.color.active {
    border: 2px solid #2563eb; /* azul elegante */
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

/* Colores reales */
.negro { background: #000; }
.blanco { background: #f5f5f5; border: 1px solid #ccc; }
.marron { background: #6b4f3b; }
.rojo { background: #b91c1c; }

.card img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
/* ===== MEJORA SECCIÓN PRODUCTOS ===== */

.products {
    padding: 80px 40px;
    background: #f8fafc;
}
/* ================= FIX DEFINITIVO ESPACIADO ENTRE SECCIONES ================= */

/* Unificamos el padding global */
section{
  padding:50px 6% !important;
  margin:0 !important;
}

/* Eliminamos separación extra entre secciones */
section + section{
  margin-top:0 !important;
}

/* Ajuste productos */
.products{
  padding:50px 6% !important;
}

/* Ajuste sección info */
.info-section{
  padding:50px 6% !important;
}

/* Ajuste contacto */
.contact-section {
    padding: 60px 20px 70px 20px;
    background: linear-gradient(to bottom, #f8fafc, #eef2f7);
}

/* Ajuste títulos */
.section-title{
  margin:0 0 35px 0 !important;
}
/* ===== RESET DE ESPACIADO EXCESIVO ===== */

section,
.info-section,
.contact-section,
.products{
  margin:0 !important;
  padding:50px 8% !important; /* antes estaba muy alto */
}

/* Elimina espacios dobles entre secciones */
section + section{
  margin-top:0 !important;
}

/* Reduce separación de títulos */
.section-title{
  margin-top:0 !important;
  margin-bottom:30px !important;
}

/* Quita márgenes innecesarios de contenedores internos */
.container,
.info-container,
.contact-container{
  margin:0 auto !important;
}

/* Elimina saltos invisibles */
section br{
  display:none;
}
.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: "";
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg,#2563eb,#1e3a8a);
    display: block;
    margin: 12px auto 0 auto;
    border-radius: 5px;
}
#contacto .section-title {
    margin-bottom: 30px;
}
#contacto {
    margin-top: 40px;
}
.contact-box {
    max-width: 750px;
    margin: 0 auto;
    padding: 50px 40px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s ease;
}

.contact-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.12);
}
.contact-box h3 {
    font-size: 26px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #0f172a;
}

.contact-box p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 30px;
}
.contact-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    background: linear-gradient(135deg,#2563eb,#1e3a8a);
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37,99,235,0.3);
}

.contact-section::before {
    content: "";
    position: absolute;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.35) 0%, transparent 70%);
    z-index: 0;
}

.contact-section::after {
    content: "";
    position: absolute;
    bottom: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.35) 0%, transparent 70%);
    z-index: 0;
}

/* ===== CONTACTO PREMIUM PRO ===== */

.contact-section {
    position: relative;
    padding: 70px 20px;
    background: radial-gradient(circle at 20% 20%, rgba(37,99,235,0.25), transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(59,130,246,0.25), transparent 40%),
                #0b1120;
    overflow: hidden;
}

.contact-section .section-title {
    color: #ffffff;
    margin-bottom: 40px;
}

.contact-section .section-title::after {
    background: linear-gradient(90deg,#2563eb,#3b82f6);
}

.contact-box {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
    padding: 50px 35px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    box-shadow: 0 0 40px rgba(37,99,235,0.15);
}

.contact-box h3 {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.contact-box p {
    color: #cbd5e1;
    margin-bottom: 30px;
}

.contact-btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 12px;
    background: linear-gradient(135deg,#2563eb,#3b82f6);
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(59,130,246,0.6);
}

.contact-footer {
    margin-top: 25px;
    font-size: 14px;
    color: #94a3b8;
}
@media (max-width: 768px) {

    .hero {
        padding: 60px 20px;
    }

    .hero-texto h1 {
        font-size: 28px;
        text-align: center;
    }

    .hero-texto p {
        text-align: center;
    }

    .hero-botones {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .products {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 35px 20px;
    }

}
/* ===== HEADER MOBILE FIX ===== */

@media (max-width: 768px){

.header {
    padding: 12px 15px;
}

.nav-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo {
    font-size: 16px;
    text-align: center;
}

.logo img {
    height: 35px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.nav a {
    font-size: 14px;
}

.carrito-icono {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
}

}

/* ===== FIX HEADER ESPACIO SUPERIOR ===== */

/* Altura real del header en desktop */
body {
    padding-top: 90px;
}

/* Ajuste automático en móvil */
@media (max-width: 768px){

    body {
        padding-top: 140px; /* aumenta porque el nav ahora ocupa más alto */
    }

    .hero {
        padding-top: 40px; /* evita doble espacio */
    }

}

/* ===== BOTÓN FACEBOOK FLOTANTE ===== */

.facebook-float{
  position:fixed;
  bottom:90px; /* encima del WhatsApp */
  right:20px;
  width:60px;
  height:60px;
  background:linear-gradient(135deg,#1877f2,#0a58ca);
  color:white;
  display:flex;
  justify-content:center;
  align-items:center;
  border-radius:50%;
  font-size:28px;
  font-weight:bold;
  text-decoration:none;
  box-shadow:0 8px 20px rgba(24,119,242,0.4);
  transition:0.3s ease;
  z-index:999;
}

.facebook-float:hover{
  transform:translateY(-5px) scale(1.05);
  box-shadow:0 12px 25px rgba(24,119,242,0.6);
}

/* ===== CART OVERLAY ===== */
.cart-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.5);
  backdrop-filter:blur(4px);
  opacity:0;
  visibility:hidden;
  transition:0.3s;
  z-index:999;
}

.cart-overlay.active{
  opacity:1;
  visibility:visible;
}

/* ===== CART PANEL ===== */
.cart-panel{
  position:fixed;
  top:0;
  right:-400px;
  width:380px;
  height:100%;
  background:#0f172a;
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition:0.4s ease;
  z-index:1000;
  box-shadow:-10px 0 40px rgba(0,0,0,0.4);
}

.cart-panel.active{
  right:0;
}

/* HEADER */
.cart-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px;
  border-bottom:1px solid rgba(255,255,255,0.1);
}

.close-cart{
background:transparent;
border:1px solid rgba(255,255,255,0.2);
color:#fff;
width:30px;
height:30px;
border-radius:6px;
cursor:pointer;
transition:0.3s;
}

.close-cart:hover{
background:#ef4444;
}

/* ITEMS */
.cart-items{
  list-style:none;
  padding:20px;
  overflow-y:auto;
  flex:1;
}

.cart-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:15px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,0.1);
}

.cart-item button{
  background:#ef4444;
  border:none;
  color:white;
  padding:4px 8px;
  border-radius:6px;
  cursor:pointer;
}

/* FOOTER */
.cart-footer{
  padding:20px;
  border-top:1px solid rgba(255,255,255,0.1);
}

.cart-total{
  font-size:18px;
  font-weight:600;
  margin-bottom:15px;
}

.checkout-btn{
  width:100%;
  padding:12px;
  border:none;
  border-radius:10px;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  color:white;
  font-weight:600;
  cursor:pointer;
  transition:0.3s;
}

.checkout-btn:hover{
  transform:scale(1.05);
}
/* ===== CART PANEL ===== */

.cart-panel{
  position:fixed;
  right:-420px;
  top:0;
  width:400px;
  height:100%;
  background:#ffffff;
  display:flex;
  flex-direction:column;
  transition:0.4s;
  z-index:1000;
  box-shadow:-10px 0 40px rgba(0,0,0,0.2);
}

.cart-panel.active{
  right:0;
}

.cart-header{
  padding:20px;
  display:flex;
  justify-content:space-between;
  border-bottom:1px solid #eee;
}

.cart-items{
  flex:1;
  overflow-y:auto;
  padding:15px;
}

.cart-item{
  display:flex;
  align-items:center;
  margin-bottom:20px;
  gap:15px;
}

.cart-img{
  width:70px;
  height:70px;
  object-fit:cover;
  border-radius:8px;
}

.cart-info h4{
  font-size:14px;
  margin-bottom:5px;
}

.price-now{
  font-weight:700;
  color:#2563eb;
}

.quantity{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:5px;
}

.quantity button{
  width:28px;
  height:28px;
  border:none;
  background:#111;
  color:white;
  border-radius:6px;
  cursor:pointer;
}

.delete-btn{
  margin-left:auto;
  background:black;
  color:white;
  border:none;
  width:35px;
  height:35px;
  border-radius:50%;
  cursor:pointer;
}

.cart-summary{
  padding:20px;
  border-top:1px solid #eee;
}

.subtotal{
  font-size:18px;
  font-weight:600;
  margin-bottom:15px;
}

.cart-buttons{
  display:flex;
  gap:10px;
}

.btn-cerrar{
  flex:1;
  padding:12px;
  border:none;
  border-radius:10px;
  background:#000;
  color:white;
  cursor:pointer;
}

.btn-continuar{
  flex:1;
  padding:12px;
  border:none;
  border-radius:10px;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  color:white;
  font-weight:600;
  cursor:pointer;
}

.cart-item{
  display:flex;
  gap:15px;
  padding:15px 0;
  border-bottom:1px solid #eee;
  align-items:flex-start;
}

.cart-img{
  width:90px;
  height:90px;
  object-fit:cover;
  border-radius:10px;
  background:#f3f3f3;
}

.cart-info{
  flex:1;
}

.cart-info h4{
  font-size:14px;
  margin-bottom:5px;
  font-weight:600;
}

.cart-price{
  color:#2563eb;
  font-weight:600;
  margin-bottom:8px;
}

.cart-subtotal{
  margin-top:6px;
  font-weight:600;
  font-size:14px;
}

.quantity{
  display:flex;
  align-items:center;
  gap:10px;
}

.quantity button{
  width:32px;
  height:32px;
  border:none;
  background:#111;
  color:white;
  border-radius:8px;
  font-size:16px;
  cursor:pointer;
  transition:0.2s;
}

.quantity button:hover{
  background:#2563eb;
}

.delete-btn{
  background:#ef4444;
  color:white;
  border:none;
  width:40px;
  height:40px;
  border-radius:10px;
  cursor:pointer;
  transition:0.2s;
}

.delete-btn:hover{
  background:#dc2626;
}

/* ===== OVERLAY OSCURO TECNOLOGICO ===== */
.cart-overlay{
position:fixed;
inset:0;
background:rgba(0,0,0,0.75);
backdrop-filter:blur(6px);
opacity:0;
visibility:hidden;
transition:0.3s ease;
z-index:999;
}

.cart-overlay.active{
opacity:1;
visibility:visible;
}

/* ===== PANEL PREMIUM ===== */
.cart-panel{
position:fixed;
right:-450px;
top:0;
width:420px;
height:100vh;
background:linear-gradient(180deg,#0f172a,#0b1120);
color:#fff;
box-shadow:-5px 0 30px rgba(0,0,0,0.7);
transition:0.4s cubic-bezier(.77,0,.18,1);
z-index:1000;
display:flex;
flex-direction:column;
}

.cart-panel.active{
right:0;
}

/* HEADER */
.cart-header{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px;
border-bottom:1px solid rgba(255,255,255,0.1);
font-size:18px;
font-weight:600;
}

/* ITEMS */
.cart-items{
flex:1;
overflow-y:auto;
padding:20px;
}

.cart-item{
display:flex;
gap:15px;
align-items:center;
margin-bottom:25px;
padding-bottom:20px;
border-bottom:1px solid rgba(255,255,255,0.08);
}

.cart-img{
width:80px;
height:80px;
object-fit:cover;
border-radius:12px;
box-shadow:0 0 15px rgba(0,140,255,0.3);
}

/* INFO */
.cart-info h4{
font-size:14px;
margin-bottom:6px;
color:#e2e8f0;
}

.cart-price{
color:#3b82f6;
font-weight:600;
margin-bottom:10px;
}

/* BOTONES + Y - PREMIUM */
.quantity{
display:flex;
align-items:center;
gap:10px;
}

.quantity button{
width:32px;
height:32px;
border:none;
border-radius:8px;
background:linear-gradient(145deg,#1e293b,#0f172a);
color:#fff;
font-size:18px;
cursor:pointer;
transition:0.2s ease;
box-shadow:0 0 10px rgba(0,140,255,0.3);
}

.quantity button:hover{
background:#2563eb;
transform:scale(1.1);
}

/* DELETE BUTTON */
.delete-btn{
background:linear-gradient(145deg,#ef4444,#b91c1c);
border:none;
color:#fff;
padding:10px;
border-radius:10px;
cursor:pointer;
transition:0.3s;
}

.delete-btn:hover{
transform:scale(1.1);
box-shadow:0 0 15px rgba(255,0,0,0.6);
}

/* FOOTER */
.cart-footer{
padding:20px;
border-top:1px solid rgba(255,255,255,0.1);
background:#0b1120;
}

.cart-total{
font-size:18px;
font-weight:600;
margin-bottom:15px;
color:#38bdf8;
}

/* BOTONES FINALES */
.cart-actions{
display:flex;
gap:10px;
}

.btn-close{
flex:1;
background:#1e293b;
color:#fff;
border:none;
padding:12px;
border-radius:10px;
cursor:pointer;
transition:0.3s;
}

.btn-close:hover{
background:#334155;
}

.btn-checkout{
flex:1;
background:linear-gradient(90deg,#2563eb,#3b82f6);
color:#fff;
border:none;
padding:12px;
border-radius:10px;
cursor:pointer;
font-weight:600;
transition:0.3s;
}

.btn-checkout:hover{
box-shadow:0 0 20px rgba(59,130,246,0.6);
transform:translateY(-2px);
}

/* =====================
   EMPTY CART MODAL
===================== */

.empty-cart-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 9998;
}

.empty-cart-modal{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 9999;
}

.empty-cart-overlay.active,
.empty-cart-modal.active{
  opacity: 1;
  pointer-events: all;
}

.empty-cart-box{
  background: #fff;
  padding: 35px;
  border-radius: 16px;
  text-align: center;
  width: 90%;
  max-width: 380px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: fadeInScale 0.3s ease;
}

.empty-icon{
  font-size: 40px;
  margin-bottom: 10px;
}

.empty-cart-box h3{
  margin-bottom: 10px;
}

.empty-cart-box p{
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.empty-actions{
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-secondary{
  background: #eee;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-primary{
  background: #007bff;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-primary:hover{
  background: #0056b3;
}

@keyframes fadeInScale{
  from{
    transform: scale(0.9);
    opacity: 0;
  }
  to{
    transform: scale(1);
    opacity: 1;
  }
}


/* =====================
   PREMIUM TOAST
===================== */

.premium-toast{
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  width: 320px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-15px);
  transition: all 0.35s ease;
  z-index: 99999;
}

.premium-toast.show{
  opacity: 1;
  transform: translateY(0);
}

.toast-content{
  display: flex;
  gap: 15px;
  padding: 15px;
  align-items: center;
}

.toast-img{
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

.toast-info{
  flex: 1;
}

.toast-name{
  font-size: 14px;
  margin-top: 4px;
}

.toast-color{
  font-size: 13px;
  color: #555;
}

.toast-qty{
  font-size: 13px;
  margin: 4px 0;
}

.toast-btn{
  background: #007bff;
  border: none;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.toast-btn:hover{
  background: #0056b3;
}

/* Barra progreso */
.toast-progress{
  height: 4px;
  background: #007bff;
  width: 100%;
  animation: progressBar 4s linear forwards;
}

@keyframes progressBar{
  from{ width: 100%; }
  to{ width: 0%; }
}







/* ===== CONTENEDOR ===== */
.extra-option{
  margin: 16px 0;
  position: relative;
}

/* ===== TARJETA ===== */
.extra-option label{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(145deg,#ffffff,#f8fafc);
  border: 1.5px solid #e5e7eb;
  cursor: pointer;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  position: relative;
  overflow: hidden;
}

/* Hover elegante */
.extra-option label:hover{
  border-color: #6366f1;
  box-shadow: 0 12px 30px rgba(99,102,241,.12);
  transform: translateY(-3px);
}

/* Ocultar checkbox real */
.extra-option input{
  display: none;
}

/* ===== CHECK CIRCULAR PREMIUM ===== */
.extra-option label::before{
  content: "";
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  transition: all .3s ease;
  background: white;
}

/* Estado activo */
.extra-option label:has(input:checked){
  border-color: #6366f1;
  background: linear-gradient(145deg,#eef2ff,#f8faff);
  box-shadow: 0 15px 35px rgba(99,102,241,.18);
}

/* Check activado */
.extra-option label:has(input:checked)::before{
  background: #6366f1;
  border-color: #6366f1;
  box-shadow: 0 0 0 5px rgba(99,102,241,.15);
}

/* ===== PRECIO MÁS DESTACADO ===== */
.extra-option label{
  justify-content: space-between;
}

.extra-option label::after{
  content: "+ S/ 69.90";
  font-weight: 600;
  font-size: 14px;
  color: #1e40af;
  transition: all .3s ease;
}

/* Precio cambia cuando está activo */
.extra-option label:has(input:checked)::after{
  color: #16a34a;
  transform: scale(1.05);
}

/* Pequeño efecto brillo sutil */
.extra-option label:has(input:checked)::after{
  text-shadow: 0 0 8px rgba(22,163,74,.2);
}









.logo{
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
  color: #0f172a;
  letter-spacing: .3px;
}

.logo span{
  background: linear-gradient(90deg,#2563eb,#4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}




nav a{
  text-decoration: none;
  color: #334155;
  font-weight: 500;
  font-size: 14px;
  position: relative;
  transition: all .3s ease;
}
/* Línea minimalista tech */
nav a::after{
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg,#2563eb,#4f46e5);
  transition: width .3s ease;
}

nav a:hover{
  color: #111827;
}

nav a:hover::after{
  width: 100%;
}




.cart-icon{
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg,#2563eb,#4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 10px 25px rgba(37,99,235,.25);
}

.cart-icon:hover{
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(79,70,229,.35);
}

.cart-count{
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}




/* ============================= */
/* SOCIAL FLOAT PROFESIONAL */
/* ============================= */

.social-container{
  position: fixed;
  right: 25px;
  bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 999;
}

.social-float{
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  text-decoration: none;
  transition: all .3s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
}

.social-float:hover{
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(0,0,0,.35);
}

/* Colores */

.whatsapp{
  background: #25D366;
}

.facebook{
  background: #1877F2;
}

.instagram{
  background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4);
}

.tiktok{
  background: linear-gradient(45deg,#000,#25f4ee,#fe2c55);
}



/* ========================= */
/* MOBILE OPTIMIZACIÓN SOCIAL */
/* ========================= */

@media (max-width: 768px){

  .social-container{
    right: 15px;
    bottom: 15px;
  }

  .social-float{
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  /* Ocultar redes secundarias en móvil */
  .social-container a:not(.whatsapp){
    display: none;
  }

}




/* ========================= */
/* FAB SOCIAL MOBILE */
/* ========================= */

.social-container{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}

.fab-main{
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  transition: transform .3s ease;
}

.fab-main:hover{
  transform: scale(1.08);
}

.fab-options{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all .3s ease;
}

.fab-options.active{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.social-float{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.facebook{ background: #1877F2; }
.instagram{ background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4); }
.tiktok{ background: #000; }

/* Desktop: mostrar todo normal */

@media (min-width: 769px){

  .fab-options{
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }






}/* SOLO EN CELULAR */
@media (max-width:768px){

.mobile-social-bar{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  box-shadow: 0 -5px 20px rgba(0,0,0,.08);
  z-index: 9999;
}

.mobile-social-bar a{
  font-size: 22px;
  color: #333;
}

.mobile-social-bar a:nth-child(1){ color:#25D366; }
.mobile-social-bar a:nth-child(2){ color:#1877F2; }
.mobile-social-bar a:nth-child(3){ color:#E1306C; }
.mobile-social-bar a:nth-child(4){ color:#000; }

/* Para que no tape contenido */
body{
  padding-bottom:70px;
}

}


@media (max-width:768px){

.social-container{
  bottom: 90px; /* lo subimos */
  right: 15px;
}

.social-float{
  width: 45px;
  height: 45px;
  font-size: 20px;
}

}



/* ============================= */
/* OCULTAR EN CELULAR */
/* ============================= */

.social-desktop{
  display: none;
}

/* ============================= */
/* SOLO DESKTOP */
/* ============================= */

@media (min-width: 769px){

  .social-desktop{
    display: flex;
    position: fixed;
    right: 25px;
    bottom: 28px;
    flex-direction: column;
    gap: 18px;
    z-index: 9999;
  }

  .social-float{
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    transition: all .3s ease;
  }

  .social-float:hover{
    transform: translateY(-5px) scale(1.08);
  }

  .whatsapp{ background:#25D366; }
  .facebook{ background:#1877F2; }
  .instagram{ background:linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4); }
  .tiktok{ background:#000; }

}




/* SOLO DESKTOP */
@media (min-width: 769px){

  /* Ocultar redes cuando el carrito está abierto */
  #cart.active ~ .social-desktop,
  body.cart-open .social-desktop{
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all .3s ease;
  }

}



/* =========================
   CHECKOUT RESPONSIVE MOBILE
   ========================= */

@media (max-width: 768px){

  /* Contenedor principal */
  .checkout-container,
  .finalizar-container,
  .checkout-grid{
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
    padding: 15px;
  }

  /* Tarjetas */
  .checkout-card,
  .checkout-box,
  .resumen,
  .datos{
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 18px;
    padding: 18px;
  }

  /* Producto dentro del pedido */
  .checkout-product,
  .pedido-item{
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .checkout-product img,
  .pedido-item img{
    width: 70px;
    height: 70px;
    border-radius: 12px;
  }

  /* Inputs */
  .checkout-card input,
  .checkout-card select,
  .checkout-card textarea{
    width: 100%;
    font-size: 16px; /* evita zoom en iPhone */
  }

  /* Botón comprar */
  .btn-checkout,
  .checkout-btn{
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 12px;
  }

  /* Título */
  .checkout-title{
    font-size: 22px;
    text-align: center;
  }

}



/* =========================
   CHECKOUT PREMIUM MOBILE
   ========================= */

@media (max-width: 768px){

  body{
    background: #f5f7fb;
  }

  /* CONTENEDOR GENERAL */
  .checkout-container,
  .finalizar-container,
  .checkout-grid{
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
    padding: 16px;
  }

  /* TARJETAS */
  .checkout-card,
  .resumen,
  .datos{
    width: 100% !important;
    border-radius: 20px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  }

  /* TITULOS */
  .checkout-title,
  .checkout-card h2{
    font-size: 20px;
    text-align: center;
    margin-bottom: 10px;
  }

  /* PRODUCTO */
  .checkout-product,
  .pedido-item{
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .checkout-product img,
  .pedido-item img{
    width: 70px;
    height: 70px;
    border-radius: 14px;
    object-fit: cover;
  }

  /* FORMULARIO */
  .checkout-card input,
  .checkout-card select,
  .checkout-card textarea{
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e3e6ee;
    font-size: 16px;
    margin-bottom: 12px;
  }

  /* BOTON FIJO ABAJO */
  .checkout-footer,
  .checkout-actions{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 14px 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 9999;
  }

  .btn-checkout,
  .checkout-btn{
    width: 100%;
    padding: 15px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
  }

  /* ESPACIO PARA QUE NO LO TAPE */
  .checkout-container{
    padding-bottom: 90px;
  }

  /* ANIMACION SUAVE */
  .checkout-card{
    animation: fadeUp .4s ease;
  }

  @keyframes fadeUp{
    from{
      opacity: 0;
      transform: translateY(20px);
    }
    to{
      opacity: 1;
      transform: translateY(0);
    }
  }

}