html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

.glass-blur {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    background: rgba(255,255,255,0.2);
}

.glass-border {
    border: 0.5px solid rgba(255,255,255,0.4);
    border-radius: 6px;
}

body {
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

.producto-imagen {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.producto-imagen-placeholder {
    height: 200px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.producto-imagen-detalle {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

.producto-imagen-placeholder-detalle {
    height: 400px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.card {
    transition: transform 0.2s;
}

.precio-container {
    min-height: 50px;
}

.precio-item {
    border-left: 3px solid #28a745;
    padding-left: 10px;
}

.logo-img {
    height: 250px;
    width: auto;
}

.footer {
    line-height: 40px;
}

    .footer .row {
        align-items: center;
    }

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.carrito-imagen {
    height: 60px;
    width: 60px;
    object-fit: cover;
}

.carrito-imagen-placeholder {
    height: 60px;
    width: 60px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.sticky-top {
    top: 20px;
}

.badge {
    font-size: 0.7em;
}

.contenido-editable {
    min-height: 100px;
    line-height: 1.6;
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

/* Estilos para la página Contacto */
.contacto-section {
    border-left: 3px solid #e9ecef;
    padding-left: 15px;
    margin-bottom: 1.5rem;
}

    .contacto-section.telefono {
        border-left-color: #007bff;
    }

    .contacto-section.whatsapp {
        border-left-color: #25d366;
    }

    .contacto-section.email {
        border-left-color: #17a2b8;
    }

.persona-contacto {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #ffc107;
}

/* Galería de contacto */
.galeria-item-contacto {
    position: relative;
    overflow: hidden;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .galeria-item-contacto:hover {
        transform: scale(1.05);
    }

.galeria-contacto-imagen {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.galeria-contacto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.375rem;
}

    .galeria-contacto-overlay i {
        color: white;
        font-size: 1rem;
    }

.galeria-item-contacto:hover .galeria-contacto-overlay {
    opacity: 1;
}

/* Mapa estático y croquis */
.mapa-estatico {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.mapa-imagen {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
}

.mapa-fallback {
    height: 200px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

/* Croquis */
.croquis-imagen-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid #dee2e6;
}

    .croquis-imagen-container:hover {
        transform: scale(1.02);
        border-color: #007bff;
    }

.croquis-imagen {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.croquis-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px;
    color: white;
    font-weight: 500;
}

.croquis-imagen-container:hover .croquis-overlay {
    opacity: 1;
}

.croquis-overlay i {
    font-size: 1.2rem;
}

/* Direccion completa */
.direccion-completa p {
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-left: 3px solid #dc3545;
    margin-bottom: 8px;
    border-radius: 0 4px 4px 0;
}

/* Enlaces de ubicación */
.ubicaciones-enlaces .btn {
    border-width: 2px;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .galeria-contacto-imagen {
        height: 60px;
    }

    .mapa-dinamico {
        height: 250px;
    }

    .persona-contacto {
        padding: 10px;
    }
}

/* Botón de venta por tarima en catálogo */
.btn-warning.btn-lg {
    background: linear-gradient(45deg, #ffc107, #ffb300);
    border: none;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .btn-warning.btn-lg:hover {
        background: linear-gradient(45deg, #ffb300, #ff8f00);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4) !important;
    }

/* Estilos para página de Mayoreo */
.mayoreo-card {
    border: 2px solid #fff3cd;
    transition: all 0.3s ease;
}

    .mayoreo-card:hover {
        border-color: #ffc107;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2) !important;
    }

.tarima-info {
    background-color: #fff3cd;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
}

.precio-mayoreo {
    background-color: #fffbf0;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
}

.precio-item-mayoreo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.precio-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Estilos para detalle de mayoreo */
.tarima-detalle {
    border-left: 4px solid #ffc107;
    padding-left: 15px;
}

.precio-detalle {
    background-color: #fffbf0;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ffc107;
    margin-bottom: 10px;
}

.precios-mayoreo {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.cantidad-minima {
    margin-top: 10px;
}

/* Mejoras para el header con efectos glass */
.header-with-background {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/header-background.jpg');
    background-size: cover;
    background-position: center 50%; /* CAMBIO: centrar la imagen */
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 160px; /* Aumentado para el título */
    position: relative;
    padding: 40px 0; /* Evitar el espacio en blanco */
}

/* Título centrado arriba */
.header-title-container {
    padding: 10px 0 20px 0;
}

.header-title {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    padding: 15px 30px;
    margin: 0 auto;
    display: inline-block;
    max-width: fit-content;
}

/* Contenedor para los enlaces de navegación */
.nav-glass-container {
    gap: 15px; /* Separación entre botones */
    justify-content: center;
    flex-wrap: wrap;
}

/* Mejoras para los enlaces glass */
.nav-link-custom {
    color: #ffffff !important;
    font-weight: 700; /* Texto más grueso */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    padding: 12px 20px !important;
    margin: 5px;
    white-space: nowrap;
}

    .nav-link-custom:hover {
        color: #f0f0f0 !important;
        transform: translateY(-2px);
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
        background: rgba(255,255,255,0.3) !important;
    }

/* Mejorar efectos glass */
.glass-blur {
    backdrop-filter: blur(8px); /* Más blur */
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.15); /* Más transparencia */
}

.glass-border {
    border: 1px solid rgba(255,255,255,0.6); /* Borde más visible */
    border-radius: 12px; /* Bordes más redondeados */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Sombra */
}

/* Logo más grande con posición absoluta */
.navbar-brand {
    position: absolute !important;
    left: 20px;
    top: 30%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Logo más pequeño */
.logo-img {
    height: 250px; /* Reducido */
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

/* Navbar sin fondo */
.navbar {
    background: transparent !important;
    padding: 10px 0;
    padding: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-with-background {
        min-height: 120px;
        background-attachment: scroll;
        padding: 15px 0;
    }

    .header-title {
        font-size: 1.4rem;
        padding: 10px 20px;
    }

    .nav-glass-container {
        gap: 10px;
    }

    .nav-link-custom {
        padding: 10px 15px !important;
        margin: 3px;
        font-size: 0.9rem;
    }

    .logo-img {
        height: 50px;
    }
}

/* Responsive para mayoreo */
@media (max-width: 768px) {
    .precio-item-mayoreo {
        flex-direction: column;
        align-items: flex-start;
    }

    .mayoreo-card {
        margin-bottom: 1rem;
    }

    .tarima-info {
        margin-bottom: 1rem;
    }

    /* Estilos para acordeón de Nosotros */
    .accordion {
        --bs-accordion-border-radius: 0.5rem;
        --bs-accordion-border-color: #e9ecef;
    }

    .accordion-item {
        border: none;
        margin-bottom: 1rem;
        border-radius: 0.5rem !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        overflow: hidden;
    }

    .accordion-button {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border: none;
        padding: 1.25rem 1.5rem;
        font-weight: 600;
        color: #495057;
        transition: all 0.3s ease;
    }

        .accordion-button:not(.collapsed) {
            background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
            color: white;
            box-shadow: none;
        }

        .accordion-button:focus {
            box-shadow: none;
            border: none;
        }

        .accordion-button::after {
            transition: transform 0.3s ease;
        }

        .accordion-button:not(.collapsed)::after {
            transform: rotate(180deg);
        }

    .accordion-body {
        padding: 1.5rem;
        background-color: #fff;
        border-top: 1px solid #e9ecef;
    }

    .contenido-acordeon {
        line-height: 1.7;
        color: #495057;
    }

        .contenido-acordeon p {
            margin-bottom: 1rem;
        }

            .contenido-acordeon p:last-child {
                margin-bottom: 0;
            }

    /* Efectos hover para botones del acordeón */
    .accordion-button.collapsed:hover {
        background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
        transform: translateY(-1px);
    }

    .accordion-button:not(.collapsed):hover {
        background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    }

    /* Iconos en el acordeón */
    .accordion-button i {
        font-size: 1.1rem;
    }

    /* Animación suave para el contenido */
    .accordion-collapse {
        transition: all 0.3s ease;
    }

    /* Responsive para acordeón */
    @media (max-width: 768px) {
        .accordion-button {
            padding: 1rem;
            font-size: 0.95rem;
        }

            .accordion-button span {
                font-size: 0.9rem;
            }

        .accordion-body {
            padding: 1rem;
        }

        /* Estilos para vendedores en Contacto */
        .vendedores-grid {
            background-color: #f8f9fa;
            padding: 1rem;
            border-radius: 8px;
            border-left: 3px solid #007bff;
        }

        .vendedor-item {
            background-color: white;
            padding: 1rem;
            border-radius: 6px;
            border: 1px solid #e9ecef;
            transition: all 0.3s ease;
        }

            .vendedor-item:hover {
                box-shadow: 0 4px 12px rgba(0,0,0,0.1);
                transform: translateY(-1px);
            }

        .vendedor-avatar {
            width: 40px;
            text-align: center;
        }

        .vendedores-info .alert {
            margin-bottom: 0;
            font-size: 0.9rem;
        }

        /* Responsive para vendedores */
        @media (max-width: 768px) {
            .vendedor-item .d-flex {
                flex-direction: column;
                text-align: center;
            }

            .vendedor-avatar {
                margin-bottom: 0.5rem;
            }

            .vendedores-grid {
                padding: 0.75rem;
            }
        }
    }
    /* Responsive para móviles */
    @media (max-width: 768px) {
        .navbar-brand {
            position: relative !important;
            left: auto;
            top: auto;
            transform: none;
            text-align: center;
            margin-bottom: 10px;
        }

        .logo-img {
            height: 80px; /* Más pequeño en móvil */
        }

        .navbar {
            padding-left: 0; /* Sin padding extra en móvil */
            flex-direction: column;
            align-items: center;
        }

        .header-with-background {
            background-position: center center; /* Centrado en móvil */
            background-attachment: scroll;
        }
    }

    /* Enlace discreto al panel admin */
    .admin-link-discreto {
        color: #6c757d;
        text-decoration: none;
        font-size: 1.2rem;
        opacity: 0.5;
        transition: opacity 0.3s;
    }

        .admin-link-discreto:hover {
            opacity: 1;
            color: #495057;
            text-decoration: none;
        }

}    