/* =========================================
   1. CONFIGURACIÓN GLOBAL Y VARIABLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    outline: 0;
}

/* Paleta de Colores Oficial KRZ Safety */
:root {
    --krz-orange: #F25C05;
    --krz-blue: #0B2A4A;
    --krz-gray: #A0A0A0;
    --krz-black: #111111;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
}

/* =========================================
CABECERA (HEADER)
   ========================================= */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1%;
    background-color: var(--white);
    position: relative;
    z-index: 101;
}

.header-left {
    display: flex;
    align-items: center;
    flex: 1;
    /* Ocupa el espacio disponible */
    justify-self: flex-start;
    /* Lo pega a la izquierda */
}

.header.scrolled .menu-dropdown {
    margin-top: 0;
}

.dropdown-positioner {
    position: absolute;
    top: 100%;
    /* Empieza exactamente donde termina el color blanco */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
    /* Deja pasar los clics si el menú está cerrado */
    z-index: 100;
}

.dropdown-positioner-inner {
    width: 100%;
    max-width: 1400px;
    padding: 0 1%;
    position: relative;
}

.logo-img {
    height: 90px;
    display: block;
    margin-left: 0;
    /* Ajuste para centrar el logo con los márgenes */
}

/* --- Barra de Búsqueda --- */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 1px solid #ccc;
    border-radius: 30px;
    padding: 0.5rem 1rem;
    width: 500px;
    justify-self: center;
    /* Centra la barra de búsqueda en la columna del medio */
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-input {
    border: none;
    outline: none;
    width: 100%;
    margin-left: 10px;
    font-size: 1rem;
    color: var(--krz-black);
}

.search-input::placeholder {
    color: var(--krz-gray);
}

.icon-buscar {
    font-size: 20px;
    color: var(--krz-orange);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.icon-buscar:hover {
    color: #ffffff;
    background-color: var(--krz-orange);
}

/* --- Iconos de Acción (Carrito y WhatsApp) --- */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    /* Ocupa el espacio disponible */
    gap: 2rem;
    /* Espacio entre los botones */
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    outline: none;
    color: var(--krz-black);
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
    font-size: 1.5rem;
    border: none;
    outline: none;
    background: none;
    cursor:pointer;
}

/* Burbuja de cantidad en el carrito */
.badge {
    position: absolute;
    top: -5px;
    left: 15px;
    background-color: var(--krz-orange);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}

/* --- BOTÓN WHATSAPP ESTILO PASTILLA --- */

.contact-section {
    display: flex;
    align-items: center;
}

/* El enlace en sí (La píldora verde) */
.wsp-pill {
    display: flex;
    align-items: center;
    background-color: #25d366;
    /* Verde oficial de WhatsApp */
    border-radius: 50px;
    /* Bordes totalmente redondeados */
    text-decoration: none;
    padding-right: 20px;
    /* Espacio a la derecha para que el texto no pegue al borde */
    /* El padding izquierdo es cero porque el ícono va a ir montado ahí */
    padding-left: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Una sombrita suave */
}

/* Efecto Hover: Cambia a tu color corporativo naranja */
.wsp-pill:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.10);
    /* Un pequeño zoom para dar sensación de interactividad */
}

/* El contenedor del ícono (El círculo blanco que resalta) */
.wsp-icon-wrapper {
    background-color: #ffffff;
    /* Fondo blanco para que el icono resalte */
    color: #25d366;
    /* El icono en verde */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    /* Círculo perfecto */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    /* Esto es clave: Empujamos el círculo un poco hacia la izquierda para que sobresalga de la pastilla */
    margin-left: -5px;
    border: 3px solid #25d366;
    /* Un pequeño borde verde alrededor del círculo blanco */
    transition: all 0.3s ease;
}

/* Cuando pasamos el mouse por la pastilla, también cambiamos los colores del círculo y el ícono 
.wsp-pill:hover .wsp-icon-wrapper {
    
}
*/
/* Contenedor del texto (Acomoda los dos textos uno sobre otro) */
.wsp-text-wrapper {
    display: flex;
    flex-direction: column;
    /* Apila los textos verticalmente */
    margin-left: 10px;
    /* Separación del círculo del ícono */
    color: #ffffff;
    /* Letras blancas */
}

/* Estilos de los textos */
.wsp-title {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    /* Junta un poco los textos */
}

.wsp-subtitle {
    font-size: 1.1rem;
    font-weight: 800;
    /* WhatsApp en negrita fuerte */
    line-height: 1;
}

