/* =====================================================
   MUEBLES & MÁS PERÚ
   ECOMMERCE PROFESIONAL
   Morado | Blanco | Dorado | Verde WhatsApp
===================================================== */

:root{
    --purple: #351044;
    --purple-dark: #260b32;
    --purple-main: #641b7c;
    --purple-light: #f5eff8;
    --gold: #d5ad55;
    --green: #08a746;
    --green-dark: #078638;
    --red: #df3038;
    --text: #28232c;
    --muted: #77717c;
    --border: #e9e4ec;
    --background: #f7f6f8;
    --white: #ffffff;
    --shadow: 0 5px 22px rgba(39,20,48,.07);
    --radius: 15px;
}

/* ================= GENERAL ================= */

*{
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.5;
}

a{
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea{
    font: inherit;
}

img{
    max-width: 100%;
}

.wrap{
    width: min(1280px, 94%);
    margin: auto;
}

/* ================= BARRA SUPERIOR ================= */





/* ================= ENCABEZADO ================= */





.search{
    display: flex;
    align-items: center;
    flex: 1;
    height: 49px;
    background: #f8f7f9;
    border: 1px solid #e5dfe9;
    border-radius: 9px;
    overflow: hidden;
    transition: .25s;
}















/* ================= NAVEGACIÓN ================= */











/* ================= CONTENIDO ================= */

main.wrap{
    padding-top: 22px;
}

/* ================= BANNER ================= */

.hero{
    min-height: 345px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    isolation: isolate;
    padding: 42px 7%;
    margin: 0 0 22px;
    border-radius: 17px;
    color: #fff;
    background:
            radial-gradient(ellipse at 80% 20%, rgba(213,173,85,.25), transparent 35%),
            linear-gradient(115deg, #260b32 0%, #511366 54%, #351044 100%);
    box-shadow: 0 10px 28px rgba(53,16,68,.17);
}

.hero::before{
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    right: 8%;
    top: -115px;
    z-index: -1;
}

.hero::after{
    content: "";
    position: absolute;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(213,173,85,.25);
    border-radius: 50%;
    right: 14%;
    bottom: -190px;
    z-index: -1;
}

.hero > div:first-child{
    position: relative;
    z-index: 1;
    max-width: 570px;
}

.hero small{
    display: inline-block;
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.hero h1{
    margin: 0;
    font-size: clamp(38px,5vw,66px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -2px;
}

.hero p{
    margin: 14px 0 21px;
    font-size: 23px;
    color: #eee3f2;
    font-weight: 500;
}

.hero b{
    display: inline-block;
    padding: 11px 20px;
    border-radius: 7px;
    background: var(--gold);
    color: #351044;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: .5px;
    box-shadow: 0 4px 12px rgba(0,0,0,.17);
}

.hero-furniture{
    width: 38%;
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 18px;
    background: linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.025));
    color: #f5dca1;
    font-size: clamp(27px,3vw,43px);
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 3px 15px #0005;
    backdrop-filter: blur(5px);
}

/* ================= BENEFICIOS ================= */

.benefits{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 13px;
    margin: 0 0 32px;
}

.benefits div{
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--white);
    color: var(--purple-main);
    font-size: 22px;
    transition: .2s;
}

.benefits div:hover{
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.benefits b{
    color: var(--text);
    font-size: 12px;
}

/* ================= TÍTULOS ================= */

section > h2, .section-title h2{
    margin: 0 0 16px;
    color: var(--purple);
    font-size: 23px;
    font-weight: 850;
    letter-spacing: -.4px;
}

.section-title{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 35px 0 17px;
}

.section-title h2{
    margin: 0;
}

.section-title span{
    color: var(--muted);
    font-size: 13px;
}

/* ================= CATEGORÍAS ================= */

.categories{
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 13px;
}

.categories a{
    min-height: 94px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px 10px;
    position: relative;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--purple);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 2px 7px rgba(0,0,0,.025);
    transition: .25s;
}

.categories a::before{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: var(--gold);
    transition: .25s;
}

.categories a:hover{
    border-color: #d9c3e1;
    background: var(--purple-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.categories a:hover::before{
    width: 100%;
}

/* ================= BÚSQUEDA ================= */

.search-results{
    margin: 18px 0;
    padding: 13px 16px;
    background: var(--purple-light);
    border-radius: 9px;
    color: var(--text);
    font-size: 14px;
}

.search-results a{
    color: var(--purple-main);
    font-weight: 800;
    text-decoration: underline;
}

/* ================= PRODUCTOS ================= */

.products{
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 18px;
    padding-bottom: 25px;
}

.product{
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(0,0,0,.035);
    transition: transform .25s,box-shadow .25s,border-color .25s;
}

.product:hover{
    transform: translateY(-5px);
    border-color: #d6c1df;
    box-shadow: 0 12px 28px rgba(53,16,68,.11);
}

.product > a:first-child{
    display: block;
    overflow: hidden;
    background: #fff;
}

.product img{
    display: block;
    width: 100%;
    height: 235px;
    padding: 13px;
    object-fit: contain;
    background: #fff;
    transition: transform .35s;
}

.product:hover img{
    transform: scale(1.045);
}

.product-info{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px;
    border-top: 1px solid #f1eef2;
}

.product-info small{
    color: #99919d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
}

.product-name{
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #342c39;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
}

.product-name:hover{
    color: var(--purple-main);
}

.product del, .old-price{
    color: #999;
    font-size: 13px;
}

.price, .detail-price{
    color: var(--red);
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -.5px;
}

/* ================= BOTONES ================= */

.buy{
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 11px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
    transition: .2s;
}

.buy:hover{
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8,167,70,.2);
}

/* ================= SIN RESULTADOS ================= */

.empty{
    padding: 55px 20px;
    margin: 15px 0;
    background: var(--white);
    border: 1px dashed #d9cde0;
    border-radius: 13px;
    color: var(--muted);
    text-align: center;
}

/* ================= DETALLE ================= */

.detail{
    padding: 15px 0 40px;
}

.crumb{
    margin: 10px 0 20px;
    color: var(--muted);
    font-size: 13px;
}

.crumb a{
    color: var(--purple-main);
}

.detail-grid{
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 35px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: var(--shadow);
}

.detail-img{
    width: 100%;
    height: 490px;
    padding: 15px;
    object-fit: contain;
    background: #faf9fb;
    border-radius: 12px;
}

.hint{
    color: #999;
    font-size: 12px;
}

.detail h1{
    margin: 10px 0 15px;
    color: var(--purple);
    font-size: 30px;
    line-height: 1.2;
}

.detail-price{
    margin: 10px 0 18px;
    font-size: 39px;
}

.tag{
    display: inline-block;
    padding: 7px 13px;
    border-radius: 30px;
    background: #e6f7ec;
    color: #078a37;
    font-size: 12px;
    font-weight: 800;
}

.spec{
    margin: 18px 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 11px;
}

.spec h3{
    margin: 0;
    padding: 13px 16px;
    background: var(--purple-light);
    color: var(--purple);
    font-size: 15px;
}

.spec p, .spec ul{
    padding: 0 17px;
    font-size: 14px;
}

.measure{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 10px;
    padding: 17px;
}

.measure span{
    padding: 12px;
    border-radius: 8px;
    background: #f7f4f8;
    font-size: 13px;
}

.big{
    padding: 17px;
    font-size: 17px;
}

/* ================= ADMINISTRACIÓN ================= */

.admin-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 3%;
    background: #18243a;
    color: #fff;
}

.admin{
    padding: 28px 0;
}

.admin-grid{
    display: grid;
    grid-template-columns: 390px minmax(0,1fr);
    gap: 22px;
}

.form-panel{
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: var(--shadow);
}

.product-form{
    display: grid;
    gap: 11px;
}

.product-form label{
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 750;
}

.product-form input, .product-form select, .product-form textarea, .admin-search input{
    width: 100%;
    min-width: 0;
    padding: 11px;
    border: 1px solid #dcd6e0;
    border-radius: 7px;
    outline: none;
    background: #fff;
}

.product-form input:focus, .product-form select:focus, .product-form textarea:focus, .admin-search input:focus{
    border-color: var(--purple-main);
    box-shadow: 0 0 0 3px rgba(100,27,124,.08);
}

.product-form textarea{
    min-height: 75px;
    resize: vertical;
}

.three{
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 7px;
}

.product-form label.check{
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 9px;
}

.product-form .check input{
    width: auto;
    margin: 0;
}

.admin-search{
    display: flex;
    gap: 9px;
    margin-bottom: 15px;
}

.admin-search button{
    padding: 10px 18px;
    border: 0;
    border-radius: 7px;
    background: var(--purple);
    color: #fff;
    cursor: pointer;
}

.table-wrap{
    overflow: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 11px;
}

table{
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th, td{
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    white-space: nowrap;
}

th{
    background: var(--purple-light);
    color: var(--purple);
    font-weight: 800;
}

/* ================= LOGIN ================= */

.login-bg{
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
            radial-gradient(circle at top right,#eadcf0,transparent 45%),
            #f4eff6;
}

.login{
    width: min(400px,94%);
    display: grid;
    gap: 14px;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: 0 12px 35px rgba(53,16,68,.12);
}

.login img{
    width: 180px;
    height: 90px;
    margin: auto;
    object-fit: contain;
}

.login input{
    padding: 13px;
    border: 1px solid #dcd6e0;
    border-radius: 8px;
    outline: none;
}

.login input:focus{
    border-color: var(--purple-main);
}

.error{
    color: #d00;
    font-size: 13px;
}

/* ================= PIE DE PÁGINA ================= */





/* ================= TABLETS ================= */

@media (max-width: 1000px) {












}

/* ================= CELULARES ================= */

@media (max-width: 700px) {




















































































}

/* ================= CELULARES PEQUEÑOS ================= */

@media (max-width: 380px) {












}



/* =====================================================
   ENCABEZADO RENOVADO - MUEBLES & MÁS PERÚ
   Se agregan estos estilos al final para no alterar
   las tarjetas, el catálogo ni las demás secciones.
===================================================== */





















.search{
    height: 50px;
    border: 1px solid #e5dce9;
    border-radius: 11px;
    background: #faf9fb;
    box-shadow: 0 3px 12px rgba(38,11,50,.035);
}











.wa-icon{
    font-size: 18px;
    line-height: 1;
}















/* Pie de página: compatible con el footer sencillo actual.
   Cuando se comparta footer.jsp se podrá diseñar su estructura
   en columnas sin afectar el resto de la página. */




/* ================= RESPONSIVE ENCABEZADO ================= */

@media (max-width: 1000px) {







}

@media (max-width: 700px) {





























}

@media (max-width: 380px) {





}


/* =========================================================
   CORRECCIÓN DEFINITIVA: HEADER Y FOOTER
   Reglas limitadas a sus clases para no alterar el catálogo.
========================================================= */

/* ---------- HEADER: barra superior ---------- */












/* ---------- HEADER: logo, buscador y WhatsApp ---------- */














/* ---------- HEADER: navegación ---------- */






/* ---------- FOOTER: estructura de cuatro columnas ---------- */








































/* ---------- TABLET ---------- */
@media (max-width: 900px) {







}

/* ---------- MÓVIL ---------- */
@media (max-width: 700px) {

































}

@media (max-width: 420px) {





}

/* FOOTER: reglas originales conservadas */
/* =====================================================
   MUEBLES & MÁS PERÚ
   ECOMMERCE PROFESIONAL
   Morado | Blanco | Dorado | Verde WhatsApp
===================================================== */



/* ================= GENERAL ================= */















/* ================= BARRA SUPERIOR ================= */





/* ================= ENCABEZADO ================= */





















/* ================= NAVEGACIÓN ================= */











/* ================= CONTENIDO ================= */



/* ================= BANNER ================= */



















/* ================= BENEFICIOS ================= */









/* ================= TÍTULOS ================= */









/* ================= CATEGORÍAS ================= */











/* ================= BÚSQUEDA ================= */





/* ================= PRODUCTOS ================= */

























/* ================= BOTONES ================= */





/* ================= SIN RESULTADOS ================= */



/* ================= DETALLE ================= */































/* ================= ADMINISTRACIÓN ================= */





































/* ================= LOGIN ================= */













/* ================= PIE DE PÁGINA ================= */

footer{
    margin-top: 45px;
    padding: 30px 15px;
    background: var(--purple-dark);
    color: #fff;
    text-align: center;
    font-size: 13px;
}

footer strong{
    color: var(--gold);
}

/* ================= TABLETS ================= */

@media (max-width: 1000px) {












}

/* ================= CELULARES ================= */

@media (max-width: 700px) {



















































































    footer{
        margin-top: 25px;
        padding: 23px 12px;
        font-size: 11px;
    }
}

/* ================= CELULARES PEQUEÑOS ================= */

@media (max-width: 380px) {












}



/* =====================================================
   ENCABEZADO RENOVADO - MUEBLES & MÁS PERÚ
   Se agregan estos estilos al final para no alterar
   las tarjetas, el catálogo ni las demás secciones.
===================================================== */

















































/* Pie de página: compatible con el footer sencillo actual.
   Cuando se comparta footer.jsp se podrá diseñar su estructura
   en columnas sin afectar el resto de la página. */
footer{
    position: relative;
    overflow: hidden;
    margin-top: 55px;
    padding: 34px 20px 27px;
    background:
            radial-gradient(circle at 15% 0%, rgba(213,173,85,.10), transparent 32%),
            linear-gradient(135deg, #260b32, #351044 58%, #260b32);
    border-top: 4px solid var(--gold);
    color: #f8f4fa;
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
}

footer strong{
    display: inline-block;
    margin-bottom: 7px;
    color: #e7c36e;
    font-size: 15px;
    letter-spacing: .35px;
}

/* ================= RESPONSIVE ENCABEZADO ================= */

@media (max-width: 1000px) {







}

@media (max-width: 700px) {




























    footer{
        margin-top: 30px;
        padding: 25px 14px 22px;
        font-size: 12px;
    }
}

@media (max-width: 380px) {





}


/* =========================================================
   CORRECCIÓN DEFINITIVA: HEADER Y FOOTER
   Reglas limitadas a sus clases para no alterar el catálogo.
========================================================= */

/* ---------- HEADER: barra superior ---------- */












/* ---------- HEADER: logo, buscador y WhatsApp ---------- */














/* ---------- HEADER: navegación ---------- */






/* ---------- FOOTER: estructura de cuatro columnas ---------- */
footer.site-footer{
    display: block;
    width: 100%;
    margin: 55px 0 0;
    padding: 0;
    overflow: hidden;
    background: #260b32;
    border-top: 4px solid var(--gold);
    color: #f8f4fa;
    text-align: left;
    font-size: 13px;
    line-height: 1.65;
}

.site-footer .footer-main.wrap{
    width: min(1280px, 92%);
    margin: 0 auto;
    padding: 42px 0 36px;
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr 1.15fr;
    align-items: start;
    justify-content: initial;
    gap: clamp(22px, 3vw, 48px);
}

.site-footer .footer-brand, .site-footer .footer-column{
    min-width: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.site-footer .footer-logo{
    width: 190px;
    max-width: 100%;
    height: 90px;
    margin: 0 0 15px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.site-footer .footer-logo img{
    display: block;
    width: 180px;
    max-width: 100%;
    height: 82px;
    max-height: 82px;
    margin: 0;
    object-fit: contain;
    object-position: left center;
}

.site-footer .footer-brand p, .site-footer .footer-column p{
    max-width: 100%;
    margin: 0 0 13px;
    padding: 0;
    color: #e4dce8;
    font-size: 13px;
    line-height: 1.7;
    text-align: left;
}

.site-footer .footer-location{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    color: #f4dfad;
    font-size: 13px;
}

.site-footer .footer-column h3{
    margin: 5px 0 17px;
    padding: 0 0 10px;
    position: relative;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    text-align: left;
}

.site-footer .footer-column h3::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 38px;
    height: 2px;
    background: var(--gold);
}

.site-footer .footer-column a, .site-footer .footer-column > span{
    display: block;
    width: auto;
    margin: 0 0 10px;
    padding: 0;
    color: #e4dce8;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    transition: color .2s ease;
}

.site-footer .footer-column a:hover{
    color: #f4d98e;
}

.site-footer .footer-shipping{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 5px 0 18px;
}

.site-footer .footer-shipping span{
    min-width: 92px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.site-footer .shipping-marvisur{
    color: #d71920;
}

.site-footer .shipping-shalom{
    color: #d71920;
}

.site-footer .footer-column a.footer-whatsapp{
    min-height: 40px;
    margin: 0;
    padding: 9px 13px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 7px;
    background: #08a746;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.site-footer .footer-column a.footer-whatsapp:hover{
    background: #078638;
    color: #fff;
}

.site-footer .footer-bottom{
    width: 100%;
    margin: 0;
    padding: 16px 0;
    background: rgba(0,0,0,.18);
    border-top: 1px solid rgba(255,255,255,.12);
}

.site-footer .footer-bottom-inner.wrap{
    width: min(1280px, 92%);
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
}

.site-footer .footer-bottom p{
    margin: 0;
    padding: 0;
    color: #cfc2d5;
    font-size: 11px;
    line-height: 1.5;
    text-align: left;
}

/* ---------- TABLET ---------- */
@media (max-width: 900px) {
    .site-footer .footer-main.wrap{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 36px;
    }






}

/* ---------- MÓVIL ---------- */
@media (max-width: 700px) {




















    .site-footer{
        margin-top: 30px;
    }

    .site-footer .footer-main.wrap{
        width: 90%;
        padding: 32px 0 27px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 27px 20px;
    }

    .site-footer .footer-logo{
        width: 145px;
        height: 68px;
        margin-bottom: 10px;
    }

    .site-footer .footer-logo img{
        width: 140px;
        height: 64px;
    }

    .site-footer .footer-column h3{
        margin-top: 0;
        font-size: 14px;
    }

    .site-footer .footer-column a, .site-footer .footer-column > span, .site-footer .footer-brand p, .site-footer .footer-column p{
        font-size: 12px;
    }

    .site-footer .footer-bottom-inner.wrap{
        width: 90%;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 420px) {
    .site-footer .footer-main.wrap{
        grid-template-columns: 1fr;
        gap: 23px;
    }

    .site-footer .footer-brand, .site-footer .footer-column{
        width: 100%;
    }

    .site-footer .footer-logo{
        width: 155px;
    }
}

/* =========================================================
   HEADER ÚNICO - MUEBLES & MÁS PERÚ
   SVG dimensionados explícitamente para evitar gráficos gigantes
========================================================= */

/* Barra superior */
header.topbar {
    display: block;
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg, #21082b, #351044 55%, #21082b);
    color: #fff;
    text-align: left;
}
header.topbar > .topbar-inner {
    width: min(1280px, 94%);
    min-height: 38px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    align-items: center;
    gap: 18px;
}
header.topbar .topbar-item,
header.topbar .topbar-message {
    min-width: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    color: #f8f4fa;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
}
header.topbar .topbar-message {
    justify-content: center;
    color: #f4dfad;
    font-weight: 650;
}
header.topbar .topbar-trust { justify-content: flex-end; }

/* SVG: tamaño fijo obligatorio */
header.topbar svg {
    display: block;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    max-width: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: #e5c36f;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Franja principal: logo + buscador + WhatsApp */
header.main-header.wrap {
    width: min(1280px, 94%);
    min-height: 108px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 2.5vw, 34px);
    background: #fff;
}
header.main-header .header-logo {
    flex: 0 0 185px;
    width: 185px;
    min-width: 0;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
header.main-header .header-logo img.logo {
    display: block;
    width: 180px;
    max-width: 100%;
    height: 82px;
    max-height: 82px;
    margin: 0;
    object-fit: contain;
}
header.main-header .search {
    flex: 1 1 auto;
    min-width: 100px;
    width: auto;
    height: 49px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 1px solid #e5dce9;
    border-radius: 10px;
    background: #faf9fb;
    overflow: hidden;
}
header.main-header .search input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 18px;
    border: 0;
    outline: none;
    background: transparent;
    color: #28232c;
    font-size: 14px;
}
header.main-header .search button {
    flex: 0 0 56px;
    width: 56px;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: #351044;
    cursor: pointer;
}
header.main-header .search button svg {
    display: block;
    width: 21px !important;
    height: 21px !important;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
header.main-header .wa-head {
    flex: 0 0 auto;
    min-height: 47px;
    margin: 0;
    padding: 0 19px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 9px;
    color: #fff;
    background: #08a746;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}
header.main-header .wa-head svg {
    display: block;
    width: 21px !important;
    height: 21px !important;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Navegación */
nav.main-nav {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg, #351044, #421252 50%, #351044);
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 3px solid rgba(213,173,85,.75);
    box-shadow: 0 5px 15px rgba(39,20,48,.11);
}
nav.main-nav > .nav-inner {
    width: min(1280px, 94%);
    min-height: 48px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}
nav.main-nav .nav-link {
    flex: 0 0 auto;
    min-height: 45px;
    margin: 0;
    padding: 0 17px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 7px 7px 0 0;
    color: #fff;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}
nav.main-nav .nav-link svg {
    display: block;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    max-width: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
nav.main-nav .nav-link:hover {
    color: #ffdfa0;
    background: rgba(255,255,255,.075);
}
nav.main-nav .nav-offers { color: #ffdf91; }
nav.main-nav .nav-offers:hover {
    color: #fff1c9;
    background: rgba(213,173,85,.12);
}

/* Ajustes de encabezado en tablet */
@media (max-width: 900px) {
    header.main-header.wrap { gap: 16px; }
    header.main-header .header-logo {
        flex-basis: 155px;
        width: 155px;
    }
    header.main-header .header-logo img.logo { width: 150px; }
    nav.main-nav .nav-link { padding-right: 12px; padding-left: 12px; }
}

/* Ajustes de encabezado en móvil */
@media (max-width: 700px) {
    header.topbar > .topbar-inner {
        min-height: 33px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0;
    }
    header.topbar .topbar-message,
    header.topbar .topbar-trust { display: none; }
    header.topbar .topbar-item { font-size: 11px; }

    header.main-header.wrap {
        min-height: auto;
        padding: 10px 0 13px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }
    header.main-header .header-logo {
        flex: 0 0 auto;
        width: auto;
    }
    header.main-header .header-logo img.logo {
        width: 130px;
        height: 58px;
    }
    header.main-header .wa-head {
        min-height: 40px;
        margin-left: auto;
        padding: 0 12px;
        font-size: 12px;
    }
    header.main-header .search {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        height: 43px;
    }
    header.main-header .search button { flex-basis: 49px; width: 49px; }

    nav.main-nav > .nav-inner {
        width: 96%;
        min-height: 44px;
        gap: 2px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    nav.main-nav > .nav-inner::-webkit-scrollbar { display: none; }
    nav.main-nav .nav-link {
        min-height: 42px;
        padding: 0 10px;
        font-size: 11px;
    }
    nav.main-nav .nav-link svg {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px;
        max-width: 16px;
        flex-basis: 16px;
    }
}

@media (max-width: 380px) {
    header.main-header .header-logo img.logo { width: 120px; }
    header.main-header .wa-head { padding: 0 10px; font-size: 11px; }
    nav.main-nav .nav-link { padding: 0 9px; font-size: 10px; }
}
