/* =============================================
   ARTECALLI - Estilos principales
   ============================================= */

:root {
    --color-primary: #000000;
    --color-primary-dark: #152a45;
    --color-secondary: #f8f9fa;
    --color-accent: #8B7355;
    --color-text: #333333;
    --color-text-muted: #6c757d;
    --color-border: #e5e7eb;
    --color-bg-light: #f9fafb;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: #fff;
}

/* Typography */
.brand-text,
h1, h2, h3, h4, h5,
.section-title {
    font-family: var(--font-heading);
    color: var(--color-primary);
}

.letter-spacing {
    letter-spacing: 2px;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background-color: #0000005c !important;
    box-shadow: 0 1px 3px rgba(243, 240, 240, 0.1);
}

.navbar-brand .brand-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.781);
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.781) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.navbar .nav-link:hover {
    color: rgba(243, 240, 240, 0.1) !important;
}

.admin-btn {
    color: #fff !important;
    border-radius: 8px;
    padding: 0.5rem 1.25rem !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    transform: translateY(-1px);
}

.admin-icon {
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--color-primary);
    color: #fff !important;
    transition: all 0.3s ease;
}

.admin-icon:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

/* Cart Icon */
.cart-icon {
    position: relative;
    color: rgba(255, 255, 255, 0.781) !important;
    font-size: 1.25rem;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 50%;
    padding: 0 4px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-image: url('../images/hero-bg1.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* --- Estilos para el Logo del Hero --- */
.hero-logo {
    max-width: 170px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.4));
    display: inline-block;
}

@media (max-width: 768px) {
    .hero-logo {
        max-width: 100px;
        margin-bottom: 1rem;
    }
}

/* --- Efecto de fondo ovalado pequeño con blur --- */
.logo-container-blur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12); 
    backdrop-filter: blur(10px);          
    -webkit-backdrop-filter: blur(10px);   
    border-radius: 50%;                    
    padding: 18px;
    margin-bottom: 20px;      
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.hero-logo-white {
    max-width: 85px;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo-container-blur {
        padding: 12px;
    }
    .hero-logo-white {
        max-width: 65px;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}

.hero-title {
    font-family: var(--font-heading);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Catalogo Section */
.catalogo-section {
    background-color: var(--color-bg-light);
}

.search-filter-container {
    max-width: 900px;
    margin: 0 auto;
}

.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.search-input {
    padding-left: 2.75rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    height: 48px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.filter-toggle-btn {
    height: 48px;
    border-radius: 8px;
    font-weight: 500;
    border-color: var(--color-border);
}

.filter-toggle-btn:hover {
    border-color: var(--color-primary);
    color: #fff;
}

.filtros-panel {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.filtros-panel .form-select {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    height: 44px;
    font-size: 0.9rem;
}

.filtros-panel .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-range::-webkit-slider-thumb {
    background: var(--color-primary);
}

.form-range::-moz-range-thumb {
    background: var(--color-primary);
}

/* Product Cards */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.card-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    background-color: var(--color-bg-light);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: var(--color-bg-light);
}

.product-card .card-body {
    padding: 1.25rem;
}

.categoria-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: black;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-card .card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.973);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-card .card-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.btn-ver-detalles {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    background-color: transparent;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-ver-detalles:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* Nosotros Section */
.nosotros-section {
    background-color: #fff;
}

.carousel-custom {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-custom img {
    height: 400px;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    opacity: 1;
    margin: 0 1rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) brightness(0);
    width: 16px;
    height: 16px;
}

.carousel-indicators {
    bottom: 1rem;
}

.carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
}

.carousel-indicators button.active {
    background-color: #fff;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.1);
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    border-radius: 10px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-card h6 {
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

/* Footer */
footer {
    background-color: var(--color-primary-dark) !important;
}

footer a:hover {
    color: white !important;
}

/* Modal de Producto */
.producto-modal {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    max-width: 450px;
    margin: 0 auto;
}

.btn-close-modal {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text-muted);
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.btn-close-modal:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.modal-producto-titulo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    padding: 1.5rem;
    padding-right: 3rem;
    margin: 0;
}

.modal-producto-imagen {
    width: 100%;
    height: 280px;
    background: var(--color-bg-light);
    overflow: hidden;
}

.modal-producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-producto-descripcion {
    padding: 1.25rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
    border-bottom: 1px solid var(--color-border);
}

.modal-producto-tags {
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--color-text);
}

.tag-label {
    color: var(--color-text-muted);
}

.modal-producto-footer {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.modal-precio {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.modal-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stock-disponible {
    background: #d1fae5;
    color: #065f46;
}

.stock-agotado {
    background: #fee2e2;
    color: #991b1b;
}

/* Cantidad en Modal */
.modal-cantidad {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.cantidad-control {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 130px;
}

.cantidad-control .btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-text);
    font-size: 1rem;
}

.cantidad-control .btn:first-child {
    border-radius: 6px 0 0 6px;
}

.cantidad-control .btn:last-child {
    border-radius: 0 6px 6px 0;
}

.cantidad-control .btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.cantidad-control input {
    width: 54px;
    height: 38px;
    text-align: center;
    border: 1px solid var(--color-border);
    border-left: none;
    border-right: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.cantidad-control input:focus {
    outline: none;
}

/* Botones de compra */
.modal-acciones {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-comprar-ahora {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-primary);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-comprar-ahora:hover {
    background: #333;
    transform: translateY(-1px);
}

.btn-comprar-ahora:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-agregar-carrito {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    background: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-agregar-carrito:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-agregar-carrito:disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.toast-notification.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Carrito Page */
.carrito-section {
    min-height: calc(100vh - 200px);
    padding-top: 100px;
    background: var(--color-bg-light);
}

.cart-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: all 0.3s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg-light);
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h5 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--color-primary);
}

.cart-item-info .text-muted {
    font-size: 0.85rem;
}

.cart-item-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.cart-summary {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.cart-summary h4 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cart-summary-total {
    font-size: 1.25rem;
    font-weight: 700;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    margin-top: 1rem;
}

/* Checkout */
.checkout-section {
    min-height: calc(100vh - 200px);
    padding-top: 100px;
    background: var(--color-bg-light);
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-border);
    color: var(--color-text-muted);
    border-radius: 50%;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--color-primary);
    color: #fff;
}

.step.completed .step-number {
    background: #10b981;
    color: #fff;
}

.step-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
}

.step.active .step-label {
    color: var(--color-primary);
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--color-border);
    margin: 0 1rem;
    margin-bottom: 1.5rem;
    max-width: 60px;
}

