
:root{
    --green:#dc2626;
    --green-dark:#b91c1c;
    --red:#dc2626;
    --red-dark:#b91c1c;
    --black-mate:#171717;
    --text:#171717;
    --title:#dc2626;
    --section-pad: 64px;
    --section-pad-mobile: 44px;
    --ease: cubic-bezier(.2,.8,.2,1);
}

/* Evitar desbordamientos horizontales en dispositivos móviles */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', sans-serif;
    background: #fff;
    color: var(--text);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, .oswald {
    font-family: 'Oswald', sans-serif;
    letter-spacing: .02em;
    line-height: 1.08;
}

p, li, a, span, label, input, textarea, button {
    font-family: 'Roboto', sans-serif;
}

a, button {
    transition:
        background-color .28s var(--ease),
        color .28s var(--ease),
        transform .28s var(--ease),
        box-shadow .28s var(--ease),
        opacity .28s var(--ease);
}

.topbar{
    background: #0a0a0a !important; /* Negro absoluto neutral-950 */
    color: #ffffff !important;
    border-bottom: 2px solid #dc2626;
    text-align: center;
    padding: 10px 15px;
    position: relative;
    line-height: 1.2;
}

.topbar h2{
    margin: 0;
    font-size: 28px;
    font-weight: 900; /* Tipografía fuerte */
    letter-spacing: .10em;
    color: #ffffff !important;
    font-family: 'Oswald', sans-serif;
}

.topbar span{
    position: absolute;
    right: 18px;
    bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #a3a3a3;
}

header{
    position: sticky;
    top: 0;
    z-index: 50;
    background: #0a0a0a !important; /* Corporativo oscuro neutral-950 */
    border-bottom: 1px solid #262626;
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
}

