/* ========================================================
   VARIABLES GLOBALES Y TIPOGRAFÍA
   ======================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --bg-card-alt: #f1f5f9;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent-light: #3b82f6;
    --gradient-accent: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    --dark-bg: #0a0e14;
    --dark-border: #1e2a3a;
    --dark-text-secondary: #8b95a5;
    --shadow-card: 0 1px 2px rgba(0,0,0,0.04), 0 4px 6px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 10px 25px rgba(0,0,0,0.06), 0 4px 8px rgba(0,0,0,0.04);
    --radius-sm: 8px;
    --radius-md: 14px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body, h1, h2, h3, h4, h5, p, span, a { font-family: 'Inter', sans-serif !important; }
body { background-color: var(--bg-body); color: var(--text-primary); }

/* ========================================================
   2. CABECERA OSCURA B2B (NATIVA + FLEXBOX + ORDEN)
   ======================================================== */

body:not(#index):not(#authentication) #header #_desktop_logo img {
    content: url('https://www.fdos.net/assets/img/logo-light.png') !important;
}

/* 1. Fondo oscuro global */
#header { 
    background: #0a0e14 !important; 
    border-bottom: 1px solid #1e2a3a !important; 
    position: relative !important; 
}

/* 2. Superponer la barra superior entera para aprovechar su cuadrícula nativa */
#header .header-nav { 
    background: transparent !important; 
    border: none !important; 
    margin: 0 !important; 
    padding: 0 !important; 
    min-height: 0 !important; 
    position: absolute !important; /* Sacamos la barra entera */
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important;
    pointer-events: none !important; /* Truco: la hace invisible a los clics para no bloquear tu logo */
}

/* 3. Asegurar espacio para el logo en la barra principal */
#header .header-top { padding: 16px 0 !important; }
#_desktop_logo { display: block !important; visibility: visible !important; opacity: 1 !important; margin: 0 !important; }
#_desktop_logo img { height: 44px !important; width: auto !important; }

/* --- 4. TELETRANSPORTE Y FLEXBOX PARA EL ORDEN --- */
/* Como usa la cuadrícula nativa, ya está alineado con los productos. Solo lo empujamos al final. */
#header .header-nav .right-nav {
    position: static !important; /* Le quitamos el absolute para que no se escape a la pantalla */
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    height: 76px !important; /* Misma altura que la zona del logo (16px padding * 2 + 44px logo) */
    gap: 30px !important; /* Separación de los tres bloques */
    pointer-events: auto !important; /* Reactivamos los clics solo para los botones */
}

/* 6. Fulminar elementos sobrantes nativos */
#contact-link, #search_widget, .search-widget, .material-icons { display: none !important; }

/* ---------------------------------------------------
   ESTILO GLOBAL DE ENLACES
----------------------------------------------------- */
#header .header-nav .right-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
}
#header .header-nav .right-nav a:hover { color: #ffffff !important; }





.cart-count {
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    margin-left: 4px;
}
.fa-sign-out-alt {
    margin-right: 5px;
    margin-left: 15px;
}
.fa-shopping-basket{
    margin-right: 5px;
    background-color: transparent;
}
.cart-preview.active{
    background-color: transparent !important;
}

.fa-user{
    margin-right: 5px;
}

.lang-switch {
            display: flex;
            gap: 6px;
        }

.lang-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}
.lang-btn.active {
    background: #fff;
    color: #0f172a !important;
    font-weight: 700;
    border-color: #fff;
}
.lang-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ========================================================
   MIGAS DE PAN (BREADCRUMB) NATIVAS
   ======================================================== */
.breadcrumb { background: var(--bg-white); border-bottom: 1px solid var(--border-light); padding: 12px 0; margin-bottom: 24px; border-radius: 0; }
.breadcrumb ol { padding: 0; margin: 0; display: flex; gap: 8px; font-size: 0.85rem; background: transparent; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 8px; color: #94a3b8; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li:last-child { color: var(--text-primary); font-weight: 600; }

/* ========================================================
   BARRA DE HERRAMIENTAS (TOOLBAR - RESULTADOS Y ORDEN)
   ======================================================== */
#js-product-list-top { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 24px; box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.total-products { color: var(--text-secondary); font-size: 0.9rem; padding: 0; }
.products-sort-order { display: flex; align-items: center; }
.products-sort-order .select-title { background: var(--bg-card-alt); border: 1px solid var(--border-medium); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 0.9rem; color: var(--text-primary); box-shadow: none; }

/* ========================================================
   GRID DE PRODUCTOS Y TARJETAS
   ======================================================== */
#js-product-list .products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 32px; }
#js-product-list .product-miniature { width: 100%; float: none; margin: 0; padding: 0; }

.product-card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-card); height: 100%; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); border-color: var(--accent-light); }
.product-card img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; background: #f1f5f9; transition: transform 0.3s ease; }
.product-card:hover img { transform: scale(1.03); }

.product-info { 
    padding: 16px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}

/* El contenedor del título */
.product-title { 
    margin-bottom: 6px; 
    line-height: 1.3; 
    text-align: left !important;
}

/* EL CAMBIO CLAVE: Atacamos directamente al enlace */
.product-title a { 
    color: #000000 !important;      /* Negro puro */
    font-weight: 700 !important;    /* Negrita (Bold) */
    text-decoration: none; 
}

/* Cambia opcionalmente a un gris oscuro o azul cuando pasan el ratón por encima */
.product-title a:hover {
    color: var(--accent) !important; 
}

.product-price { 
    font-weight: 700; 
    font-size: 1.1rem; 
    color: var(--accent); 
    margin-bottom: 12px; 
    margin-top: auto; 
}

.btn-add-to-cart { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--gradient-accent); color: #fff; border: none; padding: 10px 0; border-radius: 50px; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: var(--transition); box-shadow: 0 4px 12px rgba(37,99,235,0.2); }
.btn-add-to-cart:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,0.35); color: #fff; }

/* ========================================================
   BLOQUE SUPERIOR: DISEÑO DEFINITIVO Y TOTALMENTE OPERATIVO
   ======================================================== */
/* Contenedor blanco principal en modo Flexbox estricto */
#js-product-list-top {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 14px 24px !important; 
    margin-bottom: 24px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    
    display: flex !important;
    justify-content: space-between !important; /* Manda los productos a la izquierda y el orden a la derecha */
    align-items: center !important;
}

/* Forzamos a la fila interna nativa a expandirse al 100% */
#js-product-list-top .row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Anulamos las columnas fijas de Bootstrap para que se auto-ajusten a los extremos */
#js-product-list-top .col-md-6,
#js-product-list-top .col-xs-12,
#js-product-list-top .col-sm-12,
#js-product-list-top .col-md-4,
#js-product-list-top .col-md-5,
#js-product-list-top .total-products {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}

/* Ocultamos los bloques nativos que no queremos (Paginación superior, títulos, etc.) */
#js-product-list-top .products-nb-per-page,
#js-product-list-top h2.text-uppercase,
#js-product-list-top .hidden-sm-down { 
    display: none !important; 
}

/* --- TEXTO DE LA IZQUIERDA: CANTIDAD DE PRODUCTOS --- */
#js-product-list-top .total-products p {
    margin: 0 !important;
    padding: 0 !important;
    color: #4b5563 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    text-align: left !important;
    display: block !important;
}

/* --- TEXTO DE LA DERECHA: SELECTOR DE ORDENACIÓN --- */
#js-product-list-top .products-sort-order {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

/* Ocultamos quirurgicamente el texto "Ordenar por:" sin alterar las fuentes del bloque */
#js-product-list-top .products-sort-order > span,
#js-product-list-top .products-sort-order .sort-by {
    display: none !important;
}

/* El botón del desplegable ("Relevancia") - Impecable y operativo */
#js-product-list-top .select-title {
    background: #ffffff !important;
    color: #1f2937 !important; 
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 10px 18px !important;
    font-size: 0.9rem !important; 
    font-weight: 500 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-width: 190px !important; 
    width: auto !important;
    cursor: pointer !important;
}