/* --- ESTILOS DEL MENÚ HAMBURGUESA Y DESPLEGABLE --- */
.menu-hamburguesa-sticky {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--krz-orange);
    cursor: pointer;

    /* Estado inicial: Oculto, sin tamaño para que el logo esté pegado a la izquierda */
    width: 0;
    opacity: 0;
    overflow: hidden;
    margin-right: 0;
    transition: all 0.3s ease;
    /* Transición suave */
}

.header.scrolled .menu-hamburguesa-sticky {
    width: 30px;
    opacity: 1;
    margin-right: 15px;
    /* Empuja el logo suavemente hacia la derecha */
}

.menu-hamburguesa:hover {
    color: var(--krz-orange);
}

/* --- BARRA DE CATEGORÍAS GRIS (Debajo del header) --- */
.categories-bar {
    background-color: rgb(238, 238, 238);
    /* Gris clarito estilo Promart */
    border-bottom: 1px solid #e0e0e0;
}

.categories-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 1%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Separación entre el botón categorías y los demás enlaces */
}

.dropdown-wrapper {
    position: relative;
}

.dropdown-wrapper.activo .menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-dropdown {
    position: absolute;
    top: 0;
    left: 1%;
    /* Alineado a la izquierda */
    width: 250px;
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-top: 3px solid var(--krz-orange);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    /* Reactiva los clics para el menú */

    /* Estado Oculto */
    opacity: 0;
    visibility: hidden;

    /* MAGIA: Lo bajamos 50px para que empiece debajo de la barra gris */
    margin-top: 50px;
    transform: translateY(10px);
    transition: all 0.3s ease;
    max-height: 60vh;
    overflow-y: auto;
}

.header.activo .menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Estilo de los enlaces del menú */
.menu-dropdown ul {
    list-style: none;
    padding: 0.5rem 0;
}

.menu-dropdown li a {
    display: block;
    padding: 0.6rem 1.5rem;
    color: #444;
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    /* Borde invisible por defecto */
    transition: all 0.2s ease;
}

.menu-dropdown li a:hover {
    background-color: var(--light-bg);
    color: var(--krz-orange);
    border-left: 3px solid var(--krz-orange);
}

.btn-categorias {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: none;
    border: none;
    color: var(--krz-black);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
}

.btn-categorias .icon-orange {
    color: var(--krz-orange);
    font-size: 1.2rem;
}

.btn-categorias .icon-small {
    font-size: 0.8rem;
    color: var(--krz-orange);
}

.categories-links {
    display: flex;
    gap: 2rem;
}

.categories-links a {
    text-decoration: none;
    color: var(--krz-black);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.categories-links a:hover {
    color: var(--krz-orange);
}

/* El menú lateral que se despliega (estilo Promart) */
.menu-categorias {
    position: fixed;
    /* MAGIA: Lo saca de la página para que flote encima */
    top: 0;
    left: -350px;
    /* Lo esconde fuera de la pantalla a la izquierda */
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    transition: left 0.4s ease;
    z-index: 1000;
    /* Asegura que tape el resto del contenido */
    overflow-y: auto;
}

/* Esta clase se añadirá con JS para mostrar el menú */
.menu-categorias.activo {
    left: 0;
    /* Aparece en pantalla */
}

.menu-header {
    background-color: var(--krz-black);
    color: var(--white);
    padding: 1.5rem;
}

.menu-categorias ul {
    list-style: none;
}

.menu-categorias li a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--krz-black);
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s, color 0.3s;
}

.menu-categorias li a:hover {
    background-color: var(--light-bg);
    color: var(--krz-orange);
}

/* =========================================
   3. SECCIÓN PRINCIPAL (CARRUSEL / SLIDER)
   ========================================= */
.slider-section {
    width: 100%;
    height: calc(100vh - 140px);
    /* Puedes hacerlo más grande (ej. 70vh) si lo prefieres */
    position: relative;
    background-color: var(--krz-black);
}

/* La "Lente de la cámara" que oculta lo que sobra */
.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* La "Tira" de imágenes. Usa Flexbox para ponerlas de lado a lado */
.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    /* Esta es la magia que hace que resbale suavemente */
}

/* Cada imagen individual */
.slide {
    min-width: 100%;
    /* Cada slide DEBE medir el 100% de la pantalla para que no se encimen */
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Evita que la imagen se deforme al estirarse */
    filter: brightness(0.6);
    /* Oscurecemos la imagen para poder leer el texto blanco */
}

