*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  overflow-x:hidden;
}

body{
  font-family:Arial, sans-serif;
  background:url('imagenes/honeycorb.webp');
  background-size:cover;
  background-attachment:fixed;
  color:#222;
}

/* HEADER */
.site-header{
  position:relative;
  background:transparent;
  z-index:3000;
}

/* HERO */
.hero{
  background:url('imagenes/header.webp') center center / cover no-repeat;
  min-height:72vh;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  padding:20px;
}

/* CAPA OSCURA SUAVE */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.12);
}

/* BOTON RASTREO */
.header-top{
  position:absolute;
  top:18px;
  right:18px;
  z-index:6;
}

.btn-rastrear{
  text-decoration:none;
  background:#1e3a8a;
  color:#fff;
  padding:10px 14px;
  border-radius:12px;
  font-size:14px;
  font-weight:bold;
  box-shadow:0 8px 18px rgba(0,0,0,.18);
}

/* LOGO CENTRADO PERFECTO */
.header-logo{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  z-index:5;
  width:min(92%,460px);
  max-width:460px;
  height:auto;
  display:block;
  filter:drop-shadow(0 8px 16px rgba(0,0,0,.25));
}

/* TITULOS */
h1,h2,h3{
  margin:10px 0;
}

.titulo-seccion{
  text-align:center;
}

/* PRODUCTOS */
.productos{
  padding:40px 20px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:20px;
  max-width:1200px;
  margin:auto;
}

/* CARD */
.card{
  background:#fff;
  border-radius:16px;
  padding:18px;
  text-align:center;
  box-shadow:0 8px 20px rgba(0,0,0,.12);
  transition:.25s;
}

.card:hover{
  transform:translateY(-6px);
}

.card img{
  width:100%;
  border-radius:12px;
}

/* BOTONES */
button{
  border:none;
  cursor:pointer;
  font-weight:bold;
  transition:.2s;
  padding:12px 16px;
  border-radius:12px;
}

button:hover{
  transform:translateY(-1px);
}

.btn-gold{
  background:linear-gradient(45deg,#FFD700,#F59E0B);
  color:#fff;
}

.btn-green{
  background:#22c55e;
  color:#fff;
}

.btn-blue{
  background:#3b82f6;
  color:#fff;
}

/* CARRITO */
.cart-float{
  position:fixed;
  right:18px;
  bottom:18px;
  width:62px;
  height:62px;
  border-radius:50%;
  background:#f59e0b;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
  box-shadow:0 10px 20px rgba(0,0,0,.25);
  z-index:4000;
}

.cart-count{
  position:absolute;
  top:-5px;
  right:-5px;
  background:#111;
  color:#fff;
  min-width:22px;
  height:22px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  padding:2px;
}

/* PANEL */
.cart-panel{
  position:fixed;
  top:0;
  right:-110%;
  width:360px;
  max-width:100%;
  height:100dvh;
  background:#fff;
  box-shadow:-8px 0 20px rgba(0,0,0,.18);
  padding:18px;
  transition:right .30s ease;
  z-index:3999;
  overflow-y:auto;
  overflow-x:hidden;
}

.cart-panel.open{
  right:0;
}

.cart-panel input,
.cart-panel select{
  width:100%;
  margin-bottom:10px;
  padding:12px;
  border:1px solid #ddd;
  border-radius:10px;
  font-size:15px;
  background:#fff;
}

.cart-panel button{
  width:100%;
  margin-top:8px;
}

/* SCROLL */
.cart-panel::-webkit-scrollbar{
  width:10px;
}

.cart-panel::-webkit-scrollbar-track{
  background:#f1f1f1;
  border-radius:10px;
}

.cart-panel::-webkit-scrollbar-thumb{
  background:#f59e0b;
  border-radius:10px;
}

/* ITEMS */
.cart-item{
  display:flex;
  justify-content:space-between;
  gap:10px;
  border-bottom:1px solid #eee;
  padding:10px 0;
}

.cart-info{
  flex:1;
  font-size:14px;
}

.cart-controls{
  display:flex;
  gap:4px;
  align-items:center;
}

.cart-controls button{
  width:auto;
  min-width:36px;
  padding:8px 10px;
  border-radius:8px;
  background:#f59e0b;
  color:#fff;
}

/* CHECK */
.fact-check{
  display:flex;
  align-items:center;
  gap:10px;
  margin:15px 0;
  font-size:14px;
}

.fact-check input{
  width:18px;
  height:18px;
  margin:0;
  flex-shrink:0;
}

.fact-check span{
  flex:1;
}

/* RESUMEN */
.resumen-box{
  background:#f8fafc;
  border:1px solid #e5e7eb;
  padding:12px;
  border-radius:12px;
  margin:14px 0;
}

.linea-total{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin:6px 0;
  font-size:14px;
}

.total-final{
  border-top:1px solid #ddd;
  padding-top:10px;
  margin-top:10px;
  font-size:17px;
}

.recargo-linea{
  color:#b45309;
}

/* INFO */
.franja-brand{
  background:#f59e0b;
  color:#1e3a8a;
  text-align:center;
  padding:12px;
  font-weight:bold;
}

.info-section{
  padding:40px 20px;
  background:#fff8e1;
  text-align:center;
}

.info-section p{
  max-width:800px;
  margin:auto;
  line-height:1.6;
}

/* FOOTER */
.footer{
  background:#0f172a;
  color:#fff;
  padding:30px;
  text-align:center;
}

/* MOBILE */
@media(max-width:768px){

  body{
    background-attachment:scroll;
  }

  .hero{
    min-height:52vh;
    padding:14px;
  }

  .header-top{
    top:10px;
    right:10px;
    left:10px;
    display:flex;
    justify-content:center;
  }

  .btn-rastrear{
    font-size:13px;
    padding:10px 12px;
  }

  .header-logo{
    width:min(88%,260px);
    max-width:260px;
  }

  .cart-panel{
    width:100%;
    right:-110%;
    padding-bottom:50px;
  }

  .grid{
    grid-template-columns:1fr;
  }

  button{
    padding:14px 16px;
    font-size:15px;
  }
}

.cart-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.close-cart{
  width:auto !important;
  padding:8px 10px;
  background:#ef4444;
  color:#fff;
}

.collapse-btn{
  width:100%;
  margin:10px 0;
  background:#e5e7eb;
  color:#111;
}

.linea-total{
  display:flex;
  justify-content:space-between;
  margin:6px 0;
}

.total-final{
  font-size:18px;
  border-top:1px solid #ddd;
  padding-top:8px;
  margin-top:8px;
}


/* COLAPSABLE ENVIO */
.collapse-head{
  background:#f59e0b;
  color:#fff;
  padding:14px;
  border-radius:12px;
  font-weight:bold;
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
  margin:14px 0 10px;
  user-select:none;
}

.collapse-head:hover{
  opacity:.95;
}

#flechaEnvio{
  transition:transform .3s ease;
}