/* Forzamos que el icono de la flecha aparezca y tenga su tamaño real */
#js-product-list-top .select-title i.material-icons {
    display: inline-block !important;
    font-family: 'Material Icons' !important; /* Asegura que PrestaShop cargue su fuente de iconos */
    margin-left: 14px !important;
    font-size: 1.2rem !important; /* Le devolvemos su tamaño */
    color: #4b5563 !important;
    width: auto !important;
    height: auto !important;
}

/* --- REPARACIÓN DEL DESPLEGABLE INTERNO (Para que las opciones no se superpongan) --- */
#js-product-list-top .products-sort-order .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    padding: 8px 0 !important;
}

#js-product-list-top .products-sort-order .dropdown-item {
    display: block !important;
    width: 100% !important;
    padding: 10px 20px !important;
    color: #374151 !important;
    font-size: 0.9rem !important; /* Forzamos tamaño de lectura limpio */
    line-height: 1.4 !important;  /* Separación perfecta entre las líneas de texto */
    text-align: left !important;
    background: transparent !important;
    text-transform: none !important;
}

#js-product-list-top .products-sort-order .dropdown-item:hover {
    background: #f3f4f6 !important; /* Efecto gris suave al pasar el ratón por las opciones */
    color: #111827 !important;
}


/* ========================================================
   PAGINACIÓN NATIVA
   ======================================================== */
