html, body { margin: 0; padding: 0; width: 100%; overflow-x: hidden; font-family: 'Inter', sans-serif; background: #fff; }
* { box-sizing: border-box; }

/* Header & Marquee */
.k-top-bar-wrapper { background: #1e293b; overflow: hidden; padding: 8px 0; width: 100%; }
.k-marquee-content { display: inline-block; white-space: nowrap; padding-left: 100%; animation: k-scroll-text 15s linear infinite; }
.k-marquee-text { color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; }
@keyframes k-scroll-text { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.k-header-main { width: 100%; background: #fff; border-bottom: 1px solid #f0f0f0; position: sticky; top: 0; z-index: 10000; }
.k-header-container { max-width: 1300px; margin: 0 auto; height: 85px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; gap: 20px; }
.k-logo-link { height: 60px; display: flex; align-items: center; }
.k-logo-link img { height: 100%; width: auto; object-fit: contain; }

/* Menu & Search */
.k-nav-trigger { background: none; border: none; font-size: 12px; font-weight: 900; color: #1e293b; text-transform: uppercase; letter-spacing: 1.5px; cursor: pointer; margin-left: 20px; }
.k-mega-panel { position: absolute; top: 85px; left: 0; width: 100%; background: #fff; box-shadow: 0 20px 40px rgba(0,0,0,0.1); display: none; padding: 40px 0; border-top: 1px solid #f0f0f0; z-index: 9999;}
.k-mega-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; padding: 0 20px; }
.k-mega-card { text-decoration: none; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.k-mega-img-wrap { width: 120px; height: 120px; background: #f1f5f9; border-radius: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; border: 1px solid transparent; }
.k-mega-img-wrap img { max-width: 75%; max-height: 75%; object-fit: contain; }
.k-mega-card span { font-size: 10px; font-weight: 800; color: #1e293b; text-transform: uppercase; text-align: center; }

.katara-seccion-segura { background: white; border-bottom: 1px solid #e2e8f0; padding: 25px 0 15px 0; position: sticky; top: 85px; z-index: 99; width: 100%; }
.katara-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; width: 100%; }
.k-header-tools { display: flex; align-items: center; justify-content: space-between; gap: 15px; max-width: 800px; margin: 0 auto; margin-bottom: 15px; }
.k-search-box { flex: 1; display: flex; align-items: center; background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 50px; padding: 0 25px; transition: 0.3s; }
.k-search-input { flex: 1; border: none; background: transparent; padding: 16px 0; font-size: 16px; outline: none; width: 100%; }
.k-cart-trigger { background: #1e293b; color: white; border: none; border-radius: 50px; padding: 12px 20px; font-weight: bold; cursor: pointer; position: relative; }
.k-cart-count { background: #f16522; color: white; border-radius: 50%; padding: 2px 6px; font-size: 11px; position: absolute; top: -5px; right: -5px; font-weight: 900; }

/* Scroll Elements & Categories */
.k-scroll-wrapper { position: relative; width: 100%; display: flex; align-items: center; }
.k-cats-wrapper { display: flex; gap: 10px; overflow-x: auto; padding: 10px 5px; scrollbar-width: none; width: 100%; scroll-behavior: smooth; }
.k-cats-wrapper::-webkit-scrollbar { display: none; }
.k-cat-btn { background: white; border: 1px solid #cbd5e1; color: #64748b; padding: 8px 22px; border-radius: 50px; cursor: pointer; white-space: nowrap; font-weight: bold; font-size: 13px; }
.k-cat-btn.active { background: #f16522; color: white; border-color: #f16522; }

/* Botones de Subcategorías */
.k-subcat-btn { background: #f8fafc; border: 1px solid #e2e8f0; color: #475569; padding: 6px 16px; border-radius: 50px; cursor: pointer; white-space: nowrap; font-weight: bold; font-size: 11px; transition: 0.2s; }
.k-subcat-btn.active { background: #1e293b; color: white; border-color: #1e293b; }

.k-nav-arrow { position: absolute; z-index: 10; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.9); border: 1px solid #cbd5e1; color: #f16522; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.k-arrow-left { left: -10px; } .k-arrow-right { right: -10px; }

/* --- NUEVO: POP-UP ESTILOS 3D --- */
.k-popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(5px); z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.3s ease; }
.k-popup-box { background-color: #000; background-size: cover; background-position: center; border-radius: 20px; max-width: 850px; width: 100%; position: relative; display: flex; align-items: center; box-shadow: 0 35px 60px -15px rgba(0,0,0,0.7); border: 2px solid #334155; animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.k-popup-close { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.2); border: none; color: white; width: 35px; height: 35px; border-radius: 50%; font-size: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 100; transition: 0.2s; line-height: 1; padding-bottom: 4px; }
.k-popup-close:hover { background: rgba(255,255,255,0.4); transform: scale(1.1); }
.k-popup-content { display: flex; width: 100%; padding: 50px 40px; align-items: center; gap: 40px; position: relative; z-index: 10; }
.k-popup-img { flex: 1; max-width: 45%; max-height: 350px; object-fit: contain; filter: drop-shadow(0 20px 15px rgba(0,0,0,0.8)); transform: scale(1.1); animation: floatImg 3s ease-in-out infinite; }
.k-popup-text { flex: 1; text-align: left; }
.k-popup-text h2 { font-family: 'Montserrat', sans-serif; font-size: 40px; font-style: italic; font-weight: 900; text-transform: uppercase; color: #ffffff; margin: 0 0 10px 0; line-height: 1.1; }
.k-popup-text p { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 700; color: #cbd5e1; margin: 0 0 25px 0; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleUp { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes floatImg { 0% { transform: translateY(0) scale(1.1); } 50% { transform: translateY(-10px) scale(1.1); } 100% { transform: translateY(0) scale(1.1); } }

/* Hero 3D */
.k-hero-full-wrapper { background-color: #000; background-size: cover; background-position: center; background-attachment: fixed; width: 100%; padding: 30px 0 60px 0; border-bottom: 2px solid #222; position: relative; z-index: 10; }
.k-hero-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.k-hero-text h1 { font-family: 'Montserrat', sans-serif; font-size: 46px; font-style: italic; font-weight: 900; text-transform: uppercase; color: #ffffff; margin: 0 0 15px 0; line-height: 1.1; }
.k-hero-text p { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 800; color: #d1d5db; margin: 0 0 30px 0; }
.k-hero-wa-btn { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: white; text-decoration: none; padding: 14px 28px; border-radius: 50px; font-weight: 900; }
.k-hero-img-box img { max-width: 100%; max-height: 420px; object-fit: contain; filter: drop-shadow(0 35px 25px rgba(0,0,0,0.8)); margin-bottom: -110px; position: relative; z-index: 20; animation: dropBounce 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; transform: translateY(-150px); opacity: 0; }
@keyframes dropBounce { to { transform: translateY(0); opacity: 1; } }

/* Cards & Grid */
.k-promo-section { display: none; margin-top: 80px; width: 100%; }
.k-section-title { font-family: 'Montserrat', sans-serif; font-size: 26px; font-style: italic; font-weight: 900; text-transform: uppercase; color: #1e293b; margin-bottom: 20px; }
.k-promo-carousel { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 30px; scrollbar-width: none; width: 100%; } 
.k-promo-carousel::-webkit-scrollbar { display: none; }
.k-promo-carousel .k-prod-card { min-width: 260px !important; max-width: 260px; flex-shrink: 0; }
.k-promo-divider { border: 0; border-bottom: 2px dashed #e2e8f0; margin: 30px 0; }

.k-grid-productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; padding-bottom: 40px; margin-top: 20px; width: 100%; }

.k-prod-card { background: white; border: 1px solid #f0f0f0; border-radius: 12px; padding: 15px; display: flex; flex-direction: column; position: relative; height: 100%; min-width: 0; word-wrap: break-word; }
.k-img-wrapper { width: 100%; height: 160px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.k-prod-img { max-width: 100%; max-height: 100%; object-fit: contain; }

.k-prod-info { display: flex; flex-direction: column; flex-grow: 1; }
.k-prod-name { font-size: 13px; font-weight: bold; color: #333; margin-bottom: 10px; line-height: 1.4; height: 36px; overflow: hidden; }

.k-price-box { margin-top: auto; background: #f8fafc; padding: 10px; border-radius: 8px; text-align: center; margin-bottom: 10px; } 
.k-price-old { font-size: 11px; color: #94a3b8; text-decoration: line-through; display: block; min-height: 15px; }
.k-price-new { font-size: 20px; font-weight: 900; color: #f16522; display: block; }
.k-btn-agregar { background: #2271b1; color: white; padding: 10px; border-radius: 8px; font-weight: bold; border: none; width: 100%; cursor: pointer; }

.k-out-stock .k-prod-img { opacity: 0.5; filter: grayscale(80%); }
.k-badge-stock { position: absolute; top: 10px; left: 10px; background: #64748b; color: white; font-size: 10px; font-weight: bold; padding: 4px 8px; border-radius: 6px; z-index: 2; }
.k-badge-promo { position: absolute; top: 10px; right: 10px; background: #dc2626; color: white; font-size: 11px; font-weight: bold; padding: 4px 8px; border-radius: 6px; z-index: 2; }
.k-badge-destacado { position: absolute; top: 10px; right: 10px; background: #f97316; color: white; font-size: 11px; font-weight: bold; padding: 4px 8px; border-radius: 6px; z-index: 2; }

/* Carrito Lateral */
.k-cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 100000; display: none; opacity: 0; }
.k-cart-drawer { position: fixed; top: 0; right: -450px; width: 100%; max-width: 400px; height: 100%; background: white; z-index: 100001; transition: right 0.3s ease; display: flex; flex-direction: column; }
.k-cart-drawer.open { right: 0; }
.k-cart-overlay.open { display: block; opacity: 1; }
.k-cart-header { padding: 20px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; }
.k-cart-close { background: none; border: none; font-size: 24px; cursor: pointer; }
.k-cart-body { flex: 1; overflow-y: auto; padding: 20px; }
.k-cart-item { display: flex; gap: 15px; border-bottom: 1px solid #f0f0f0; padding-bottom: 15px; margin-bottom: 15px; }
.k-cart-item-img { width: 60px; height: 60px; object-fit: contain; }
.k-qty-controls { display: flex; align-items: center; border: 1px solid #e2e8f0; border-radius: 6px; }
.k-qty-btn { background: #f8fafc; border: none; width: 28px; height: 28px; font-weight: bold; cursor: pointer; }
.k-qty-input { width: 35px; text-align: center; border: none; font-size: 12px; font-weight: bold; pointer-events: none;}
.k-item-remove { background: none; border: none; color: #ef4444; font-size: 12px; cursor: pointer; text-decoration: underline; margin-top:5px; }
.k-cart-footer { padding: 20px; border-top: 1px solid #e2e8f0; background: #f8fafc; }
.k-cart-summary-line, .k-cart-total-line { display: flex; justify-content: space-between; margin-bottom: 8px; }
.k-cart-total-line { font-size: 18px; font-weight: 900; border-top: 2px dashed #e2e8f0; padding-top: 10px; }
.k-btn-checkout { background: #25D366; color: white; padding: 15px; border-radius: 8px; font-weight: bold; width: 100%; border: none; cursor: pointer; margin-top: 10px; }

/* Mobile adjustments */
@media (max-width: 992px) {
    .k-nav-arrow { display: none !important; }
}
@media (max-width: 768px) {
    /* Pop-up Mobile */
    .k-popup-content { flex-direction: column; text-align: center; padding: 40px 20px 20px 20px; gap: 20px; }
    .k-popup-img { max-width: 70%; max-height: 220px; transform: scale(1); margin-bottom: -10px; }
    .k-popup-text h2 { font-size: 28px; }
    .k-popup-text p { font-size: 16px; }
    .k-popup-text { text-align: center; }

    /* Hero & Grid Mobile */
    .k-hero-full-wrapper { padding: 20px 0 40px 0; background-attachment: scroll; } 
    .k-hero-inner { flex-direction: column; text-align: center; }
    .k-hero-text { padding-right: 0; margin-bottom: 30px; }
    .k-hero-text h1 { font-size: 30px; } 
    .k-hero-text p { font-size: 18px; }
    .k-hero-img-box img { max-height: 300px; margin-bottom: -70px; } 
    .k-promo-section { margin-top: 80px; } 
    .k-grid-productos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .k-prod-card { padding: 10px; }
    .k-btn-agregar { font-size: 11px; padding: 8px 4px; white-space: normal; line-height: 1.2; } 
    .k-promo-carousel .k-prod-card { min-width: 200px !important; max-width: 200px; }
}
/* --- VENTANA FLOTANTE (MODAL PRODUCTOS) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 900px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    max-height: 90vh;
    transform: translateY(20px);
    animation: slideUp 0.3s forwards;
}

.modal-close {
    position: absolute;
    top: 15px; right: 15px;
    background: #f1f5f9;
    border: none;
    width: 35px; height: 35px;
    border-radius: 50%;
    font-size: 16px;
    color: #475569;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
}
.modal-close:hover { background: #ef4444; color: white; }

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.modal-gallery {
    flex: 1;
    min-width: 300px;
    background: #f8fafc;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.modal-gallery img { max-width: 100%; max-height: 400px; object-fit: contain; }

.modal-info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.modal-info h2 { margin: 0 0 10px 0; font-size: 24px; color: #1e293b; line-height: 1.2; }
.modal-precio { font-size: 32px; font-weight: 900; color: #f16522; margin-bottom: 20px; }
.modal-descripcion { font-size: 14px; color: #475569; line-height: 1.6; flex-grow: 1; border-bottom: 1px solid #e2e8f0; padding-bottom: 20px;}

.modal-btn-cart {
    background: #1e293b; color: white;
    border: none; padding: 15px;
    border-radius: 8px; font-size: 16px; font-weight: bold;
    cursor: pointer; transition: 0.3s; width: 100%;
}
.modal-btn-cart:hover { background: #f16522; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideUp { to { transform: translateY(0); } }

@media (max-width: 768px) {
    .modal-info { padding: 20px; }
    .modal-gallery { padding: 20px; }
    .modal-precio { font-size: 28px; }
    .modal-overlay { padding: 10px; }
    .modal-content { max-height: 95vh; }
}

/* Efecto Zoom en Imagen Principal */
#m_imagen_principal.img-zoomed {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 9999999 !important;
    width: 90vw !important;
    height: 90vh !important;
    max-height: none !important;
    background: transparent !important;
    box-shadow: 0 0 0 200vmax rgba(15, 23, 42, 0.95) !important;
    cursor: zoom-out !important;
    object-fit: contain !important;
    border-radius: 8px !important;
}