* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Encabezado y navegación */
header {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    color: white;
    padding: 1.2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
    top: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Estilos para el dashboard */
        .dashboard-btn {
            background-color: #4361ee;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 5px;
            margin-left: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 14px;
            transition: background-color 0.3s;
        }
        
        .dashboard-btn:hover {
            background-color: #3a56d4;
        }

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.logo span {
    color: #ff5252;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
}

nav ul li a:hover {
    color: #ffcccb;
    background-color: rgba(255, 255, 255, 0.1);
}

.cart-icon-container {
    position: relative;
}

.cart-icon {
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
    padding: 0.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.cart-icon:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.2);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff5252;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sección hero */
.hero {
    background: linear-gradient(rgba(13, 71, 161, 0.9), rgba(13, 71, 161, 0.8)), url('/assets/images/fondo.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero .redsoc {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Empresas */
.emp {
    background: white;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.emp h1 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 4px rgba(248, 3, 3, 0.808);
}

.emp p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    background-color: #ff5252;
    color: white;
    padding: 0.9rem 2.2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 82, 82, 0.3);
}

.btn:hover {
    background-color: #ff1744;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 82, 82, 0.4);
}

/* Sección productos */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #0d47a1;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background-color: #ff5252;
    border-radius: 2px;
}

.categories {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.category-btn {
    background-color: white;
    color: #0d47a1;
    border: 2px solid #0d47a1;
    padding: 0.7rem 1.8rem;
    margin: 0 0.5rem 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background-color: #0d47a1;
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    min-height: 400px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #0d47a1;
    opacity: 1;
    transform: scale(1);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f5f5f5;
}

.product-card h3 {
    color: #0d47a1;
    padding: 1.2rem 1.2rem 0.5rem;
    font-size: 1.4rem;
}

.product-category {
    padding: 0 1.2rem;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.product-price {
    color: #ff5252;
    font-size: 1.8rem;
    font-weight: 800;
    padding: 0 1.2rem;
    margin-bottom: 0.5rem;
}

.product-stock {
    color: #4CAF50;
    font-weight: 600;
    padding: 0 1.2rem;
    margin-bottom: 1.2rem;
}

.product-card .btn {
    margin: 0 1.2rem 1.2rem;
    padding: 0.7rem 1.5rem;
    width: calc(100% - 2.4rem);
    text-align: center;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.2rem;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0d47a1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.2rem;
}

.no-products i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background-color: #ffebee;
    border-radius: 8px;
    color: #c62828;
    border-left: 4px solid #ff5252;
}

/* Sidebar Carrito */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: #0d47a1;
    color: white;
}

.cart-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.close-cart:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-info h4 {
    color: #0d47a1;
    margin-bottom: 0.3rem;
}

.item-price {
    color: #ff5252;
    font-weight: 700;
    font-size: 1.2rem;
}

.item-quantity {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.quantity-btn {
    background-color: #f0f0f0;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.quantity-value {
    margin: 0 0.8rem;
    font-weight: 600;
    min-width: 25px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    color: #ff5252;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 0.5rem;
    padding: 0.3rem;
    border-radius: 4px;
}

.remove-item:hover {
    background-color: rgba(255, 82, 82, 0.1);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 2px solid #f0f0f0;
    background-color: #f8f9fa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0d47a1;
}

#cartTotal {
    color: #ff5252;
}

.btn-pay {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    background-color: #ff5252;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-contac {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    background-color: #04df17;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-pay:hover {
    background-color: #ff1744;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 82, 82, 0.3);
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    font-size: 1.1rem;
}

.empty-cart i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

/* Overlay para cuando el carrito está abierto */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Footer */
footer {
    background-color: #0d47a1;
    color: white;
    padding: 2.5rem 0;
    margin-top: 4rem;
    text-align: center;
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: #ff5252;
}

.footer-text {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    color: #e3f2fd;
}

.copyright {
    color: #bbdefb;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .cart-sidebar {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 0.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }



    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-overlay.active {
        background-color: rgba(0, 0, 0, 0.7);
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Estilos para la galería de empresas (agregar a tu CSS) */
.emp {
    background: white;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.emp h1 {
    color: #0d47a1;
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.emp p {
    color: #0d47a1;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Contenedor del carrusel */
.empresas-slider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.slider-container {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-slide {
    min-width: 25%;
    /* 4 imágenes por vista en desktop */
    padding: 15px;
    box-sizing: border-box;
}

.empresa-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.empresa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.empresa-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.empresa-info {
    padding: 20px;
    text-align: center;
}

.empresa-nombre {
    color: #0d47a1;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.empresa-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Controles del slider */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    gap: 15px;
}

.slider-btn {
    background-color: white;
    color: #0d47a1;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
    background-color: #0d47a1;
    color: white;
    transform: scale(1.05);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: white;
    transform: scale(1.2);
}

.slider .empresa-img {
    max-width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 992px) {
    .slider-slide {
        min-width: 33.333%;
        /* 3 imágenes por vista en tablet */
    }

    .empresa-img {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .emp h1 {
        font-size: 2.2rem;
    }

    .emp p {
        font-size: 1.1rem;
        padding: 0 15px;
    }

    .slider-slide {
        min-width: 50%;
        /* 2 imágenes por vista en móvil */
    }

    .empresa-img {
        height: 130px;
    }
}

@media (max-width: 480px) {
    .slider-slide {
        min-width: 100%;
        /* 1 imagen por vista en móvil pequeño */
    }

    .empresa-img {
        height: 150px;
    }
}



/* TÍTULO */
.reclamos-container h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}



/* TEXTO DE RUC */
.reclamos-container p {
    margin-top: 12px;
    font-size: 15px;
    color: #ffffff;
}
/* ===== FOOTER TARJETAS LIMPIAS ===== */
.info-row {
    display: flex;
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto 0;
    align-items: stretch;
}

.info-box {
    flex: 1;
    background: #ffffff;
    color: #003b9b;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* TÍTULOS */
.info-box h3 {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
}

/* IMÁGENES CONTROLADAS */
.info-img {
    width: 100%;
    height: 180px;              /* 🔴 CLAVE */
    object-fit: contain;        /* NO SE DEFORMA */
    background: #f4f6f8;
    padding: 10px;
    border-radius: 8px;
    margin: 12px 0;
}

/* TEXTO */
.info-text {
    font-size: 14px;
    line-height: 1.5;
}

.info-box small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.8;
}

/* MOBILE */
@media (max-width: 768px) {
    .info-row {
        flex-direction: column;
    }
}