.pagination { display: flex; align-items: center; justify-content: space-between; background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 16px 20px; box-shadow: var(--shadow-card); margin-bottom: 40px; }
.pagination .page-list { display: flex; gap: 8px; margin: 0; padding: 0; background: transparent; }
.pagination .page-list li { list-style: none; }
.pagination a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--border-light); color: var(--text-secondary); font-weight: 500; text-decoration: none; transition: var(--transition); background: #fff; }
.pagination a:hover, .pagination .current a { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ========================================================
   PIE DE PÁGINA OSCURO (FOOTER)
   ======================================================== */
.block_newsletter, div[id*="emailsubscription"] { display: none !important; }
.footer-container { background: var(--dark-bg); color: var(--dark-text-secondary); margin-top: 60px; border-top: 1px solid var(--dark-border); padding: 48px 0 24px; }
.footer-container .h3 { color: #fff; font-weight: 600; font-size: 0.95rem; margin-bottom: 16px; }
.footer-container ul { list-style: none; padding: 0; }
.footer-container li { margin-bottom: 8px; }
.footer-container a { color: var(--dark-text-secondary); font-size: 0.9rem; text-decoration: none; transition: var(--transition); }
.footer-container a:hover { color: #fff; text-decoration: none; }
.footer-container .copyright { border-top: 1px solid var(--dark-border); padding-top: 20px; text-align: center; font-size: 0.85rem; color: var(--dark-text-secondary); margin-top: 20px; }

/* ========================================================
   PANTALLAS DE LOGIN Y REGISTRO (MANTENEMOS TU CÓDIGO)
   ======================================================== */
#index #header, #index #footer, #index .breadcrumb, #authentication #header, #authentication #footer, #authentication .breadcrumb { display: none !important; }
#index, #authentication { min-height: 100vh; margin: 0; background: linear-gradient(rgba(10,14,20,0.85), rgba(10,14,20,0.85)), url('../img/login-bg.jpg') center/cover no-repeat fixed !important; }
#index body, #authentication body { background: transparent !important; }
#index #wrapper, #authentication #wrapper { background-color: transparent !important; padding: 0 !important; box-shadow: none !important; min-height: 100vh; display: flex; align-items: center; justify-content: center; }

.fdos-login-page, .fdos-register-page-wrapper { width: 100%; display: flex; align-items: center; justify-content: center; padding: 20px 15px; }
.login-container { width: 100%; max-width: 440px; z-index: 2; }
.register-container { width: 100%; max-width: 520px; z-index: 2; }
.login-card, .register-card { background: #ffffff; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); padding: 44px 40px; }
.brand-section { text-align: center; margin-bottom: 24px; } 
.brand-logo { height: 48px; margin-bottom: 12px; } 
.login-title, .register-title { font-size: 1.8rem; font-weight: 800; color: #0f172a; letter-spacing: -0.5px; margin-bottom: 6px; }
.login-subtitle, .register-subtitle { color: #475569; font-size: 0.95rem; margin-bottom: 24px; }

.custom-form-row { display: flex; margin-left: -6px; margin-right: -6px; margin-bottom: 0px; }
.custom-form-row > div { padding-left: 6px; padding-right: 6px; flex: 0 0 50%; max-width: 50%; }
.form-group-custom { margin-bottom: 14px; } 
.form-label { font-weight: 600; font-size: 0.85rem; color: #0f172a; margin-bottom: 5px; letter-spacing: -0.2px; display: block; text-align: left; }
.school-code-info { font-size: 0.76rem; color: #64748b; margin-top: 3px; display: block; text-align: left; line-height: 1.3; }

.input-group { display: flex; flex-wrap: nowrap; }
.input-group .input-group-text { background: #f1f5f9; border: 1px solid #cbd5e1; border-right: none; color: #64748b; border-radius: 8px 0 0 8px; display: flex; align-items: center; padding: 0 16px; font-size: 0.95rem; }
.form-control-custom { background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 0 8px 8px 0; border-left: none; padding: 12px 16px; font-size: 0.95rem; color: #0f172a; width: 100%; outline: none; }
.input-group:focus-within { box-shadow: 0 0 0 3px rgba(37,99,235,0.15); border-radius: 8px; }
.input-group:focus-within .input-group-text, .input-group:focus-within .form-control-custom { border-color: #2563eb; }

.PS-native-field { display: flex; align-items: flex-start; margin-top: 12px; font-size: 0.83rem; color: #475569; text-align: left; }
.PS-native-field input[type="checkbox"] { margin-top: 3px; margin-right: 8px; accent-color: #2563eb; transform: scale(1.1); }

.btn-login, .btn-register { width: 100%; background: linear-gradient(135deg, #2563eb, #0891b2); color: #fff; border: none; padding: 13px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(37,99,235,0.3); margin-top: 16px; }
.btn-login:hover, .btn-register:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,99,235,0.4); }

.forgot-link { text-align: right; margin-top: 6px; }
.forgot-link a { color: #64748b; font-size: 0.85rem; text-decoration: none; }
.register-link, .back-link { text-align: center; margin-top: 18px; color: #64748b; font-size: 0.9rem; }
.forgot-link a:hover, .register-link a, .back-link a { color: #2563eb; text-decoration: none; font-weight: 500; }
.register-link a:hover, .back-link a:hover { text-decoration: underline; }

.card-language-selector { margin-top: 20px; padding-top: 15px; border-top: 1px solid #e2e8f0; text-align: center; }
.card-language-selector button, .card-language-selector select, .card-language-selector .hidden-md-up, .card-language-selector span { display: none !important; }
.card-language-selector .dropdown-menu { display: flex !important; position: static !important; background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; flex-direction: row; justify-content: center; gap: 12px; transform: none !important; float: none !important; visibility: visible !important; opacity: 1 !important; }
.card-language-selector .dropdown-menu li { list-style: none !important; display: block !important; }
.card-language-selector .dropdown-item { background: #f1f5f9 !important; color: #64748b !important; border: 1px solid #cbd5e1 !important; font-size: 0.8rem !important; font-weight: 600 !important; padding: 8px 20px !important; border-radius: 50px !important; cursor: pointer !important; transition: all 0.3s ease !important; text-transform: uppercase !important; text-decoration: none !important; display: inline-block !important; width: auto !important; }
.card-language-selector .dropdown-item:hover { background: #e2e8f0 !important; color: #0f172a !important; }
.card-language-selector .current .dropdown-item, .card-language-selector .active .dropdown-item { background: #0f172a !important; color: #ffffff !important; border-color: #0f172a !important; }

@media (max-width: 768px) { #header .header-top { flex-wrap: wrap; gap: 12px; } #js-product-list-top { flex-direction: column; align-items: flex-start; } }
@media (max-width: 576px) { .login-card, .register-card { padding: 32px 24px; } }

/* ========================================================
   4. LIMPIEZA DE CABECERA DE CATEGORÍA Y COLUMNAS
   ======================================================== */
/* Fulminamos la imagen de la categoría y su bloque de descripción superior */
.block-category,
#category .block-category,
.category-cover {
    display: none !important;
}

/* Ocultamos el bloque de subcategorías (si aparecieran los círculos nativos) */
#subcategories {
    display: none !important;
}

/* Por si acaso el paso 1 no se aplica inmediatamente en tu servidor, 
   forzamos por CSS que el contenedor de productos ocupe el 100% del ancho */
#left-column {
    display: none !important;
}

#content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* Reajustamos los márgenes de la cuadrícula para que respire */
#products {
    margin-top: 20px !important;
}

/* ========================================================
   5. LIMPIEZA DE PAGINACIÓN INFERIOR
   ======================================================== */
/* Hacemos desaparecer por completo la barra inferior de "Mostrando X de X artículos" y sus enlaces */
#js-product-list #pagination,
.products #pagination,
#js-product-list .pagination {
    display: none !important;
}

/* ========================================================
   DISEÑO EXCLUSIVO DE IDIOMAS PARA LOGIN / REGISTRO
   ======================================================== */
.lang-switch-login {
    display: flex !important;
    gap: 15px !important;
    justify-content: center !important; /* Centra los botones */
    margin-top: 20px !important;
}

.lang-btn-login {
    background: #f4f6f9 !important; /* Fondo gris claro */
    color: #4b5563 !important;
    border: 1px solid #d1d5db !important;
    padding: 12px 24px !important; /* Botón grande y espacioso */
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important; /* Cuadrado con bordes suaves */
    transition: all 0.3s ease !important;
    text-transform: capitalize !important;
}

/* El botón del idioma que esté seleccionado en el login */
.lang-btn-login.active {
    background: #1d70e8 !important; /* Tu azul B2B */
    color: #ffffff !important;
    border-color: #1d70e8 !important;
    box-shadow: 0 4px 10px rgba(29, 112, 232, 0.2) !important;
}

.lang-btn-login:hover {
    background: #e5e7eb !important;
}


/* ========================================================
   MODERNIZACIÓN PÁGINA DE PRODUCTO (ESTILO FDOS B2B)
   ======================================================== */
/* --- 1. BLOQUE DE IMÁGENES --- */
.product-cover {
    background: #f1f5f9 !important; /* Tu color var(--bg-card-alt) */
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 20px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 6px rgba(0,0,0,0.04) !important;
    margin-bottom: 16px !important;
}
.product-images > li.thumb-container > img {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.product-images > li.thumb-container > img:hover,
.product-images > li.thumb-container > img.selected {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.2) !important;
}

/* --- 2. TÍTULO Y PRECIO --- */
h1.product-detail-name {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    color: #0f172a !important;
    margin-bottom: 12px !important;
    font-family: 'Inter', sans-serif !important;
}
.product-prices .current-price {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #2563eb !important; /* Tu color var(--accent) */
}
.product-prices .tax-shipping-delivery-label {
    font-size: 0.85rem !important;
    color: #64748b !important;
}

/* --- 3. BOTÓN AÑADIR AL CARRITO --- */
.product-add-to-cart .add-to-cart {
    background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px 24px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    width: 100% !important;
    box-shadow: 0 4px 15px rgba(37,99,235,0.3) !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
}
.product-add-to-cart .add-to-cart:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(37,99,235,0.4) !important;
}


/* ========================================================
   SELECTOR DE CANTIDAD Y BOTÓN AÑADIR (DISEÑO FDOS)
   ======================================================== */
/* 1. Contenedor general: Lo hacemos Flex para reordenar las piezas */
.product-quantity {
    display: flex !important;
    flex-wrap: wrap !important; /* Permite que el botón azul salte a la línea de abajo */
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
}

/* 2. Contenedor de la cantidad (desactivamos los flotados de PrestaShop) */
.product-quantity .qty {
    margin: 0 !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
}

/* 3. Desarmamos el grupo del input nativo */
.bootstrap-touchspin {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important; /* Separación entre el input y los círculos */
    width: auto !important;
}

/* Si PrestaShop usa un contenedor vertical para las flechas, lo "desintegramos" */
.bootstrap-touchspin .input-group-btn-vertical {
    display: contents !important; 
}

/* 4. Diseño de los círculos (+ y -) */
.bootstrap-touchspin .btn-touchspin {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-shadow: none !important;
    position: static !important;
    transition: all 0.3s ease !important;
}

.bootstrap-touchspin .btn-touchspin:hover {
    background: #f1f5f9 !important;
    border-color: #2563eb !important;
    color: #2563eb !important;
}

/* Reordenamos para que el (-) salga a la izquierda y el (+) a la derecha */
.bootstrap-touchspin .bootstrap-touchspin-down {
    order: -1 !important;
}

/* Centrar los iconitos + y - nativos de PrestaShop */
.bootstrap-touchspin .btn-touchspin i {
    font-size: 1rem !important;
    margin: 0 !important;
    top: 0 !important;
    left: 0 !important;
}

/* 5. El input numérico central */
.bootstrap-touchspin input.form-control,
.bootstrap-touchspin input.input-group {
    width: 60px !important;
    height: 40px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
}

/* 6. Forzar que el botón "Añadir al carrito" baje y ocupe el 100% */
.product-quantity .add {
    width: 100% !important;
    margin-top: 10px !important;
    float: none !important;
}

/* --- 5. FICHA TÉCNICA (Convertida a Grid de 2 columnas) --- */
.product-features {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 24px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 6px rgba(0,0,0,0.04) !important;
    margin-top: 30px !important;
}
.product-features > h3 {
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    color: #0f172a !important;
    margin-bottom: 16px !important;
}
.product-features dl.data-sheet {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 12px !important;
}
.product-features dl.data-sheet dt.name {
    color: #64748b !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    background: transparent !important;
    padding: 0 !important;
}
.product-features dl.data-sheet dd.value {
    color: #0f172a !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    background: transparent !important;
    padding: 0 !important;
    margin-left: 8px !important;
}
/* ========================================================
   CORRECCIÓN FINAL: ICONOS (+/-) Y RECUADRO INVISIBLE
   ======================================================== */
/* 1. Destruir el recuadro gris nativo de Bootstrap */
.product-quantity .qty .input-group,
.bootstrap-touchspin {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* 2. Ocultar los iconos de PrestaShop (por si están rotos o descolocados) */
.bootstrap-touchspin .btn-touchspin i {
    display: none !important;
}

/* 3. Inyectar nuestros propios iconos (+ y -) a prueba de fallos */
.bootstrap-touchspin .bootstrap-touchspin-down::after {
    content: "−" !important; /* Símbolo matemático de menos */
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    line-height: 1 !important;
}

.bootstrap-touchspin .bootstrap-touchspin-up::after {
    content: "+" !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    line-height: 1 !important;
}

/* Asegurar que al pasar el ratón, el icono se vuelva azul igual que el borde */
.bootstrap-touchspin .btn-touchspin:hover::after {
    color: #2563eb !important;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
/* ========================================================
   CERRAR PUERTA TRASERA: PÁGINA DE RESUMEN DEL CARRITO
   ======================================================== */
/* 1. Ocultar el botón (+) en la tabla del carrito */
.cart-items .js-increase-product-quantity,
.cart-summary .js-increase-product-quantity {
    display: none !important;
}

/* 2. Opcional pero recomendado: Hacer que no puedan escribir un número a mano en el carrito */
.cart-items .js-cart-line-product-quantity,
.cart-summary .js-cart-line-product-quantity {
    pointer-events: none !important; /* Desactiva el clic en el campo de texto */
    background-color: transparent !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    /* En lugar de pointer-events: none, usamos reglas que bloquean la edición 
       pero permiten al navegador registrar los cambios del carrito */
    user-select: none !important;
}

a.remove-from-cart {
    pointer-events: auto !important;
}

/* ========================================================
   DISEÑO 3 COLUMNAS: FOTO (IZQ) - MINIATURAS (CEN) - INFO (DER)
   ======================================================== */
@media (min-width: 769px) {
    /* 1. Convertimos el bloque izquierdo en un Flexbox horizontal */
    .images-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    /* 2. La foto grande se queda a la izquierda ocupando el grueso del espacio */
    .product-cover {
        width: 82% !important;
        order: 1 !important;
        margin-bottom: 0 !important;
    }

    /* 3. El marco de miniaturas pasa al centro (derecha de la foto) */
    .js-qv-mask {
        width: 18% !important;
        order: 2 !important;
        height: auto !important;
        max-height: 500px !important; /* Tope de altura por si hay 20 fotos */
        overflow-y: auto !important;  /* Activa scroll vertical si hay muchas */
        overflow-x: hidden !important;
    }

    /* Ocultamos las flechas nativas del carrusel de PrestaShop que afean el diseño */
    .scroll-box-arrows {
        display: none !important;
    }

    /* 4. Ponemos la lista de miniaturas en formato columna (vertical) */
    .product-images {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 5. Ajustamos cada miniatura para que ocupe todo el ancho de su nueva columna */
    .product-images > li.thumb-container {
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* Hacemos que la barra de scroll de las miniaturas sea finita y elegante */
    .js-qv-mask::-webkit-scrollbar {
        width: 4px;
    }
    .js-qv-mask::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }

    /* 6. Le damos un empujón hacia abajo a las características en la columna derecha 
          para separarlas claramente del botón de compra */
    .product-features {
        margin-top: 40px !important;
    }
}
/* ========================================================
   CORRECCIONES REVISIÓN: FOTOS ADAPTADAS Y DETALLES ANCHOS
   ======================================================== */
@media (min-width: 769px) {
    /* --- 1. Arreglar las miniaturas (que no se corten) --- */
    .product-images > li.thumb-container {
        width: 100% !important; /* Adaptar al ancho del 18% del contenedor padre */
        height: auto !important; /* Altura automática según la foto */
        margin: 0 0 10px 0 !important; /* Espacio abajo entre fotos, no a los lados */
        padding: 0 !important;
        float: none !important; /* Limpiamos flotados antiguos */
    }

    /* Aseguramos que la imagen de la miniatura sea block y se adapte */
    .product-images > li.thumb-container > img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
    }

}
/* ========================================================
   REDUCIR ESPACIO ENTRE ZONA DE COMPRA Y DETALLES
   ======================================================== */
/* 1. Reducimos el margen de la fila que creamos */
#main .row.mt-5 {
    margin-top: 1px !important; /* Cambia este valor si quieres más o menos espacio */
} 

/* 2. Anulamos el margen gigante que trae PrestaShop por defecto en las pestañas */
.tabs {
    margin-top: 0px !important;
    padding-top: 0 !important;
}

/* 3. Por si la columna de la derecha (donde está el botón) estaba empujando hacia abajo */
.product-information {
    margin-bottom: 0 !important;
}

/* ========================================================
   RESCATAR Y MODERNIZAR EL BOTÓN DE ELIMINAR DEL CARRITO
   ======================================================== */
/* 1. Obligamos al botón de la papelera a mostrarse siempre */
a.remove-from-cart,
.cart-items .remove-from-cart,
.cart-summary .remove-from-cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important; /* Asegura que se pueda hacer clic */
    z-index: 50 !important;
    text-decoration: none !important;
}

/* 2. Recuperamos el icono, lo hacemos rojo y lo adaptamos */
a.remove-from-cart i.material-icons,
.cart-items .remove-from-cart i,
.cart-summary .remove-from-cart i {
    display: block !important;
    visibility: visible !important;
    color: #e11d48 !important; /* Tu rojo de advertencia */
    font-size: 1.6rem !important;
    transition: transform 0.2s ease !important;
}

/* 3. Efecto al pasar el ratón por encima (Hover) */
a.remove-from-cart:hover i.material-icons {
    transform: scale(1.15) !important; /* Se hace un poquito más grande */
    color: #be123c !important; /* Un rojo más oscuro */
}

/* 4. Quitar el escudo invisible y asegurar el clic en la papelera */
.cart-line-product-actions {
    position: relative !important;
    z-index: 99 !important;
}

a.remove-from-cart i.material-icons {
    /* Esto hace que el icono sea 'transparente' a los clics, 
       obligando al ratón a hacer clic directamente en la etiqueta <a> que activa el borrado */
    pointer-events: none !important; 
}
/* ========================================================
   MODERNIZACIÓN DEL MODAL DE AÑADIR AL CARRITO
   ======================================================== */
/* 1. La ventana emergente (bordes redondeados y sombra suave) */
#blockcart-modal .modal-content {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    overflow: hidden !important;
}

/* 2. Cabecera (Fondo gris claro y texto destacado) */
#blockcart-modal .modal-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 20px 24px !important;
}
#blockcart-modal .modal-title {
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    color: #0f172a !important;
}
#blockcart-modal .modal-title i {
    color: #059669 !important; /* Color verde éxito para el check */
    margin-right: 8px !important;
}

/* 3. Estilizar la foto del producto dentro de la ventana */
#blockcart-modal .product-image {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 5px !important;
    background: #ffffff !important;
}

/* 4. Suavizar la línea divisoria central */
#blockcart-modal .divide-right {
    border-right: 1px solid #e2e8f0 !important;
}

/* 5. Zona de botones (Reorganización para que respiren) */
#blockcart-modal .cart-content-btn {
    display: flex !important;
    gap: 15px !important;
    margin-top: 25px !important;
    justify-content: center !important;
}

/* 6. Botón secundario: "Continuar comprando" (MÁS PEQUEÑO) */
#blockcart-modal .cart-content-btn .btn-secondary {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    color: #475569 !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    padding: 8px 18px !important; /* Reducimos el relleno (antes 12px 24px) */
    font-size: 0.9rem !important; /* Letra un punto más pequeña */
    transition: all 0.3s ease !important;
    margin: 0 !important;
}
#blockcart-modal .cart-content-btn .btn-secondary:hover {
    border-color: #2563eb !important;
    color: #2563eb !important;
    background: #f1f5f9 !important;
}

/* 7. Botón principal: "Pasar por caja" (MÁS PEQUEÑO) */
#blockcart-modal .cart-content-btn .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    padding: 8px 18px !important; /* Reducimos el relleno */
    font-size: 0.9rem !important; /* Letra un punto más pequeña */
    box-shadow: 0 4px 15px rgba(37,99,235,0.3) !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
}
#blockcart-modal .cart-content-btn .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(37,99,235,0.4) !important;
}

/* 8. Ajustes finos de textos (Precio, cantidad, etc.) */
#blockcart-modal .product-name {
    font-weight: 700 !important;
    color: #0f172a !important;
    font-size: 1.1rem !important;
}
#blockcart-modal .cart-content p {
    color: #475569 !important;
    font-weight: 500 !important;
}
#blockcart-modal .cart-content .value {
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* ========================================================
   MODERNIZACIÓN PÁGINA DEL CARRITO (ESTILO FDOS B2B)
   ======================================================== */
/* 1. Fondo de la página para que resalten las cajas blancas */
body#cart {
    background-color: #f8fafc !important; /* Tu color var(--bg-body) */
}

/* 2. Tarjeta Izquierda: Lista de productos */
.cart-container .cart-grid-body {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 6px rgba(0,0,0,0.04) !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
}

/* Título de la cesta */
.cart-container .cart-grid-body > h1 {
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 16px !important;
    margin-bottom: 20px !important;
    text-transform: none !important;
}

/* 3. Cada línea de producto individual */
.cart-item {
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 16px 0 !important;
}
.cart-item:last-child {
    border-bottom: none !important; /* Quitamos la línea al último */
}

/* Imágenes de productos en el carrito */
.cart-item .product-image img {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 4px !important;
}

/* Textos del producto */
.cart-item .product-line-info a {
    font-weight: 600 !important;
    color: #2a0f1f !important;
    text-decoration: none !important;
}
.cart-item .product-line-info a:hover {
    color: #2563eb !important;
}
.cart-item .product-price {
    font-weight: 700 !important;
    color: #2563eb !important;
    font-size: 1.1rem !important;
}

/* 4. Tarjeta Derecha: Resumen y Totales */
.cart-grid-right .cart-summary {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 6px rgba(0,0,0,0.04) !important;
    /*padding: 24px !important;*/
}

/* Textos de los subtotales */
.cart-summary-line {
    color: #475569 !important;
    font-size: 0.95rem !important;
    margin-bottom: 12px !important;
}
.cart-summary-totals .cart-summary-line {
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 16px !important;
    margin-top: 16px !important;
}
.cart-summary-totals .cart-summary-line .label,
.cart-summary-totals .cart-summary-line .value {
    font-weight: 800 !important;
    color: #0f172a !important;
    font-size: 1rem !important;
}

/* 5. Botón principal: Pasar por caja */
.cart-summary .checkout .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    padding: 14px 24px !important;
    width: 100% !important;
    font-size: 1.05rem !important;
    box-shadow: 0 4px 15px rgba(37,99,235,0.3) !important;
    transition: all 0.3s ease !important;
    margin-top: 20px !important;
    text-transform: none !important;
}
.cart-summary .checkout .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(37,99,235,0.4) !important;
}