/* El texto dentro de la imagen */
.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: var(--white);
    max-width: 600px;
}

.slide-content h2 {
    margin-bottom: 1rem;
    line-height: 1.1;
    color: #FFAA33;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 48px;
    text-transform: uppercase;
    text-shadow: rgb(235, 78, 83) 0px 0px 20px;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- CONTROLES: Flechas --- */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background-color: var(--krz-orange);
}

.prev-btn {
    left: 2%;
}

.next-btn {
    right: 2%;
}

/* --- CONTROLES: Puntitos (Indicadores) --- */
.slider-dots {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.activo {
    background-color: var(--krz-orange);
    transform: scale(1.3);
    /* Hace que el puntito actual se vea un poco más grande */
}

.btn-producto {
    height: 50px;
    width: 150px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    background-color: #000;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn-producto:hover {
    background-color: #FFAA33;
    color: #000
}

/* =========================================
   4. SERVICIOS
   ========================================= */
.services-section {
    padding: 5rem 10%;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--krz-black);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--krz-gray);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-bottom: 5px solid var(--krz-orange);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--krz-blue);
    font-size: 1.5rem;
}

.service-card p {
    color: #555;
    line-height: 1.6;
}


/* =========================================
   5. PIE DE PÁGINA (FOOTER)
   ========================================= */
footer {
    background-color: var(--krz-black);
    color: var(--krz-gray);
    text-align: center;
    padding: 4rem 5% 2rem 5%;
}

.icon-accordion {
    display: none;
}

.footer-logo-img {
    height: 70px;
    margin-bottom: 1.5rem;
    filter: brightness(0.9);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
    text-align: left;
}

.footer-bottom-bar {
    max-width: 1400px;
    margin: 20px auto 0 auto;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

.krz-social-links {
    display: flex;
    gap: 15px;
}

.col-krz-brand p {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #888;
    font-size: 0.95rem;
}

.krz-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #2a2a2a;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.2rem;
}

.krz-social-links a:hover {
    background-color: var(--krz-orange);
    color: #fff;
    transform: translateY(-3px);
}

.col-krz-links h4,
.col-krz-contact h4 {
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.col-krz-links ul,
.col-krz-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.col-krz-links ul li a {
    color: #888;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}

.col-krz-links ul li a:hover,
.col-krz-legal ul li a:hover {
    color: var(--krz-orange);
}

.libro-reclamaciones {
    display: block;
    margin-top: 25px;
    margin-left: 0;
    /* Lo obliga a quedarse a la izquierda */
    max-width: 150px;
    transition: transform 0.3s ease;
}

.libro-reclamaciones:hover {
    transform: scale(1.05);
}

/* =========================================
   9. CARRITO DE COMPRAS (PANEL LATERAL)
   ========================================= */

/* El fondo oscuro que tapa la página */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.activo {
    opacity: 1;
    visibility: visible;
}

/* El panel que se desliza desde la derecha */
.cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    /* Escondido fuera de la pantalla */
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--white);
    z-index: 1100;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease;
    /* Animación de entrada */
}

.cart-panel.activo {
    right: 0;
    /* Aparece en pantalla */
}

/* Diseño interno del carrito */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--krz-black);
    color: var(--white);
}

.cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-cart {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.empty-cart-msg {
    text-align: center;
    color: var(--krz-gray);
    margin-top: 2rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background-color: #fafafa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--krz-black);
    margin-bottom: 1rem;
}

.w-100 {
    width: 100%;
    text-align: center;
    border-radius: 50px;
    text-decoration: none;
    height: 50px;
    font-size: medium;
}


/* =========================================
   6. SOBRE NOSOTROS
   ========================================= */

/* Banner Principal de Nosotros */
.nosotros-hero {
    height: 350px;
    background: linear-gradient(rgba(11, 42, 74, 0.8), rgba(11, 42, 74, 0.9)),
        url('https://images.unsplash.com/photo-1541888086425-d81bb19240f5?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.nosotros-hero h1 {
    font-size: 3.5rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--krz-orange);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.nosotros-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Títulos y Subrayados Decorativos */
.title-underline {
    height: 4px;
    width: 60px;
    background-color: var(--krz-orange);
    margin: 15px 0 25px 0;
}

.title-underline.center {
    margin: 15px auto 40px auto;
}

.text-center {
    text-align: center;
}

/* Sección: Quiénes Somos */
.quienes-somos-section {
    padding: 5rem 5%;
    background-color: var(--white);
}

.quienes-somos-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.quienes-somos-text {
    flex: 1;
}

.quienes-somos-text h2 {
    font-size: 2.5rem;
    color: var(--krz-blue);
}

.quienes-somos-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.quienes-somos-img {
    flex: 1;
}

.quienes-somos-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 15px 15px 0px var(--krz-orange);
    /* Sombra sólida decorativa */
}

/* Sección: Misión y Visión */
.mision-vision-section {
    padding: 5rem 5%;
    background-color: var(--light-bg);
}

.mv-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mv-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 5px solid var(--krz-blue);
    transition: transform 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-10px);
    border-top: 5px solid var(--krz-orange);
}