.step-line.completed {
    background: #10b981;
}

/* Color dot */
.color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
}

/* Responsive */
@media (max-width: 991px) {
    .navbar {
        background-color: #fff !important;
    }
    
    .navbar .nav-link {
        color: var(--color-text) !important;
    }
    
    .navbar-brand .brand-text {
        color: var(--color-primary);
    }
    
    .cart-icon {
        color: var(--color-text) !important;
    }
    
    .navbar-collapse {
        padding: 1rem 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .card-img-wrapper {
        height: 220px;
    }
    
    .carousel-custom img {
        height: 280px;
    }
    
    .modal-producto-imagen {
        height: 220px;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-image {
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .filtros-panel .col-md-3 {
        margin-bottom: 0.5rem;
    }
    
    .checkout-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .step-line {
        display: none;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.producto-card {
    animation: fadeIn 0.5s ease forwards;
}

.producto-card:nth-child(1) { animation-delay: 0s; }
.producto-card:nth-child(2) { animation-delay: 0.05s; }
.producto-card:nth-child(3) { animation-delay: 0.1s; }
.producto-card:nth-child(4) { animation-delay: 0.15s; }
.producto-card:nth-child(5) { animation-delay: 0.2s; }
.producto-card:nth-child(6) { animation-delay: 0.25s; }
.producto-card:nth-child(7) { animation-delay: 0.3s; }
.producto-card:nth-child(8) { animation-delay: 0.35s; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* Checkout Form */
.checkout-form-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
}

.checkout-form-card h4,
.checkout-form-card h5 {
    font-family: var(--font-heading);
    color: var(--color-primary);
}

.checkout-form-card .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
}

.checkout-form-card .form-control {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.checkout-form-card .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

/* Checkout Summary */
.checkout-summary {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.checkout-summary h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.checkout-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-info h6 {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--color-text);
}

.checkout-item-price {
    font-weight: 600;
    color: var(--color-primary);
}

.checkout-totals {
    padding-top: 1rem;
}

/* Checkout Steps */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 100px;
}

.checkout-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.checkout-steps .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-border);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.checkout-steps .step.active .step-number {
    background: var(--color-primary);
    color: #fff;
}

.checkout-steps .step.completed .step-number {
    background: var(--color-success, #28a745);
    color: #fff;
}

.checkout-steps .step.completed .step-number::before {
    content: '\2713';
}

.checkout-steps .step-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.checkout-steps .step.active .step-label {
    color: var(--color-primary);
    font-weight: 600;
}

.checkout-steps .step-line {
    width: 80px;
    height: 2px;
    background: var(--color-border);
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-primary);
    color: #fff;
    padding: 1rem 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-banner .cookie-link {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-banner .cookie-link:hover {
    color: #fff;
}

/* Métodos de pago */
.metodo-pago-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.metodo-pago-item:hover {
    border-color: var(--color-primary) !important;
    background: rgba(30, 58, 95, 0.02);
}

.metodo-pago-item.active {
    border-color: var(--color-primary) !important;
    background: rgba(30, 58, 95, 0.05);
}

.metodo-pago-item .form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Legal checkboxes */
.legal-checkboxes a {
    color: var(--color-primary) !important;
    font-weight: 600;
}

.legal-checkboxes a:hover {
    text-decoration: underline !important;
}

/* Checkout section padding top */
.checkout-section {
    padding-top: 20px !important;
}

/* Legal page styles */
.legal-content h4 {
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.legal-content h5 {
    color: var(--color-text);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.legal-content ul {
    padding-left: 1.5rem;
}

.legal-content a {
    color: var(--color-primary);
}

/* Direcciones seleccionables en checkout */
.direccion-seleccionable {
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.direccion-seleccionable:hover {
    border-color: var(--color-primary);
    background: rgba(30, 58, 95, 0.02);
}

.direccion-seleccionable.selected {
    border-color: var(--color-primary);
    background: rgba(30, 58, 95, 0.05);
}

.direccion-seleccionable .form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* User dropdown menu */
.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.user-dropdown {
    min-width: 200px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.5rem;
}

.user-dropdown .dropdown-header {
    padding: 0.5rem 1rem;
}

.user-dropdown .dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 1rem;
}

.user-dropdown .dropdown-item:hover {
    background: var(--color-bg-light);
}

.user-dropdown .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
}

/* --- Arreglo para el espacio blanco a la derecha en móviles --- */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Evita que los contenedores de Bootstrap generen desbordamiento */
.container, .container-fluid {
    overflow: hidden !important;
}