/* 6. Enlace secundario: Continuar comprando */
.cart-grid-body .label i {
    display: none !important; /* Ocultamos el icono feo por defecto */
}
.cart-grid-body .label {
    display: inline-block !important;
    color: #475569 !important;
    font-weight: 600 !important;
    transition: color 0.3s ease !important;
    text-decoration: none !important;
}
.cart-grid-body .label:before {
    content: "←" !important; /* Usamos una flecha limpia de texto */
    margin-right: 8px !important;
    font-size: 1.2rem !important;
}
.cart-grid-body .label:hover {
    color: #2563eb !important;
}

/* 1. Quitamos la flecha general que se nos coló en los productos */
.product-line-info .label:before {
    content: none !important;
}

/* ========================================================
   FIJAR EL FOOTER SIEMPRE ABAJO (ESTRUCTURA PRESTASHOP)
   ======================================================== */
/* 1. La caja principal que envuelve toda la web es la que debe ser flexible */
main {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important; /* 100% de la altura de la pantalla */
}

/* 2. Le decimos al wrapper (donde está el carrito) que actúe como un muelle y empuje hacia abajo */
#wrapper {
    flex: 1 1 auto !important; 
    width: 100% !important;
}

/* 3. La cabecera y el footer se quedan rígidos para no aplastarse */
#header,
#footer {
    flex-shrink: 0 !important;
}