.mv-icon {
    font-size: 3rem;
    color: var(--krz-orange);
    margin-bottom: 20px;
}

.mv-card h3 {
    font-size: 1.5rem;
    color: var(--krz-blue);
    margin-bottom: 15px;
}

.mv-card p {
    color: #666;
    line-height: 1.6;
}

/* Sección: ¿Qué Brindamos? */
.que-brindamos-section {
    padding: 5rem 5%;
    background-color: var(--white);
    max-width: 1200px;
    margin: 0 auto;
}

.que-brindamos-section h2 {
    font-size: 2.5rem;
    color: var(--krz-black);
}

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

.brindamos-item {
    text-align: center;
    padding: 20px;
}

.brindamos-item i {
    font-size: 2.5rem;
    color: var(--white);
    background-color: var(--krz-black);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.brindamos-item:hover i {
    background-color: var(--krz-orange);
}

.brindamos-item h4 {
    font-size: 1.3rem;
    color: var(--krz-blue);
    margin-bottom: 15px;
}

.brindamos-item p {
    color: #666;
    line-height: 1.6;
}

/* =========================================
   7. PÁGINAS LEGALES (LIBRO DE RECLAMACIONES)
   ========================================= */

.page-container {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 5%;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-header h1 {
    font-size: 2.5rem;
    color: var(--krz-blue);
    margin-bottom: 0.5rem;
}

.legal-header p {
    color: #555;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Contenedor del Formulario */
.form-container {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-top: 6px solid var(--krz-orange);
}

.company-data {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--krz-blue);
}

.company-data p {
    color: #444;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Estructura del Formulario (Fieldsets) */
.reclamaciones-form fieldset {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    background-color: #fafafa;
}

.reclamaciones-form legend {
    background-color: var(--krz-blue);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    border-radius: 4px;
    font-size: 1.1rem;
}

/* Cuadrícula de inputs */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group.full-width {
    grid-column: 1 / -1;
    /* Hace que ocupe todo el ancho disponible */
}

/* Estilos de los inputs, selects y textareas */
.reclamaciones-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--krz-black);
    margin-bottom: 0.5rem;
}

.reclamaciones-form input[type="text"],
.reclamaciones-form input[type="tel"],
.reclamaciones-form input[type="email"],
.reclamaciones-form input[type="number"],
.reclamaciones-form textarea {
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.reclamaciones-form input:focus,
.reclamaciones-form textarea:focus {
    border-color: var(--krz-orange);
    box-shadow: 0 0 0 3px rgba(242, 92, 5, 0.15);
    /* Efecto halo naranja */
}

/* Radios y Checkboxes */
.radio-group {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    background-color: var(--white);
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400 !important;
    /* Sobrescribe la negrita de los labels normales */
    color: #444;
    cursor: pointer;
}

/* Botón Final */
.form-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.form-footer a {
    color: var(--krz-blue);
    font-weight: 600;
}

.form-submit-btn {
    font-size: 1.2rem;
    padding: 1rem 3rem;
    border: none;
    cursor: pointer;
}

/* --- Contenido de Textos Legales (Privacidad, Términos, etc.) --- */
.legal-content-box {
    background-color: var(--white);
    padding: 4rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border-top: 6px solid var(--krz-blue);
    /* Usamos azul para diferenciarlo del naranja de reclamaciones */
    color: #444;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.4rem;
    color: var(--krz-black);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.legal-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    /* Un interlineado alto hace que el texto largo no canse la vista */
    margin-bottom: 1rem;
    text-align: justify;
    /* Justificamos el texto para que parezca un documento legal */
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-section li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-section strong {
    color: var(--krz-blue);
    /* Resalta las palabras clave en azul corporativo */
}

/* =========================================
   11. PÁGINA DE TIENDA
   ========================================= */

/* Contenedor Principal (Grid de 2 columnas) */
.tienda-layout {
    max-width: 1400px;
    margin: 3rem auto 5rem auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 280px 1fr;
    /* 280px para filtros, el resto para productos */
    gap: 40px;
    align-items: start;
}

/* --- BARRA LATERAL (FILTROS) --- */
.tienda-sidebar {
    background-color: var(--white);
    border: 1.5px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    color: var(--krz-black);
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.1rem;
    color: var(--krz-black);
    border-left: 4px solid var(--krz-orange);
    padding-left: 10px;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

/* Selectores de Filtro */
.filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fafafa;
    color: var(--krz-black);
    font-family: inherit;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--krz-orange);
    
}

/* Lista de Categorías */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.8rem;
}

.category-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-list a {
    color: #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    text-decoration: none;
}

.category-list a:hover {
    color: var(--krz-orange);
}

.category-list i {
    font-size: 0.7rem;
    color: var(--krz-orange);
}

/* Clases activas cuando se hace clic en JS */
.category-list li.activo .sub-categorias {
    max-height: 300px; /* Crecemos lo suficiente para que entren las opciones */
    opacity: 1; /* Se vuelve totalmente visible */
    margin-top: 10px;
}

.category-list li.activo .cat-toggle i {
    transform: rotate(180deg);
    color: var(--krz-orange);
}

.btn-agregar {
    margin-top: auto;
    width: 100%;
    padding: 10px 0;
    background-color: var(--krz-orange); /* Cambiado de negro a naranja */
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-agregar:hover {
    background-color: #d14b00; /* Naranja más oscuro al pasar el mouse */
    transform: scale(1.02);
}

/* --- CONTENIDO PRINCIPAL --- */
.tienda-content {
    display: flex;
    flex-direction: column;
}

/* Barra Superior (Resultados y Ordenamiento) */
.tienda-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.resultados-text {
    color: var(--krz-gray);
    font-size: 0.95rem;
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: var(--white);
    font-family: inherit;
    color: var(--krz-black);
    cursor: pointer;
}

/* Cuadrícula de productos (Adaptada al nuevo espacio) */
.productos-grid {
    display: grid;
    /* Reducimos un poco el minmax para que sigan entrando 3 o 4 por fila */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

/* Tarjeta individual (Mantenemos tu diseño que estaba perfecto) */
.producto-card {
    background-color: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.producto-img {
    height: 220px;
    overflow: hidden;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.producto-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.producto-card:hover .producto-img img {
    transform: scale(1.1);
}

.producto-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.categoria-tag {
    font-size: 0.75rem;
    color: var(--krz-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.producto-info h3 {
    font-size: 1rem;
    color: var(--krz-black);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.precio {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--krz-orange);
    margin-bottom: 1.2rem;
}

.btn-agregar {
    margin-top: auto;
    width: 100%;
    padding: 10px 0;
    background-color: var(--krz-black);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-agregar:hover {
    background-color: var(--krz-orange);
    transform: scale(1.02);
}

/* =========================================
   ESTILOS PARA EL FILTRO ACTIVO DE CATEGORÍAS
   ========================================= */
.filtro-cat-btn {
    color: #6b6b6b;
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.filtro-cat-btn:hover {
    color: var(--krz-orange);
}

/* Esta clase se activará mediante JavaScript cuando el usuario elija una categoría */
.filtro-cat-btn.activo {
    color: var(--krz-orange);
    font-weight: 700;
}

/* =========================================
   BUSCADOR PREDICTIVO FLOTANTE (ESTILO E-COMMERCE)
   ========================================= */
.search-dropdown-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: auto;
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--krz-black);
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: var(--light-bg);
}

.search-result-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 6px;
    background-color: #f9f9f9;
    margin-right: 12px;
    padding: 2px;
    border: 1px solid #eee;
}

.search-result-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result-title {
    font-size: 0.9rem;
    color: var(--krz-black);
    font-weight: 500;
    padding-right: 10px;
}

.search-result-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--krz-black);
    white-space: nowrap;
}

.search-no-results {
    padding: 15px;
    text-align: center;
    color: var(--krz-gray);
    font-size: 0.9rem;
}


/* =========================================
   8. RESPONSIVE DESIGN (MÓVILES Y TABLETS)
   ========================================= */

/* --- TABLETS (Pantallas hasta 992px) --- */
@media (max-width: 992px) {

    /* 1. Buscador más flexible */
    .search-container {
        width: 100%;
        max-width: 350px;
    }

    /* 2. Ocultamos los enlaces de texto de la barra gris, dejamos solo el botón */
    .categories-links {
        display: none;
    }

    /* 3. Footer pasa de 4 columnas a 2 */
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* 4. Ajustes de la página Nosotros */
    .quienes-somos-container {
        flex-direction: column;
        text-align: center;
    }

    .tienda-layout {
        grid-template-columns: 1fr;
        /* Pasa de 2 columnas a 1 sola */
    }

    .tienda-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* --- CELULARES (Pantallas hasta 768px) --- */
@media (max-width: 768px) {

    /* 1. EL HEADER: Rompemos la fila para que el buscador baje */
    .header-container {
        flex-wrap: wrap;
        /* Permite que los elementos pasen a otra línea */
        gap: 15px;
        padding: 15px 5%;
    }

    .header-left,
    .header-right {
        flex: 1;
        /* Ocupan la mitad de arriba */
    }

    .header-center {
        flex: 100%;
        /* Obliga al buscador a usar toda una fila nueva */
        order: 3;
        /* Lo manda al final del header */
    }

    .search-container {
        max-width: 100%;
        /* Usa todo el ancho del celular */
    }

    /* 2. BOTÓN WHATSAPP: Ocultamos el texto, dejamos el icono */
    .wsp-text-wrapper {
        display: none;
    }

    .wsp-pill {
        padding: 0;
        background-color: transparent;
        box-shadow: none;
    }

    .wsp-pill:hover {
        background-color: transparent;
        box-shadow: none;
    }

    .wsp-icon-wrapper {
        margin-left: 0;
    }

    /* 3. SLIDER: Textos más chicos y altura controlada */
    .slider-section {
        height: 450px;
        /* En celular, una altura fija evita que ocupe demasiado espacio */
    }

    .slider-container {
        height: 100%;
    }

    .slide-content {
        left: 5%;
        right: 5%;
        text-align: center;
        /* Centramos el texto en móviles */
    }

    .slide-content h2 {
        font-size: 2.2rem;
    }

    .slide-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn-producto {
        margin: 0 auto;
        /* Centra el botón */
    }

    /* Ocultamos las flechas del slider en celular porque ocupan mucho espacio */
    .slider-btn {
        display: none;
    }

    /* 4. FOOTER Y FORMULARIOS: Todo a 1 sola columna */
    .mv-grid,
    .brindamos-grid,
    .form-grid {
        grid-template-columns: 1fr !important;
    }

    /* 4. FOOTER ESTILO PROMART (ACORDEÓN MÓVIL) */
    .footer-top-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        /* Quitamos el espacio para usar líneas divisorias */
        padding-bottom: 20px;
        border-bottom: none;
    }

    /* Centramos el logo y redes en celular */
    .col-krz-brand {
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-logo-img {
        margin: 0 auto 1.5rem auto;
    }

    .krz-social-links {
        justify-content: center;
    }

    /* Diseño de los botones del acordeón */
    .accordion-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0 !important;
        padding: 1.2rem 0;
        border-top: 1px solid #333;
        /* La línea divisoria gris oscura */
        cursor: pointer;
    }

    /* Habilitamos la flecha naranja */
    .icon-accordion {
        display: block;
        color: var(--krz-orange);
        font-size: 1.2rem;
        transition: transform 0.3s ease;
    }

    /* Ocultamos las listas por defecto */
    .accordion-col ul {
        display: flex !important;
        flex-direction: column;

        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding: 0;
        margin: 0;

        transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    }

    .accordion-col.activo ul {
        max-height: 300px;
        opacity: 1;
        /* Se vuelve 100% visible */
        padding: 1rem 0 1.5rem 0;
        ;
    }

    .accordion-col.activo .icon-accordion {
        transform: rotate(180deg);
    }

    /* Centrado final del Libro y Texto Legal */
    .link-libro {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid #333;
    }

    .libro-reclamaciones {
        margin-left: auto;
        /* Anulamos el margen izquierdo del escritorio */
        margin-right: auto;
    }

    .footer-bottom-bar {
        text-align: center;
        font-size: 0.75rem;
        line-height: 1.6;
        padding-top: 1rem;
    }

    /* Ajuste en el menú desplegable para que no se salga de la pantalla */
    .menu-dropdown {
        width: 90vw;
        /* Usa el 90% del ancho de la pantalla */
        left: 5vw;
    }
}