*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

body{
    font-family:"Poppins", sans-serif;
    background:#f8f9fa;
    color:#333;
}

/* ===========================
   NAVBAR
=========================== */

.navbar{
    background:#fff;
    border-bottom:1px solid #ececec;
    min-height:85px;
    padding:12px 0;
    box-shadow:0 5px 18px rgba(0,0,0,.06);
    transition:all .35s ease;
}

.navbar-brand img{
    transition:all .35s ease;
}

.navbar-brand:hover img{
    transform:scale(1.04);
}

.navbar-nav{
    gap:12px;
}

.navbar-nav .nav-link{
    position:relative;
    font-size:1rem;
    font-weight:600;
    color:#2d2d2d;
    margin:0 10px;
    padding:8px 4px;
    letter-spacing:.3px;
    transition:color .3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active{
    color:#8B5A2B;
}

.navbar-nav .nav-link::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:0;
    height:2px;
    background:#8B5A2B;
    transition:width .3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after{
    width:100%;
}

.navbar.scrolled{
    min-height:70px;
    padding:6px 0;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
}

.navbar.scrolled .navbar-brand img{
    height:60px;
}

/* ===========================
   TOP BAR
=========================== */

.top-bar{
    background:#5b3a1d;
    color:white;
    font-size:.9rem;
    padding:8px 0;
}

.top-bar .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.top-contact{
    display:flex;
    align-items:center;
}

.top-contact i{
    margin-right:6px;
}

.top-social{
    display:flex;
    gap:18px;
    font-size:1rem;
}

.top-social a{
    color:white;
    text-decoration:none;
}

.top-social i{
    cursor:pointer;
    transition:.3s;
}

.top-social i:hover{
    color:#d6b07b;
}

header{
    position:sticky;
    top:0;
    z-index:1000;
}

/* ===========================
   BOTONES
=========================== */

.btn-presupuesto{
    background:#8B5A2B;
    color:white;
    padding:12px 28px;
    border-radius:50px;
    text-decoration:none;
    font-weight:600;
    font-size:.95rem;
    box-shadow:0 8px 20px rgba(139,90,43,.18);
    transition:all .3s ease;
    cursor:pointer;
    border:none;
}

.btn-presupuesto:hover{
    background:#6f4521;
    color:white;
    transform:translateY(-3px);
    box-shadow:0 12px 28px rgba(139,90,43,.28);
}

/* ===========================
   LOGIN
=========================== */

.login-link{
    display:flex;
    align-items:center;
    gap:8px;
    text-decoration:none;
    color:#2d2d2d;
    font-weight:500;
    transition:.3s;
}

.login-link i{
    font-size:1.35rem;
}

.login-link:hover{
    color:#8B5A2B;
}

/* ===========================
   CARRITO
=========================== */

.carrito-link{
    position:relative;
    color:#333;
    text-decoration:none;
    font-size:1.7rem;
    transition:.3s;
}

.carrito-link:hover{
    color:#8B5A2B;
}

#contador-carrito{
    position:absolute;
    top:-8px;
    right:-10px;
    background:#dc3545;
    color:white;
    width:22px;
    height:22px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:.75rem;
    font-weight:700;
}

/* ===========================
   MAIN
=========================== */

main{
    min-height:100vh;
    background:#f8f9fa;
}

/* ===========================
   DETALLE PRODUCTO
=========================== */

.detalle-producto{
    padding:60px 0;
}

/*
   ESTE ES EL CONTENEDOR PRINCIPAL
   DEL PRODUCTO
*/

#detalle-producto{
    width:100%;
    max-width:1200px;
    margin:0 auto;
    background:white;
    padding:40px;
    border-radius:20px;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
}

/*
   FILA PRINCIPAL
*/

#detalle-producto > .row{
    width:100%;
    margin:0;
    align-items:flex-start;
}

/*
   COLUMNA IZQUIERDA
*/

#detalle-producto > .row > .col-lg-6:first-child{
    padding-left:0;
    padding-right:25px;
}

/*
   COLUMNA DERECHA
*/

#detalle-producto > .row > .col-lg-6:last-child{
    padding-left:25px;
    padding-right:0;
}

/* ===========================
   GALERÍA
=========================== */

.galeria-producto{
    width:100%;
    display:flex;
    gap:20px;
    align-items:flex-start;
}