/* ========================================================
   MODERNIZACIÓN PROCESO DE PAGO (PÁGINA DE CHECKOUT / ORDER)
   ======================================================== */
/* 1. Fondo de la página de pago */
body#checkout {
    background-color: #f8fafc !important;
}

/* 2. Estilo para cada uno de los pasos (Secciones/Tarjetas) */
#checkout section.checkout-step {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 6px rgba(0,0,0,0.04) !important;
    padding: 24px !important;
    margin-bottom: 20px !important;
    transition: all 0.3s ease !important;
}

/* Resaltar el paso que está activo actualmente */
#checkout section.checkout-step.-current {
    border-color: #2563eb !important; /* Borde azul de tu branding */
    box-shadow: 0 10px 25px rgba(37,99,235,0.08) !important;
}

/* 3. Títulos de los pasos (Número y Nombre) */
#checkout section.checkout-step .step-title {
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    color: #0f172a !important;
    text-transform: none !important;
    display: flex !important;
    align-items: center !important;
}

/* El número del paso (por ejemplo: 1, 2, 3...) */
#checkout section.checkout-step .step-number {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin-right: 12px !important;
}

/* Cuando el paso está activo, el número se vuelve azul */
#checkout section.checkout-step.-current .step-number {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* 4. Columna Derecha: Tarjeta de Resumen en el Checkout */
#checkout .cart-summary {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 6px rgba(0,0,0,0.04) !important;
    padding: 24px !important;
}

/* Botones del proceso de pago (Continuar, Confirmar Pago, etc.) */
#checkout .btn-primary, 
#checkout .continue {
    background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    box-shadow: 0 4px 15px rgba(37,99,235,0.25) !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
}

#checkout .btn-primary:hover, 
#checkout .continue:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(37,99,235,0.35) !important;
}

/* Botón deshabilitado (cuando falta aceptar condiciones) */
#checkout .btn-primary:disabled {
    background: #cbd5e1 !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: not-allowed !important;
}

/* Inputs y checks del formulario de pago */
#checkout .form-control {
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 10px 14px !important;
}
#checkout .form-control:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15) !important;
}

/* ========================================================
   OCULTAR OPCIÓN "DIRECCIÓN DE FACTURACIÓN DIFERENTE" (FORZADO)
   ======================================================== */

/* 1. Ocultar el enlace directo cuando ya tienes direcciones guardadas */
a[data-link-action="different-invoice-address"],
a[href*="invoice=1"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 2. Ocultar el checkbox de "Usar esta dirección para facturación" (si estás creando una dirección nueva) */
input[name="use_same_address"] {
    display: none !important;
}

/* 3. Ocultar los textos y el diseño que acompañan a ese checkbox */
input[name="use_same_address"] ~ span,
input[name="use_same_address"] + span {
    display: none !important;
}

/* 4. Ocultar la fila completa si el navegador del cliente es moderno */
.form-group:has(input[name="use_same_address"]) {
    display: none !important;
}

/* 3. Títulos de los pasos (Número y Nombre) - CORREGIDO */
#checkout section.checkout-step .step-title {
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    color: #0f172a !important;
    text-transform: none !important;
    /* Quitamos el flex anterior y usamos el flujo natural */
    display: block !important; 
    line-height: 32px !important; /* Para que quede alineado con el número */
}

/* El número del paso (por ejemplo: 1, 2, 3...) */
#checkout section.checkout-step .step-number {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin-right: 12px !important;
    vertical-align: middle !important;
}

/* Cuando el paso está activo, el número se vuelve azul */
#checkout section.checkout-step.-current .step-number {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* El icono verde de "Paso completado" (el check) */
#checkout section.checkout-step .step-title i.done {
    color: #059669 !important;
    font-size: 1.4rem !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
}

/* Botón de "Modificar" (Lo empujamos a la derecha) */
#checkout section.checkout-step .step-title .step-edit {
    float: right !important; /* Magia para que se vaya a la esquina derecha */
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    margin-top: 4px !important;
    text-transform: none !important;
}
#checkout section.checkout-step .step-title .step-edit:hover {
    color: #2563eb !important;
}
#checkout section.checkout-step .step-title .step-edit i {
    font-size: 1.1rem !important;
    vertical-align: text-bottom !important;
}

/* ========================================================
   AÑADIR LOGOS A LOS MÉTODOS DE PAGO (ALINEADOS A LA DERECHA)
   ======================================================== */
/* 1. Hacemos que la caja de la línea de pago ocupe el 100% y sirva de marco */
#checkout .payment-options .payment-option {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

/* 2. Logo para Transferencia Bancaria (Anclado a la derecha) */
.payment-option:has(input[data-module-name="ps_wirepayment"]) label span::after {
    content: "";
    position: absolute !important;
    right: 15px !important; /* Lo pegamos a la pared derecha */
    top: 50% !important;
    transform: translateY(-50%) !important; /* Centrado vertical exacto */
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23475569'%3E%3Cpath d='M2 20h20v2H2v-2zm9-17l9 5v2H4v-2l9-5zm-5 9h2v7H6v-7zm4 0h2v7h-2v-7zm4 0h2v7h-2v-7z'/%3E%3C/svg%3E") no-repeat center right;
    background-size: contain;
}

/* 3. Logos para Pago con Tarjeta - Redsys (Anclado a la derecha) */
.payment-option:has(input[data-module-name="redsys"]) label span::after {
    content: "";
    position: absolute !important;
    right: 15px !important; /* Lo pegamos a la pared derecha */
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px; 
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23475569'%3E%3Cpath d='M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z'/%3E%3C/svg%3E") no-repeat center right;
    background-size: contain;
}
/* 4. Alinear a la derecha logos de módulos externos (BBVA, etc.) */
#checkout .payment-options .payment-option label img {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    max-height: 24px !important; /* Igualamos la altura a los que hemos creado */
    width: auto !important;
    margin: 0 !important; /* Quitamos márgenes extra que traiga el módulo */
}