#flechaEnvio.rotate{
  transform:rotate(180deg);
}

.collapse-body{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:max-height .45s ease, opacity .35s ease;
}

.collapse-body.open{
  max-height:1400px;
  opacity:1;
}

.linea-total{
  display:flex;
  justify-content:space-between;
  margin:6px 0;
}

.total-final{
  border-top:1px solid #ccc;
  margin-top:10px;
  padding-top:10px;
  font-size:18px;
}

.recargo-linea{
  font-size:14px;
  color:#444;
  margin-top:8px;
  padding:0 6px;
}

/* --- ESTILOS FOOTER --- */
.main-footer {
  background: #ffffff; /* Fondo limpio estilo Apple */
  padding: 60px 20px 20px;
  border-top: 1px solid #eaeaea;
  color: #333;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 15px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: #f59e0b; /* Color miel */
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  text-decoration: none;
  color: #666;
  transition: all 0.3s ease;
}

/* Efecto Conócenos (Link Effect) */
.link-effect:hover {
  color: #f59e0b;
  padding-left: 8px;
}

.shipping-info p {
  margin: 5px 0;
  font-size: 14px;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 13px;
  color: #999;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px; /* Cambiado de right a left */
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 35px;
}

@media (max-width: 768px) {
  .footer-container { grid-template-columns: 1fr; text-align: center; }
  .link-effect:hover { padding-left: 0; }
}

.footer-link{
  color: inherit;
  text-decoration: none;
}

.footer-link:hover{
  opacity: .85;
}


/* ===== SLIDER PRODUCTO ===== */
.product-slider{
  position:relative;
  width:100%;
  aspect-ratio:1/1;
  border-radius:14px;
  overflow:hidden;
  background:#f7f7f7;
  margin-bottom:14px;
}

.slide-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity .6s ease;
}

.slide-img.active{
  opacity:1;
}

.dots{
  position:absolute;
  bottom:10px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:6px;
  z-index:5;
}

.dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:rgba(255,255,255,.5);
}

.dot.active{
  background:#f5b301;
}