.miniaturas{
    width:85px;
    flex-shrink:0;
    display:flex;
    flex-direction:column;
    gap:15px;
}

.miniatura{
    width:85px;
    height:85px;
    object-fit:contain;
    border:2px solid #e5e5e5;
    border-radius:12px;
    cursor:pointer;
    transition:.3s;
    padding:5px;
    background:#fff;
}

.miniatura:hover{
    border-color:#8B5A2B;
}

.miniatura.activa{
    border-color:#8B5A2B;
}

.imagen-principal{
    flex:1;
    min-width:0;
    background:#fff;
    border-radius:18px;
    padding:25px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    display:flex;
    align-items:center;
    justify-content:center;
}

.producto-imagen{
    display:block;
    width:100%;
    height:450px;
    max-width:100%;
    object-fit:contain;
    border-radius:15px;
}

/* ===========================
   INFORMACIÓN PRODUCTO
=========================== */

.producto-marca{
    display:inline-block;
    background:#8B5A2B;
    color:white;
    padding:6px 15px;
    border-radius:30px;
    font-size:.85rem;
    margin-bottom:15px;
}

.producto-titulo{
    font-size:2.2rem;
    font-weight:700;
    margin-bottom:15px;
    line-height:1.25;
}

.producto-codigo{
    color:#777;
    margin-bottom:20px;
}

.producto-precio{
    color:#8B5A2B;
    font-size:2.5rem;
    font-weight:700;
}

.producto-stock{
    color:#198754;
    font-weight:600;
    margin-top:20px;
}

/* ===========================
   CANTIDAD
=========================== */

.cantidad-label{
    display:block;
    font-weight:600;
    margin-bottom:10px;
}

.cantidad-selector{
    display:flex;
    align-items:center;
    width:max-content;
    border:1px solid #ddd;
    border-radius:12px;
    overflow:hidden;
    margin-bottom:25px;
}

.btn-cantidad{
    width:45px;
    height:45px;
    border:none;
    background:#f5f5f5;
    transition:.3s;
    font-size:1rem;
}

.btn-cantidad:hover{
    background:#8B5A2B;
    color:white;
}

#cantidad{
    width:60px;
    height:45px;
    border:none;
    text-align:center;
    font-weight:600;
    outline:none;
}

/* ===========================
   ACCIONES
=========================== */

.acciones-producto{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.btn-comprar{
    background:#198754;
    color:white;
    border-radius:50px;
    padding:12px 30px;
    font-weight:600;
    border:none;
}

.btn-comprar:hover{
    background:#157347;
    color:white;
}

/* ===========================
   BENEFICIOS
=========================== */

.beneficios-producto{
    margin-top:35px;
    display:flex;
    flex-direction:column;
    gap:15px;
}

.beneficio-item{
    display:flex;
    align-items:center;
    gap:18px;
    padding:18px;
    background:#f8f9fa;
    border-radius:14px;
    border-left:5px solid #8B5A2B;
    transition:.3s;
}

.beneficio-item:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.beneficio-item i{
    font-size:2rem;
    color:#8B5A2B;
    flex-shrink:0;
}

.beneficio-item strong{
    display:block;
    font-size:1rem;
    color:#222;
}

.beneficio-item small{
    color:#777;
    font-size:.9rem;
}

/* ===========================
   DESCRIPCIÓN
=========================== */

.descripcion-producto{
    margin-top:2rem;
    padding:30px;
    background:#fff;
    border:1px solid #e9ecef;
    border-radius:12px;
}

.descripcion-producto h3{
    font-size:1.3rem;
    font-weight:700;
    color:#2c3e50;
    margin-bottom:1rem;
}

.descripcion-producto h3 i{
    color:#198754;
    margin-right:.5rem;
}

.descripcion-producto p{
    font-size:1.05rem;
    line-height:1.9;
    color:#555;
    margin:12px 0 0;
}

/* ===========================
   INFORMACIÓN
=========================== */

.info-producto{
    margin-top:2rem;
    padding:1.5rem;
    background:#fff;
    border:1px solid #e9ecef;
    border-radius:12px;

    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.info-producto h3{
    grid-column:1/-1;
    font-size:1.3rem;
    font-weight:700;
    color:#2c3e50;
    margin-bottom:1rem;
}

.info-producto h3 i{
    color:#198754;
    margin-right:.5rem;
}

.item-info{
    display:flex;
    align-items:center;
    gap:15px;
    padding:14px 18px;
    background:#f8f9fa;
    border-left:5px solid #8B5A2B;
    border-radius:12px;
    transition:.25s ease;
}

.item-info:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 18px rgba(0,0,0,.08);
}

.item-info i{
    font-size:1.8rem;
    color:#8B5A2B;
}

.item-info small{
    display:block;
    color:#777;
    font-size:.85rem;
    margin-bottom:3px;
}

.item-info p{
    margin:2px 0 0;
    font-size:1.1rem;
    font-weight:700;
    color:#212529;
}

/* ===========================
   PRODUCTOS RELACIONADOS
=========================== */

.productos-relacionados{
    margin-top:70px;
}

.productos-relacionados h2{
    font-size:2rem;
    font-weight:700;
    margin-bottom:30px;
}

#listaRelacionados .producto-card{
    display:flex;
    flex-direction:column;
    height:100%;
}