/* 5. Margen de seguridad para que el texto muy largo no pise los iconos en el móvil */
#checkout .payment-options .payment-option label {
    padding-right: 50px !important; 
    width: 100% !important;
}

/* ========================================================
   ARREGLAR CHECKBOX DE TÉRMINOS (CENTRADOS Y FUNCIONALES)
   ======================================================== */
/* 1. Alinear el cuadrado y el texto perfectamente en la misma línea */
#conditions-to-approve ul li {
    display: flex !important;
    align-items: center !important;
}

#conditions-to-approve .float-xs-left {
    margin-top: 0 !important; /* Quitamos márgenes nativos que lo descentran */
}

/* 2. Contenedor del recuadro falso (Tamaño fijo) */
#checkout .custom-checkbox {
    position: relative !important;
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important; /* Prohíbe que el texto lo aplaste */
    margin-right: 12px !important;
}

/* 3. EL TRUCO MAGNÍFICO: El input REAL invisible atrapa el clic */
#checkout .custom-checkbox input[type="checkbox"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important; /* Lo hacemos invisible... */
    cursor: pointer !important;
    z-index: 10 !important; /* ...pero lo ponemos por encima de todo */
    margin: 0 !important;
}

/* 4. El recuadro falso visible: Rígido y por debajo del clic */
#checkout .custom-checkbox > span,
#checkout .custom-checkbox span.ps-shown-by-js {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 6px !important;
    border: 2px solid #cbd5e1 !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    pointer-events: none !important; /* Deja pasar el clic al input de verdad */
}

/* 5. Cuando el input invisible se marca, teñimos el span falso de azul */
#checkout .custom-checkbox input[type="checkbox"]:checked + span,
#checkout .custom-checkbox input[type="checkbox"]:checked + span.ps-shown-by-js {
    background: #2563eb !important;
    border-color: #2563eb !important;
}

/* 6. El check en SVG dibujado en el centro exacto */
#checkout .custom-checkbox input[type="checkbox"]:checked + span::after,
#checkout .custom-checkbox input[type="checkbox"]:checked + span.ps-shown-by-js::after {
    content: "";
    display: block !important;
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    width: 14px !important;
    height: 14px !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center center;
    background-size: contain !important;
}

/* 7. Fulminamos el icono viejo de PrestaShop */
#checkout .custom-checkbox > span i {
    display: none !important;
}

/* 8. Ajuste fino del texto para que no se descuelgue */
.condition-label {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.condition-label label {
    margin: 0 !important;
    color: #475569 !important;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
}

/* ========================================================
   MOSTRAR PRODUCTOS SIEMPRE DESPLEGADOS (RESUMEN CHECKOUT)
   ======================================================== */
/* 1. Forzamos a que la caja colapsada se muestre siempre abierta */
#cart-summary-product-list {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    margin-top: 15px !important;
}

/* 2. Ocultamos el enlace de "Mostrar/Ocultar detalles" porque ya no hace falta */
#checkout .cart-summary-products a[data-toggle="collapse"],
#checkout .cart-summary-products .js-show-details {
    display: none !important;
}

/* 3. Damos un poco de estilo a la lista de productos para que encaje con el B2B */
#cart-summary-product-list .media-list {
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 15px !important;
}

/* ========================================================
   MODERNIZACIÓN PÁGINA PEDIDO CONFIRMADO (VERSIÓN LIMPIA)
   ======================================================== */
/* 1. Fondo general de la página */
body#order-confirmation {
    background-color: #f8fafc !important;
}

/* 2. Forzamos 100% de ancho SOLO a los contenedores principales (Sin romper la tabla) */
#order-confirmation #content-wrapper > .row > div {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* 3. Banner de Éxito (Más compacto y elegante) */
#content-hook_order_confirmation .card-block {
    background: #ffffff !important;
    border: 2px solid #059669 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.05) !important;
    padding: 20px !important;
    margin-bottom: 16px !important;
    text-align: center !important;
}
#content-hook_order_confirmation .h1 {
    color: #059669 !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    margin-bottom: 8px !important;
}
#content-hook_order_confirmation p { color: #475569 !important; margin: 0 !important; }

/* 4. Tarjetas Blancas (Al 100% de ancho) */
#order-items, #order-details {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
    padding: 20px !important;
    margin-bottom: 16px !important;
}
#order-items .card-title, #order-details .card-title {
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 10px !important;
    margin-bottom: 15px !important;
}

/* 5. Tabla de productos (Solo maquillaje, respetamos su estructura nativa) */
.order-confirmation-table div.order-line {
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 15px 0 !important;
    align-items: center !important; /* Centra verticalmente la foto con los textos */
}
/* Recuperamos la foto y le damos estilo */
.order-confirmation-table .image img {
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    max-width: 60px !important; 
}
/* Aseguramos que los números se centren bajo sus cabeceras correspondientes */
.order-confirmation-table .qty .row > div {
    text-align: center !important;
}
.order-confirmation-table .qty .row > div:last-child {
    text-align: right !important; /* El total siempre pegado a la derecha */
}

/* 6. Detalles del pedido en formato horizontal (Más limpio) */
#order-details ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px 30px !important;
    padding: 0 !important; margin: 0 !important;
}
#order-details ul li {
    color: #475569 !important;
    font-size: 0.9rem !important;
    border: none !important;
}

/* ========================================================
   REMATES FINALES: ANCHO TOTAL Y CABECERAS LIMPIAS
   ======================================================== */
/* 1. Anulamos las columnas de Bootstrap y forzamos el 100% del ancho */
body#order-confirmation #order-items,
body#order-confirmation #order-details {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 24px !important;
}

/* 2. Repartimos los Detalles del pedido en horizontal para aprovechar el espacio */
#order-details ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px 30px !important; /* Espacio entre los elementos */
}
#order-details ul li {
    flex: 1 1 auto !important; /* Se expanden según el espacio disponible */
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding: 5px 0 !important;
}

/* 3. Unificamos la línea de los Títulos de la tabla */
.order-confirmation-table > .row:first-child {
    border-bottom: 2px solid #e2e8f0 !important; /* Una sola línea limpia y continua */
    padding-bottom: 12px !important;
    margin-bottom: 15px !important;
}

/* 4. Ocultamos las líneas rotas individuales que mete PrestaShop */
.order-confirmation-table > .row:first-child hr {
    display: none !important;
}

/* Quitamos cualquier borde inferior fantasma en las columnas de los títulos */
.order-confirmation-table > .row:first-child > div,
.order-confirmation-table > .row:first-child > div > .row > div {
    border-bottom: none !important;
}

/* ========================================================
   ARREGLAR LÍNEA ROTA DE LOS TÍTULOS (LÍNEA CONTINUA)
   ======================================================== */
/* 1. Le quitamos el borde individual a cada título que causaba los cortes */
#order-items .card-title {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* 2. Le ponemos una sola línea continua a la "caja" que los contiene a todos */
#order-items > .row:first-child,
#order-items > div:first-child:not(.order-confirmation-table) {
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 15px !important;
    margin-bottom: 20px !important;
    /* Aseguramos que la fila ocupe todo el ancho sin márgenes raros */
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

/* 3. Ajustamos un poco los títulos para que queden centrados con sus números */
#order-items .row:first-child h3 {
    margin-top: 0 !important;
}

/* ========================================================
   MODERNIZACIÓN HISTORIAL DE PEDIDOS (MI CUENTA B2B)
   ======================================================== */
/* 1. Fondo de la página para mantener la línea visual */
body#history {
    background-color: #f8fafc !important;
}

/* 2. Contenedor principal: Tarjeta blanca con sombra */
#history #content {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
    padding: 24px !important;
    margin-bottom: 30px !important;
}

/* 3. Limpieza de la Tabla (Versión Escritorio) */
#history table.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: none !important;
    width: 100% !important;
    margin: 0 !important;
}