.container{
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.header-wrap{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 5rem; /* h-20 fijo (80px) para estabilidad total y simetría */
    max-width: 80rem; /* max-w-7xl */
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .header-wrap { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .header-wrap { padding: 0 2rem; }
}

/* 🏎️ LOGO TIPOGRÁFICO DE ALTO RENDIMIENTO (VELOCIDAD Y PRECISIÓN) */
.logo {
    text-decoration: none !important;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    user-select: none;
    flex-shrink: 0;
}

.logo span:first-child {
    line-height: 0.9;
}

nav{
    display: flex;
    align-items: center;
}

header nav a {
    text-decoration: none !important;
    font-family: inherit;
    transition: color .15s ease, border-color .15s ease;
}

header nav a:hover {
    transform: none !important;
}

/* 📞 CONVERSIÓN GOOGLE ADS: BOTÓN LLAMAR + REDES SOCIALES */
.header-right{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
}

@media (max-width: 768px){
    .header-right{
        display: none !important;
    }
}

.call-btn{
    background: #dc2626 !important;
    color: #fff !important;
    text-decoration: none !important;
    padding: 6px 14px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    border-radius: 2px !important;
    box-shadow: 0 2px 8px rgba(220,38,38,.2);
    transition: background-color .2s ease, transform .2s ease;
}

.call-btn:hover{
    background: #b91c1c !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220,38,38,.35);
}

.social{
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #a3a3a3;
}

.social a{
    color: #a3a3a3 !important;
    text-decoration: none !important;
    transition: color .15s ease, transform .15s ease;
}

.social a:hover{
    color: #dc2626 !important;
    transform: translateY(-1px);
}

.hero{
    position: relative;
    min-height: 72vh;
    overflow: hidden;
}

.hero-carousel{
    position: relative;
    width: 100%;
    height: 72vh;
    min-height: 72vh;
    overflow: hidden;
}

.hero-track{
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide{
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .8s ease;
}

.hero-slide.active{
    opacity: 1;
    z-index: 1;
}

.hero-overlay{
    width: min(760px, calc(100% - 40px));
    background: rgba(255,255,255,.82);
    padding: 46px 34px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.12);
}

.hero h3{
    margin: 0 0 10px 0;
    color: var(--title);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .10em;
    line-height: 1.1;
}

.hero .sub{
    margin: 8px 0 24px;
    color: var(--title);
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: .04em;
    line-height: 1.15;
}

.hero .cta{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    color: white;
    text-decoration: none;
    padding: 12px 22px;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    letter-spacing: .06em;
    min-width: 240px;
    min-height: 46px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.hero .cta:hover{
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.arrow{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 74px;
    font-weight: 300;
    text-decoration: none;
    opacity: .9;
    z-index: 5;
    padding: 0 10px;
    transition: transform .28s var(--ease), opacity .28s var(--ease);
}

.arrow.left{ left: 24px; }
.arrow.right{ right: 24px; }

.arrow:hover{
    opacity: 1;
    transform: translateY(-50%) scale(1.06);
}

.dots{
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 5;
}

.dots span{
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    opacity: .95;
}

.benefits{
    background: #0a0a0a;
    padding: 10px 0;
}

.benefits-inner{
    width: 100%;
    margin: 0;
    background: linear-gradient(90deg, #171717 0%, #262626 50%, #171717 100%);
    border-top: 1px solid #dc2626;
    border-bottom: 1px solid #dc2626;
    color: #fff;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    min-height: 84px;
}

.benefit{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 12px;
    border-right: 1px solid rgba(255,255,255,.12);
    font-family: 'Oswald', sans-serif;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: .03em;
    white-space: nowrap;
}

.benefit:last-child{ border-right: none; }

.benefit i{
    font-size: 26px;
    opacity: .95;
    color: #dc2626;
}

section.block{
    padding: var(--section-pad) 0;
}

.section-title{
    text-align: center;
    color: #ffffff;
    font-size: 40px;
    font-weight: 900;
    margin: 0 0 24px;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
}

.categories{
    background: #09090b;
}

.category-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.category-card{
    background: #171717;
    padding: 20px 16px;
    text-align: center;
    text-decoration: none;
    color: #f5f5f5;
    border: 1px solid #262626;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,.25);
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    letter-spacing: .03em;
    transition: all .3s ease;
}

.category-card:hover{
    box-shadow: 0 8px 24px rgba(220,38,38,.2);
    border-color: #dc2626;
    transform: translateY(-4px);
    color: #dc2626;
}

.category-img-wrap{
    width: 100%;
    height: 140px;
    border-radius: 4px;
    overflow: hidden;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #262626;
    flex-shrink: 0;
    padding: 8px;
    transition: border-color .3s ease;
}

.category-card:hover .category-img-wrap{
    border-color: rgba(220,38,38,.5);
}

.category-img-wrap img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    transition: transform .3s ease;
}

.category-card:hover .category-img-wrap img{
    transform: scale(1.05);
}

.about-box{
    background: #171717;
    border: 1px solid #262626;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,.25);
    max-width: 1000px;
    margin: 0 auto;
    color: #d4d4d4;
    border-radius: 6px;
}

.about-box p{
    font-size: 18px;
    line-height: 1.75;
    margin: 0 0 14px 0;
}

.about-box a{
    color: #dc2626;
    text-decoration: none;
}

.about-box a:hover{ text-decoration: underline; }

.testimonial-wrap{
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
    background: #f5f5f5;
    border-left: 5px solid var(--green);
    padding: 24px 26px;
}

.testimonial-wrap h3{
    margin: 0 0 8px 0;
    font-size: 24px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: .02em;
}

.testimonial-wrap p{
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
}

.testimonials-list{
    display: grid;
    gap: 18px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: start;
}

.contact-box{
    background: #171717;
    border: 1px solid #262626;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,.25);
    border-radius: 6px;
}

.contact-box h3{
    margin-top: 0;
    color: #ffffff;
    font-size: 30px;
    letter-spacing: .03em;
}

.contact-box p{
    font-size: 18px;
    line-height: 1.75;
    margin: 0 0 14px 0;
    color: #d4d4d4;
}

.contact-box a{
    color: #dc2626;
    text-decoration: none;
}

.contact-box a:hover{ text-decoration: underline; }

.map-wrap{
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #262626;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,.25);
    background: #0a0a0a;
}

.map-wrap iframe{
    width: 100%;
    height: 100%;
    display: block;
}

.map-share-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    padding: 12px 18px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: .05em;
    min-height: 46px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.map-share-btn:hover{
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.ml-carousel{
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    padding: 10px 0 35px;
}

.ml-track{
    display: flex;
    transition: transform .5s ease;
    width: 100%;
}

.ml-slide{
    min-width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 8px;
    box-sizing: border-box;
}

.ml-card{
    width: 100%;
    background: #171717;
    border: 1px solid #262626;
    padding: 18px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,.25);
    color: #d4d4d4;
}

.ml-image-wrap{
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #0a0a0a;
    border-radius: 4px;
    border: 1px solid #262626;
    margin-bottom: 12px;
}

.ml-image-wrap img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.ml-card h4{
    margin: 0 0 8px 0;
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    color: var(--green);
    letter-spacing: .02em;
}

.ml-card p{
    margin: 0 0 12px 0;
    font-size: 16px;
    line-height: 1.6;
}

.ml-card a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    color: white;
    text-decoration: none;
    padding: 10px 14px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: .05em;
    min-height: 44px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.ml-card a:hover{
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.ml-arrow{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255,255,255,.95);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--green);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    cursor: pointer;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), background-color .28s var(--ease);
}

.ml-arrow:hover{
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
}

.ml-prev{ left: 8px; }
.ml-next{ right: 8px; }

.ml-dots{
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.ml-dots span{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cfcfcf;
    display: inline-block;
    transition: background-color .28s var(--ease), transform .28s var(--ease);
}

.ml-dots span.active{
    background: var(--green);
    transform: scale(1.15);
}

footer{
    background: #000;
    color: #fff;
    text-align: center;
    padding: 22px 16px;
    margin-top: 0;
}

.whatsapp-float{
    position: fixed;
    width: 62px;
    height: 62px;
    bottom: 22px;
    right: 22px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 8px 22px rgba(0,0,0,.25);
    z-index: 9999;
    text-decoration: none;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), opacity .28s var(--ease);
}

.whatsapp-float:hover{
    transform: scale(1.06);
    box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

/* ================================================= */
/* 📱 MEDIA QUERIES / ADAPTABILIDAD MÓVIL PERFECTA   */
/* ================================================= */

.mobile-menu {
    display: none;
}

@media (max-width: 1100px){
    .benefits-inner{ grid-template-columns: repeat(2, 1fr); }
    .benefit{ font-size: 26px; }
    .category-grid{ grid-template-columns: repeat(2, 1fr); }
    .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 700px){
    section.block{ padding: var(--section-pad-mobile) 0; }
    .topbar h2{ font-size: 20px; }
    .topbar span{ position: static; display: block; margin-top: 4px; }
    .hero{ min-height: 60vh; }
    .hero-carousel{ height: 60vh; min-height: 60vh; }
    .hero-overlay{ padding: 28px 16px; width: min(92%, 760px); }
    .hero h3{ font-size: 18px; }
    .hero .sub{ font-size: 17px; }
    .hero .cta{ font-size: 16px; min-width: 200px; padding: 11px 18px; }
    .call-btn{ font-size: 16px; padding: 10px 18px; min-height: 42px; }
    .benefits-inner{ grid-template-columns: 1fr; }
    .benefit{ justify-content: flex-start; font-size: 24px; padding: 14px 12px; }
    .category-grid{ grid-template-columns: 1fr; }
    .section-title{ font-size: 36px; margin-bottom: 20px; }
    .contact-box h3{ font-size: 28px; }
    .ml-card img{ height: 190px; }
    .ml-arrow{ width: 38px; height: 38px; }
    .whatsapp-float{ width: 56px; height: 56px; bottom: 16px; right: 16px; font-size: 30px; }
    .category-img-wrap{ width: 100px; }
    .about-box, .contact-box{ padding: 22px; }
    
    /* Corrección de tablas y grillas en pantallas chicas */
    .admin-grid,
    div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
    }
}

/* ================================================= */
/* 📱 ESTILOS ADICIONALES PARA LA TIENDA MÓVIL (ML)  */
/* ================================================= */
@media (max-width: 900px) {
    .prod-img-wrap {
        height: 160px !important;
        background: #fff !important;
    }
    .prod-img-wrap img {
        object-fit: contain !important; /* Imágenes acopladas sin recortarse */
        padding: 8px;
    }
}
/* Corrección de bordes y padding para diseño nativo en móviles */
@media (max-width: 768px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .about-box {
        border-radius: 8px !important;
    }
    .arrow {
        font-size: 32px !important;
        padding: 0 5px !important;
    }
    .arrow.left {
        left: 5px !important;
    }
    .arrow.right {
        right: 5px !important;
    }
}

@media (max-width: 768px) {
    header { position: sticky; top: 0; width: 100%; z-index: 50; }
    header .header-wrap { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; justify-content: space-between !important; align-items: center !important; width: 100% !important; box-sizing: border-box !important; height: 5rem !important; }
    header .logo { flex: 0 0 auto; display: flex; align-items: center; }
    
    header nav#nav-principal { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: #0a0a0a; box-shadow: 0 10px 25px rgba(0,0,0,0.6); border-top: 1px solid #262626; z-index: 9999; }
    header nav#nav-principal.menu-activo { display: flex !important; }
    header nav#nav-principal a { padding: 15px 20px !important; border-bottom: 1px solid #1f1f1f; width: 100%; text-align: left; box-sizing: border-box; color: #f5f5f5 !important; font-weight: bold; display: block; }
    header nav#nav-principal a:hover { color: #dc2626 !important; }
}

/* Espacio reservado para barra de navegación móvil estilo App */
@media (max-width: 768px) {
    body {
        padding-bottom: 68px !important;
    }
    .whatsapp-float {
        bottom: 78px !important;
    }
}