#listaRelacionados .producto-card img{
    width:100%;
    height:220px;
    object-fit:contain;
    padding:20px;
}

#listaRelacionados .producto-info{
    display:flex;
    flex-direction:column;
    flex:1;
    padding:20px;
}

#listaRelacionados .producto-botones{
    margin-top:auto;
}

#listaRelacionados .btn-detalle{
    display:block;
    width:100%;
    background:#8B5A2B;
    color:white !important;
    text-align:center;
    padding:12px;
    border-radius:10px;
    text-decoration:none;
    font-weight:600;
}

#listaRelacionados .btn-detalle:hover{
    background:#6f4521;
}

/* ===========================
   TARJETAS
=========================== */

.producto-card{
    border:none;
    border-radius:18px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.35s;
    height:100%;
}

.producto-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(0,0,0,.12);
}

.producto-card img{
    height:240px;
    width:100%;
    object-fit:cover;
}

.producto-info{
    padding:20px;
}

.producto-info h5{
    font-weight:600;
    margin-bottom:10px;
}

.precio{
    font-size:1.5rem;
    font-weight:700;
    color:#8B5A2B;
}

.stock{
    color:#28a745;
    font-weight:500;
}

.producto-botones{
    display:flex;
    gap:10px;
    margin-top:20px;
}

.btn-detalle{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:12px 20px;
    border:2px solid #8B5A2B;
    background:white;
    color:#8B5A2B;
    border-radius:10px;
    font-weight:600;
    text-decoration:none;
}

.btn-detalle:hover{
    background:#8B5A2B;
    color:white;
}

.btn-carrito{
    flex:1;
    background:#8B5A2B;
    color:white;
    border-radius:10px;
    font-weight:600;
    border:none;
}

.btn-carrito:hover{
    background:#6d421f;
    color:white;
}

/* ===========================
   POR QUÉ COMPRAR
=========================== */

.porque-comprar{
    margin-top:70px;
}

.porque-comprar h2{
    text-align:center;
    font-size:2rem;
    font-weight:700;
    margin-bottom:35px;
}

.ventaja-card{
    background:#fff;
    padding:30px 25px;
    border-radius:18px;
    text-align:center;
    height:100%;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.35s;
}

.ventaja-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(0,0,0,.12);
}

.ventaja-card i{
    font-size:3rem;
    color:#8B5A2B;
    margin-bottom:18px;
}

.ventaja-card h5{
    font-weight:700;
    margin-bottom:12px;
}

.ventaja-card p{
    color:#666;
    line-height:1.7;
    margin:0;
}

/* ===========================
   WHATSAPP
=========================== */

.whatsapp-float{
    position:fixed;
    right:25px;
    bottom:25px;
    width:65px;
    height:65px;
    border-radius:50px;
    background:#25D366;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    overflow:hidden;
    text-decoration:none;
    font-size:2rem;
    box-shadow:0 10px 25px rgba(0,0,0,.25);
    transition:all .4s ease;
    z-index:999;
    opacity:0;
    visibility:hidden;
    transform:translateY(30px);
}

.whatsapp-float span{
    max-width:0;
    opacity:0;
    white-space:nowrap;
    overflow:hidden;
    font-size:1rem;
    font-weight:600;
    transition:all .35s ease;
}