/* 4. Cabecera de la tabla (Gris suave, redondeada y texto limpio) */
#history table.table thead th {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
    padding: 16px !important;
    border: none !important;
}
/* Redondeamos solo las esquinas de la cabecera */
#history table.table thead th:first-child { 
    border-top-left-radius: 8px !important; 
    border-bottom-left-radius: 8px !important; 
}
#history table.table thead th:last-child { 
    border-top-right-radius: 8px !important; 
    border-bottom-right-radius: 8px !important; 
}

/* 5. Filas de los pedidos (Sin bordes verticales, efecto hover sutil) */
#history table.table tbody td {
    padding: 16px !important;
    vertical-align: middle !important;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #0f172a !important;
    font-size: 0.95rem !important;
    transition: background-color 0.2s ease !important;
}
#history table.table tbody tr:hover td {
    background-color: #f8fafc !important; /* Ilumina la fila al pasar el ratón */
}
#history table.table tbody tr:last-child td {
    border-bottom: none !important;
}

/* 6. Enlaces y Referencia del Pedido (Destacados en azul) */
#history table.table tbody td a[data-link-action="view-order-details"] {
    color: #2563eb !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
#history table.table tbody td a[data-link-action="view-order-details"]:hover {
    color: #1e40af !important;
    text-decoration: underline !important;
}

/* 7. Etiquetas de Estado del Pedido (Formato Píldora Moderna) */
#history .label-pill, 
#history .label {
    padding: 6px 14px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    display: inline-block !important;
}

/* 8. Botones de Acción (Detalles / Pedir de nuevo) */
#history .order-actions a {
    color: #475569 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    margin-right: 15px !important;
    transition: color 0.2s ease !important;
}
#history .order-actions a:hover {
    color: #2563eb !important;
}

/* 9. Adaptación para Móviles (Tarjetas individuales en vez de tabla) */
#history .history-line {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}

/* ========================================================
   MODERNIZACIÓN APARTADO DE DIRECCIONES (B2B PREMIUM)
   ======================================================== */
/* 1. Fondo de la página de la lista de direcciones y del formulario */
body#addresses, body#address {
    background-color: #f8fafc !important;
}

/* 2. Limpiamos el contenedor por defecto */
body#addresses .page-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* 3. Estilo de las Tarjetas de Dirección */
#addresses .address {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02) !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    height: calc(100% - 24px) !important; /* Mantiene la misma altura si hay varias */
}

/* 4. Título de la dirección (Alias) */
#addresses .address h4 {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 12px !important;
    margin-bottom: 16px !important;
    margin-top: 0 !important;
}

/* 5. Texto de la dirección */
#addresses .address address {
    color: #475569 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    font-style: normal !important;
    flex-grow: 1 !important; /* Empuja los botones hacia abajo */
    margin-bottom: 0 !important;
}

/* 6. Zona de Botones (Actualizar / Eliminar) */
#addresses .address .address-footer {
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 16px !important;
    margin-top: 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Enlace Actualizar (Azul corporativo) */
#addresses .address .address-footer a[data-link-action="update-address"] {
    color: #2563eb !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
}
#addresses .address .address-footer a[data-link-action="update-address"]:hover {
    color: #1e40af !important;
}

/* Enlace Eliminar (Rojo de advertencia) */
#addresses .address .address-footer a[data-link-action="delete-address"] {
    color: #ef4444 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
}
#addresses .address .address-footer a[data-link-action="delete-address"]:hover {
    color: #dc2626 !important;
}

/* 7. Botón de "Añadir nueva dirección" */
#addresses .addresses-footer a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #2563eb !important;
    color: #ffffff !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 6px rgba(37,99,235,0.2) !important;
    transition: all 0.2s ease !important;
}
#addresses .addresses-footer a:hover {
    background: #1e40af !important;
    box-shadow: 0 6px 12px rgba(37,99,235,0.3) !important;
    transform: translateY(-2px) !important;
}
#addresses .addresses-footer a i {
    margin-right: 8px !important;
}

/* 8. Estilo de la caja del formulario cuando vas a crear/editar una dirección */
body#address #content {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02) !important;
    padding: 30px !important;
}

.mailalerts {
    display: none !important;
}

/* ========================================================
   ARREGLAR CAMPO "NUEVA CONTRASEÑA" (ALINEACIÓN PERFECTA)
   ======================================================== */
/* 1. Mantenemos el grid nativo */
.form-group:has(input[name="new_password"]) {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-bottom: 15px !important;
}

/* 2. Etiqueta superior (ESTILOS NATIVOS RESTAURADOS) */
.form-group:has(input[name="new_password"]) > label {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    margin-bottom: 8px !important;
    padding-left: 15px !important; /* Restauramos el espacio nativo de la rejilla */
    padding-right: 15px !important;
    /* Heredamos la fuente y color originales para que sea idéntica al resto */
    font-weight: inherit !important;
    color: #0f172a !important;
    font-weight: 600 !important; 
}

/* 3. Contenedor de la caja */
.form-group:has(input[name="new_password"]) > div {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important; /* Aseguramos la alineación con la etiqueta */
    padding-right: 15px !important;
}

/* 4. Anulamos el límite oculto de PrestaShop */
.form-group:has(input[name="new_password"]) .input-group {
    display: flex !important;
    width: 100% !important;
    max-width: none !important; 
    min-width: 100% !important;
    align-items: stretch !important;
    height: 42px !important; 
}

/* 5. El candado inyectado */
.form-group:has(input[name="new_password"]) .input-group::before {
    content: "";
    display: block !important;
    width: 44px !important; 
    background-color: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-right: none !important;
    border-radius: 6px 0 0 6px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px;
    flex-shrink: 0 !important;
}

/* 6. Campo de texto */
.form-group:has(input[name="new_password"]) input {
    flex: 1 1 100% !important;
    max-width: none !important;
    background-color: #f1f5f9 !important; 
    border: 1px solid #cbd5e1 !important;
    border-left: none !important; 
    border-radius: 0 6px 6px 0 !important; 
    padding: 0 15px !important;
    margin: 0 !important;
    height: 100% !important; 
    color: #0f172a !
}

/* 8. Botón MOSTRAR */
.form-group:has(input[name="new_password"]) .input-group-btn > button {
    background-color: #f1f5f9 !important; 
    border: 1px solid #cbd5e1 !important;
    
    border-radius: 6px 6px 6px 6px !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    padding:  15px !important;
    margin-left: 10px !important;
    height: 100% !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

/* ========================================================
   MODERNIZACIÓN PÁGINA "MI CUENTA" (DASHBOARD B2B)
   ======================================================== */
/* 1. Fondo general de la página */
body#my-account {
    background-color: #f8fafc !important;
}

/* 2. Limpieza del contenedor principal (quitamos fondos blancos por defecto) */
body#my-account .page-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 3. Ajuste de los enlaces para que ocupen todo el alto disponible */
body#my-account #content .links a {
    display: block !important;
    height: 100% !important;
    margin-bottom: 24px !important;
    text-decoration: none !important;
}

/* 4. Estilo de las Tarjetas de opciones */
body#my-account #content .links a span.link-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02) !important;
    padding: 30px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    transition: all 0.3s ease !important;
    color: #0f172a !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    text-align: center !important;
}

/* 5. Efecto Hover: La tarjeta se levanta y se ilumina al pasar el ratón */
body#my-account #content .links a:hover span.link-item {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 20px rgba(37,99,235,0.08) !important;
    border-color: #2563eb !important;
    color: #2563eb !important;
}

/* 6. Estilo de los Iconos de las tarjetas */
body#my-account #content .links a span.link-item i {
    font-size: 3rem !important;
    color: #64748b !important;
    margin-bottom: 15px !important;
    transition: all 0.3s ease !important;
}

/* 7. El icono se vuelve azul corporativo con el Hover */
body#my-account #content .links a:hover span.link-item i {
    color: #2563eb !important;
}

/* 8. Botón inferior de "Cerrar sesión" (Estilo sutil pero claro) */
body#my-account .page-footer a {
    color: #ef4444 !important; /* Tono rojizo para indicar salida */
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-top: 20px !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    background: #fef2f2 !important;
    transition: all 0.2s ease !important;
}
body#my-account .page-footer a:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}
/* ========================================================
   ELIMINAR FONDO NEGRO AL HACER CLIC EN TARJETAS DE "MI CUENTA"
   ======================================================== */
