/* =========================
   🎨 BOTONES
========================= */
.btn-ficha{
    background-color: #D4AF37 !important; /* color de fondo */
    border-color: #4CAF50 !important;     /* borde */
    color: white !important;              /* texto */
}

.btn-ficha:hover{
    background-color: #9CA3AF !important;
    border-color: #45a049 !important;
}
.btn-compra{
    background-color:#2fe578 !important; /* color de fondo */
    border-color: #4CAF50 !important;     /* borde */
    color: white !important;              /* texto */
}

.btn-compra:hover{
    background-color: #37bad4 !important;
    border-color: #45a049 !important;
}

/* =========================
   🎞️ SLIDER
========================= */
.slide-box{
    overflow: hidden;
    border-radius: 12px;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-img{
    max-height: 450px;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.slide-out{
    transform: translateX(-60px);
    opacity: 0;
}

.slide-in{
    transform: translateX(60px);
    opacity: 0;
}

.zoom-wrapper{
    position: relative;
    z-index: 1;
}

.thumb-img{
    position: relative;
    z-index: 5;
    cursor: pointer;
}

.thumb-img:hover{
    transform: scale(1.08);
}

/* =========================
   📦 MEGAMENU
========================= */

@media (min-width: 992px) {
    .has-megamenu { position: static !important; }
    .megamenu { left: 0; right: 0; width: 100%; padding: 20px; }
}

/* =========================
   🛒 CARRITO
========================= */

.carrito{
    background: transparent;
    border: 2px solid #00c853;
    color: #00c853;
    border-radius: 30px;
    padding: 6px 12px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-right: 10px; /* separación del menú */
}

.carrito:hover{
    background: #00c853;
    color: white;
}

.carrito-badge{
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 50%;
    background: red;
    color: white;
}

/* =========================
   📦 OFFCANVAS
========================= */

.offcanvas-header {
    border-bottom: 1px solid #ddd;
}

.offcanvas-body {
    padding: 15px;
    overflow-y: auto;
}

.offcanvas-end {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .offcanvas-end { width: 350px; }
}

/* =========================
   🔍 BUSCADOR (GLOBAL)
========================= */
.buscador{
    display: flex;
    width: 100%;
}

.buscador input{
    width: 100%;
}

.buscador button{
    white-space: nowrap;
}

/* 🔥 SEPARACIÓN EN ESCRITORIO */
@media (min-width: 992px){
    form[role="search"]{
        width: 800px; /* 🔥 aquí ajustas el tamaño */
    }

    form[role="search"] input{
        width: 100%;
    }
    .navbar-nav{
        gap: 20px;
    }

    form input{
        width: 300px;
    }
}

/* 📱 MÓVIL */
@media (max-width: 991px){

    /* 🛒 + ☰ ARRIBA */
    .carrito{
        order: 1;
        margin-left: auto;
    }

    .toggler{
        order: 2;
    }

    /* 🔍 BUSCADOR */
    .buscador{
        order: 3;
        width: 100%;
        margin-top: 10px;
}

    .buscador input{
        width: 100%;
    }
}
/* =========================
   🔧 GENERALES
========================= */
.toggler{
    margin-left: 5px;
}

.form-control:focus {
    border-color: #00c853;
    box-shadow: 0 0 0 0.2rem rgba(0,200,83,0.25);
}

.is-invalid {
    border-color: #dc3545;
}

.social-float-container {
    position: fixed;
    right: 8px;
    bottom: 25px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;

    z-index: 99999;
}

.social-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 28px;

    box-shadow: 0 6px 20px rgba(0,0,0,.35);

    transition: .3s ease;

    position: relative;
}

.social-float::before{

    content:"";

    position:absolute;

    width:100%;
    height:100%;

    border-radius:50%;

    background:rgba(37,211,102,.45);

    z-index:-1;

    animation: whatsappPulse 2s infinite;
}

.social-float:hover {
    transform: scale(1.1);
}

.whatsapp-text{

    text-align:center;

    color:#fff;

    font-size:12px;

    font-weight:600;

    margin-top:8px;

    line-height:1.2;

    text-shadow:0 2px 6px rgba(0,0,0,.4);
}

/* Colores por red */
.fb { background: #1877f2; } /* Facebook */
.ig { background: #e4405f; } /* Instagram */
.wa { background: #25d366; } /* WhatsApp */
.tk { background: #000; } /* Tiktok */
.yt { background: #ff0000; } /* YouTube */

@keyframes whatsappPulse {

    0%{
        transform:scale(1);
        opacity:.8;
    }

    70%{
        transform:scale(1.6);
        opacity:0;
    }

    100%{
        transform:scale(1.6);
        opacity:0;
    }
}

/* =========================
   REDES NAVBAR
========================= */

.header-social{
    align-items:center !important;
    gap:10px !important;
    margin-right:15px;
}

.header-social-icon{

    width:30px !important;
    height:30px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    border-radius:6px !important;

    color:#fff !important;

    font-size:14px !important;

    text-decoration:none !important;

    transition:.3s ease;
}

/* Facebook */
.header-social-icon.fb{
    background:#1877f2 !important;
}

/* Instagram */
.header-social-icon.ig{
    background:#e4405f !important;
}

/* TikTok */
.header-social-icon.tk{
    background:#000 !important;
}

/* YouTube */
.header-social-icon.yt{
    background:#ff0000 !important;
}

.header-social-icon:hover{
    transform:translateY(-3px) scale(1.08);
    color:#fff !important;
}

/* MOBILE */

@media(max-width:768px){

 /* =========================
   REDES DENTRO DEL MENÚ MÓVIL
========================= */

.mobile-social{

    justify-content:center !important;

    gap:12px !important;

    margin-top:15px !important;

    padding-top:15px !important;

    border-top:1px solid rgba(255,255,255,.15);
}


    .header-social{
        gap:8px;
        margin-right:10px;
    }

    .header-social-icon{

        width:40px;
        height:40px;

        font-size:18px;
    }
}


/* BOTÓN WISHLIST */
.btn-wishlist{
    width: 45px;
    aspect-ratio: 1 / 1; /* 🔥 esto es la clave */
    border-radius: 70%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.95);
    border: none;
    font-size: 20px;
    color: #444;
    transition: all 0.25s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.btn-wishlist:hover{
    transform: scale(1.1);
    background: white;
}

.btn-wishlist.active{
    background: #ff4d4d;
    color: white;
}

.heart-float {
    position: absolute;
    color: #ff4d4d;
    font-size: 20px;
    animation: floatUp 0.8s ease forwards;
    pointer-events: none;
    z-index: 9999;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(1.5);
    }
}

/* animación click botón */
.btn-wishlist.clicked {
    transform: scale(1.2);
}

@media (max-width: 768px){
    .btn-wishlist{
        width: 38px;
        font-size: 16px;
    }
}

.btn-whatsapp{
    background: #25D366;
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 12px;
    border-radius: 10px;
    transition: 0.3s;
}

.btn-whatsapp:hover{
    background: #1ebe5d;
    transform: translateY(-2px);
}