.whatsapp-float:hover{
    width:180px;
    justify-content:flex-start;
    padding-left:20px;
    color:white;
}

.whatsapp-float:hover span{
    max-width:100px;
    opacity:1;
}

.whatsapp-float.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.whatsapp-float i{
    flex-shrink:0;
    font-size:2rem;
    line-height:1;
}

/* ===========================
   FOOTER
=========================== */

.footer{
    background:#2b2b2b;
    color:#fff;
    padding:70px 0 30px;
}

.footer-logo{
    width:130px;
}

.footer-text{
    color:#cfcfcf;
    line-height:1.8;
}

.footer h5{
    margin-bottom:20px;
    font-weight:600;
}

.footer-links{
    list-style:none;
    padding:0;
}

.footer-links li{
    margin-bottom:12px;
    color:#cfcfcf;
}

.footer-links a{
    text-decoration:none;
    color:#cfcfcf;
    transition:.3s;
}

.footer-links a:hover{
    color:#d6b07b;
}

.footer-links i{
    color:#8B5A2B;
    margin-right:8px;
}

.footer-social{
    display:flex;
    gap:15px;
}

.footer-social a{
    width:45px;
    height:45px;
    border-radius:50%;
    background:#3a3a3a;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#fff;
    text-decoration:none;
    font-size:1.2rem;
    transition:.3s;
}

.footer-social a:hover{
    background:#8B5A2B;
    transform:translateY(-4px);
}

.footer hr{
    margin:45px 0 25px;
    border-color:#555;
}

.footer-copy{
    text-align:center;
    color:#bdbdbd;
    font-size:.9rem;
    line-height:1.8;
}

/* ===========================
   BREADCRUMB
=========================== */

.breadcrumb-producto{
    padding:25px 0 0;
}

.breadcrumb{
    margin-bottom:0;
}

.breadcrumb a{
    color:#8B5A2B;
    text-decoration:none;
}

/* ===========================
   MENSAJES
=========================== */

.mensaje-formulario{
    margin-top:20px;
    padding:14px;
    border-radius:12px;
    text-align:center;
    font-weight:600;
    display:none;
}

.mensaje-formulario.error{
    display:block;
    background:#ffe8e8;
    color:#c62828;
    border:1px solid #ef9a9a;
}

.mensaje-formulario.ok{
    display:block;
    background:#e8f8ec;
    color:#2e7d32;
    border:1px solid #81c784;
}

/* ==================================================
   TABLET
================================================== */

@media (max-width:991px){

    #detalle-producto{
        max-width:95%;
        padding:30px;
    }

    #detalle-producto > .row > .col-lg-6:first-child,
    #detalle-producto > .row > .col-lg-6:last-child{
        padding-left:0;
        padding-right:0;
    }

    .galeria-producto{
        margin-bottom:30px;
    }

}

/* ==================================================
   CELULAR
================================================== */

@media (max-width:767px){

    .top-contact span{
        font-size:.75rem;
    }

    .top-social{
        gap:10px;
    }

    #detalle-producto{
        max-width:100%;
        padding:20px;
        border-radius:15px;
    }

    .galeria-producto{
        flex-direction:column;
    }

    .miniaturas{
        width:100%;
        flex-direction:row;
        overflow-x:auto;
    }

    .miniatura{
        flex-shrink:0;
    }

    .producto-imagen{
        height:320px;
    }

    .producto-titulo{
        font-size:1.7rem;
    }

    .producto-precio{
        font-size:2rem;
    }

    .acciones-producto{
        flex-direction:column;
    }

    .acciones-producto .btn{
        width:100%;
    }

    .info-producto{
        grid-template-columns:1fr;
    }

    .info-producto h3{
        grid-column:auto;
    }

    .porque-comprar h2{
        font-size:1.6rem;
    }

}

/* ==================================================
   MUY CHICO
================================================== */

@media (max-width:480px){

    .top-contact{
        display:none;
    }

    .top-bar .container{
        justify-content:center;
    }

    .detalle-producto{
        padding:30px 10px;
    }

    #detalle-producto{
        padding:15px;
    }

    .imagen-principal{
        padding:15px;
    }

    .producto-imagen{
        height:280px;
    }

}