/* Forzamos a que el enlace sea transparente en todos sus estados de interacción */
body#my-account #content .links a:hover,
body#my-account #content .links a:active,
body#my-account #content .links a:focus {
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* ========================================================
   PERSONALIZACIÓN TARJETAS "MI CUENTA" (ICONOS Y TEXTO)
   ======================================================== */
/* 1. Quitamos las mayúsculas forzadas para suavizar la lectura */
body#my-account #content .links a span.link-item {
    text-transform: none !important;
}

/* 2. Ocultamos los iconos nativos antiguos por si estaban dando problemas */
body#my-account #content .links a span.link-item i {
    display: none !important;
}

/* 3. Preparamos el espacio encima del texto para nuestros nuevos iconos */
body#my-account #content .links a span.link-item::before {
    content: "";
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 16px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    transition: all 0.3s ease !important;
}

/* 4. ASIGNAMOS UN ICONO SVG A CADA TARJETA (Estado Normal - Gris) */

/* Icono para Información (Datos personales - Usuario) */
body#my-account #identity-link span.link-item::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

/* Icono para Direcciones (Marcador de mapa) */
body#my-account #addresses-link span.link-item::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* Icono para Historial de pedidos (Caja de producto / Paquete) */
body#my-account #history-link span.link-item::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='16.5' y1='9.4' x2='7.5' y2='4.21'/%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E");
}

/* 5. EFECTO HOVER: Los iconos se vuelven Azul Corporativo al pasar el ratón */
body#my-account #identity-link:hover span.link-item::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
body#my-account #addresses-link:hover span.link-item::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
body#my-account #history-link:hover span.link-item::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='16.5' y1='9.4' x2='7.5' y2='4.21'/%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E");
}

/* ========================================================
   OCULTAR CUPONES Y FACTURAS DE ABONO (CUADRÍCULA Y FOOTER)
   ======================================================== */
/* 1. Forzamos la desaparición en las Tarjetas de "Mi cuenta" superando la regla anterior */
body#my-account #content .links a#order-slips-link,
body#my-account #content .links a#discounts-link {
    display: none !important;
}

/* 2. Ocultamos los enlaces en el Footer buscando partes de su URL (español o inglés) */
#footer a[href*="facturas-abono"],
#footer a[href*="credit-slip"],
#footer a[href*="descuento"],
#footer a[href*="discount"] {
    display: none !important;
}

/* 3. Ocultamos el "puntito" (<li>) del footer para que no quede un hueco vacío en la lista */
#footer li:has(a[href*="facturas-abono"]),
#footer li:has(a[href*="credit-slip"]),
#footer li:has(a[href*="descuento"]),
#footer li:has(a[href*="discount"]) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ========================================================
   OCULTAR CUPONES Y ABONOS DEL FOOTER (MÉTODO 1.7.8)
   ======================================================== */
/* 1. Escondemos el "puntito" de la lista buscando cualquier coincidencia posible */
#footer li:has(a[href*="order-slip"]),       /* Controlador nativo abonos */
#footer li:has(a[href*="abono"]),            /* URL amigable abonos */
#footer li:has(a[title*="abono" i]),         /* Título del enlace abonos */
#footer li:has(a[href*="discount"]),         /* Controlador nativo cupones */
#footer li:has(a[href*="descuento"]),        /* URL amigable cupones */
#footer li:has(a[title*="descuento" i]) {    /* Título del enlace cupones */
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Por si acaso, escondemos el enlace en sí mismo también */
#footer a[href*="order-slip"],
#footer a[href*="abono"],
#footer a[title*="abono" i],
#footer a[href*="discount"],
#footer a[href*="descuento"],
#footer a[title*="descuento" i] {
    display: none !important;
}

/* ========================================================
   DISEÑO FOOTER PREMIUM (MODO OSCURO B2B)
   ======================================================== */
/* 1. Fondo general del footer (Azul marino casi negro) */
#footer {
    background-color: #0b1120 !important; 
    color: #94a3b8 !important; /* Texto gris azulado */
    border-top: none !important;
    padding-top: 50px !important;
}

/* 2. Títulos de las columnas ("Contacto", "Mi cuenta", etc.) */
#footer .h3, 
#footer h3, 
#footer .block-contact .title,
#footer .block-contact .block-contact-title {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    margin-bottom: 24px !important;
    text-transform: none !important; /* Quitamos mayúsculas forzadas */
}

/* 3. Enlaces del footer */
#footer a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

/* Efecto al pasar el ratón por los enlaces */
#footer a:hover {
    color: #ffffff !important; 
}

/* 4. Separación de las listas para que respiren como en la foto */
#footer ul li {
    margin-bottom: 12px !important;
}

/* 5. Ajustes del bloque de contacto (Iconos de dirección, email, teléfono) */
#footer .block-contact .icon,
#footer .block-contact .material-icons {
    color: #64748b !important; /* Iconos un poco más oscuros que el texto */
    margin-right: 12px !important;
    font-size: 1.2rem !important;
}

/* Quitamos una línea separadora invisible que PrestaShop suele meter en los contactos */
#footer .block-contact hr {
    display: none !important;
}

/* 6. La línea separadora inferior y la zona del Copyright */
#footer .footer-container .container > .row:last-child {
    border-top: 1px solid #1e293b !important; /* Línea sutil gris oscura */
    margin-top: 40px !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

/* Centrado y estilo del texto de Copyright */
#footer .footer-container .container > .row:last-child p,
#footer .footer-container .container > .row:last-child a {
    color: #64748b !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
    text-align: center !important;
    width: 100% !important;
}

/* ========================================================
   ELIMINAR EL HUECO SUPERIOR DEL FOOTER
   ======================================================== */
#footer {
    padding-top: 1rem !important;
    background: #f1f1f1 !important;
}

/* ========================================================
   UNIFICAR TEXTO Y ENLACES DEL FOOTER (COLOR Y TAMAÑO)
   ======================================================== */
/* 1. Forzamos a que párrafos, textos sueltos y enlaces tengan el mismo aspecto */
#footer .block-contact,
#footer .block-contact p,
#footer .block-contact span,
#footer ul li,
#footer a {
    color: #94a3b8 !important; /* Gris azulado */
    font-size: 0.9rem !important; /* Mismo tamaño para todo */
    line-height: 1.6 !important; /* Interlineado cómodo para leer */
}

/* 2. Mantenemos el efecto de iluminar en blanco SOLO al pasar el ratón por los enlaces */
#footer a:hover {
    color: #ffffff !important;
}

/* 3. Blindamos los títulos para que esta regla no los haga pequeños y grises */
#footer .h3, 
#footer h3, 
#footer .block-contact .title,
#footer .block-contact .block-contact-title {
    color: #94a3b8 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

/* 4. Alineamos perfectamente los iconos de contacto con el texto */
#footer .block-contact .icon,
#footer .block-contact .material-icons {
    color: #64748b !important;
    font-size: 1.1rem !important; /* Iconos proporcionales al texto */
    margin-right: 12px !important;
    vertical-align: middle !important; /* Centra el icono con la línea de texto */
}
/* ========================================================
   ICONOS DEL BLOQUE DE CONTACTO (ESTILOS B2B)
   ======================================================== */
.custom-contact-b2b {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important; /* Separación perfecta entre líneas */
    margin-top: 20px !important;
}

.custom-contact-b2b .contact-item {
    display: flex !important;
    align-items: center !important; /* Centra el icono con el texto */
}

/* Color y tamaño de los iconos SVG */
.custom-contact-b2b .contact-item svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    margin-right: 12px !important;
    color: #64748b !important; /* Gris azulado, igual que el texto */
}

/* Color de los textos y enlaces */
.custom-contact-b2b .contact-item span,
.custom-contact-b2b .contact-item a {
    color: #94a3b8 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    transition: color 0.2s ease !important;
}

/* Iluminación en blanco al pasar el ratón por el email o teléfono */
.custom-contact-b2b .contact-item a:hover {
    color: #ffffff !important;
}   