/* --- 1. CONFIGURACIÓN GLOBAL --- */
:root {
    --primary: #00487C;
    --primary-dark: #003055;
    --secondary: #E31C79; 
    --background: #F7F6F4; 
    --surface: #FFFFFF;
    --text-primary: #2C3E50; 
    --text-secondary: #7F8C8D; 
    
    /* Footer/Nav */
    --footer-grad-start: #1062a0;
    --footer-grad-end:   #0a4a86;
    --footer-link:       #B1F3FF;
    --footer-link-hover: #E4FAFF;

    /* Botones Naranja */
    --btn-grad-start: #f39f2a;
    --btn-grad-end:   #df7d1f;
    --btn-grad-hover-start: #ffb749;
    --btn-grad-hover-end:   #ff8a2d;
    --btn-border-color: #ffffff;
    
    /* Colores Botón Turquesa */
    --btn-teal-start: #44AABF;
    --btn-teal-end:   #368f9e;
    --btn-teal-shadow: rgba(68, 170, 191, 0.3);

    --radius-md: 12px; 
    --radius-lg: 50px;
    --shadow-card: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 14px 40px rgba(0,0,0,0.15);

    /* Colores Chips */
    --chip-top-ventas: #F1A35C;
    --chip-lanzamientos: #7FCFD1;
    --chip-ofertas: #EA777D;
    --chip-viral: #A797D7;
    --chip-regalo: #D6BC9B;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding: 0; padding-top: 60px; font-family: 'Poppins', sans-serif; background-color: var(--background); color: var(--text-primary); }

/* NAVBAR */
.nav {
    position: fixed; inset: 0 0 auto 0; height: 60px; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    backdrop-filter: saturate(180%) blur(10px);
    background: #FFFFFF; 
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    padding: 0 3%;
    transition: transform .3s ease, opacity .3s ease;
}
.nav__logo { display: block; height: 30px !important; width: auto; object-fit: contain; }
.nav__logo-link { display: inline-flex; align-items: center; gap: 8px; } 
.nav--hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }

/* AJUSTE LOGO SOLO ESCRITORIO */
@media (min-width: 1025px) {
    .nav__logo-link {
        margin-left: -35px; /* Mueve el logo a la izquierda */
    }
}

/* --- HERO SLIDER --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px; 
    overflow: hidden; 
    margin-top: 0;
    background-color: var(--primary-dark);
}
.hero-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}
.hero-slide {
    min-width: 100%;
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 60px 20px;
    background-size: cover;
    background-position: center;
}
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; 
    background: linear-gradient(90deg, rgba(8, 2, 103, 0.8) 1%, rgba(0, 0, 214, 0.5) 47%, rgba(255, 64, 0, 0.3) 100%); 
}
.hero-content { position: relative; z-index: 2; max-width: 800px; width: 100%; }
.hero-slider h1 { font-size: 3rem; font-weight: 700; margin: 10px 0 20px; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.hero-slider p { font-size: 1.2rem; font-weight: 400; opacity: 0.95; margin-bottom: 30px; }
.overline { text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; font-weight: 600; }

/* CONTROLES SLIDER */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.6); 
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.slider-arrow:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-50%) scale(1.1); border-color: white; }
.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* MAIN */
.main-section { width: 100%; padding-bottom: 60px; }
.toolbar-wrapper {
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    padding: 25px 20px 40px; margin-bottom: 40px; width: 100%;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-header { text-align: center; margin-bottom: 30px; }
.section-header h2 { color: #02385A; font-size: 2.2rem; font-weight: 700; margin-bottom: 5px; }

/* AJUSTE PARA ALINEAR EL ICONO Y EL TEXTO (CORREGIDO PARA MÓVIL) */
.section-header p { 
    color: #5282A1; 
    font-size: 18px; 
    font-weight: 400; 
    display: block;              
    line-height: 1.4;
}

/* CLASE PARA EL ICONO DEL HEADER */
.header-icon {
    width: 22px;
    height: auto;
    display: inline-block;
    vertical-align: middle; 
    margin-right: 6px;      
    position: relative;
    top: -2px;              
}

/* FILTROS Y CHIPS */
.toolbar { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; }
.filters-row { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-bottom: 25px; width: 100%; }

.custom-dropdown { position: relative; width: 220px; min-width: 180px; user-select: none; }
.dropdown-trigger { display: flex; justify-content: space-between; align-items: center; background: white; padding: 12px 20px; border-radius: 50px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border: 1px solid transparent; transition: all 0.3s ease; font-size: 0.95rem; color: #5282A1; font-weight: 500; }
.dropdown-trigger:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.dropdown-trigger i { color: #7ECCDB; font-size: 0.9rem; transition: transform 0.3s ease; }
.custom-dropdown.active .dropdown-trigger { border-color: #44AABF; box-shadow: 0 0 0 3px rgba(68, 170, 191, 0.1); }
.custom-dropdown.active .dropdown-trigger i { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: 110%; left: 0; width: 100%; background: white; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); padding: 10px; display: none; z-index: 1000; max-height: 300px; overflow-y: auto; border: 1px solid #f0f0f0; animation: fadeInSlide 0.2s ease forwards; }
.custom-dropdown.active .dropdown-menu { display: block; }
.dropdown-item { display: flex; align-items: center; padding: 10px 12px; cursor: pointer; border-radius: 8px; transition: background 0.2s; font-size: 0.9rem; color: #5282a1; }
.dropdown-item:hover { background-color: #F7F9FA; }

.checkbox-custom {
    appearance: none; -webkit-appearance: none; width: 20px; height: 20px; 
    border: 2px solid #D8DEE1; border-radius: 5px; margin: 0 10px 0 0; 
    position: relative; cursor: pointer; flex-shrink: 0; background: white; transition: all 0.2s ease;
}
.checkbox-custom:checked { background-color: #44AABF; border-color: #44AABF; }

/* CHECK MÁS GRUESO Y RE-CENTRADO VISUALMENTE */
.checkbox-custom::after { 
    content: ''; position: absolute; 
    left: 5px; top: 1px;          
    width: 5px; height: 10px; 
    border: solid white; 
    border-width: 0 3px 3px 0;    
    transform: rotate(45deg) scale(0); 
    opacity: 0; transition: all 0.2s; 
}

.checkbox-custom:checked::after { opacity: 1; transform: rotate(45deg) scale(1); }
.dropdown-item:hover .checkbox-custom { border-color: #44AABF; }

@keyframes fadeInSlide { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-menu::-webkit-scrollbar { width: 6px; }
.dropdown-menu::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }

/* CHIPS */
.trends-separator { text-align: center; font-size: 0.85rem; color: #B0B7BF; margin: 30px 0 25px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; display: flex; align-items: center; justify-content: center; gap: 20px; width: 100%; max-width: 100%; }
.trends-separator::before, .trends-separator::after { content: ""; height: 1px; background: #ECEFF1; flex-grow: 1; }
.chips-row { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.chip { border: none; padding: 18px 24px; border-radius: 50px; font-family: 'Poppins', sans-serif; color: white; cursor: pointer; transition: 0.2s; font-weight: 500; display: flex; align-items: center; gap: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); font-size: 16px; }
.chip:hover { transform: translateY(-2px); opacity: 0.9; }
.chip-top-ventas { background-color: var(--chip-top-ventas); }
.chip-lanzamientos { background-color: var(--chip-lanzamientos); }
.chip-ofertas { background-color: var(--chip-ofertas); }
.chip-viral { background-color: var(--chip-viral); }
.chip-regalo { background-color: var(--chip-regalo); }

#toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); background: rgba(44, 62, 80, 0.95); backdrop-filter: blur(8px); color: white; padding: 16px 32px; border-radius: 50px; z-index: 10000; font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,0.3); opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); white-space: nowrap; text-align: center; pointer-events: none; }
#toast.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

/* BULK ACTIONS */
.bulk-actions-static { margin-bottom: 30px; padding: 0px; border-radius: 12px; }
.bulk-title-static { color: #02385A; font-size: 21px; line-height: 23px; font-weight: 600; margin-bottom: 30px; text-align: left; }
.bulk-controls-row-static { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; }
.bulk-counter-static { display: flex; align-items: center; gap: 10px; }
.count-number-static { background: #FFFFFF; color: #02385A; border: 2px solid #D8DEE1; font-weight: 700; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.count-label-static { color: #02385A; font-weight: 600; font-size: 1rem; }
.bulk-buttons-group-static { display: flex; gap: 12px; flex-wrap: wrap; }

.bulk-actions-floating { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(150%); width: auto; min-width: 340px; background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); border: 2px solid rgba(255, 255, 255, 0.6); padding: 12px 24px; border-radius: 60px; box-shadow: 0 10px 40px -10px rgba(0, 72, 124, 0.2), 0 0 0 1px rgba(0, 72, 124, 0.02); z-index: 990; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease; display: block !important; }
.bulk-actions-floating.is-visible { transform: translateX(-50%) translateY(0); }
.bulk-actions-floating.hidden-by-footer, .bulk-actions-floating.hidden-by-top { transform: translateX(-50%) translateY(150%) !important; opacity: 0; pointer-events: none; }
.bulk-controls-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; position: relative; }
.bulk-counter { display: flex; align-items: center; gap: 12px; padding-right: 20px; border-right: 1px solid #ECEFF1; }
.count-number { background: var(--primary); color: white; border: none; font-weight: 700; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; box-shadow: 0 4px 10px rgba(0, 72, 124, 0.2); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); flex-shrink: 0; }
.count-label { color: #02385A; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.3px; white-space: nowrap; }
.bulk-buttons-group { display: flex; align-items: center; gap: 10px; }

.btn-bulk-primary { background: linear-gradient(180deg, var(--btn-teal-start) 0%, var(--btn-teal-end) 100%); color: white; border: none; padding: 10px 24px; border-radius: 50px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.9rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s ease; text-decoration: none; box-shadow: 0 4px 15px var(--btn-teal-shadow); }
.btn-bulk-primary:hover { background: linear-gradient(180deg, #4EC2D9 0%, #3BA6B8 100%); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(68, 170, 191, 0.45); filter: brightness(1.05); }
.btn-bulk-primary:disabled { background: #E0E0E0; color: #A0A0A0; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-bulk-secondary, .btn-bulk-outline-static { background: transparent; color: var(--btn-teal-start); border: 1.5px solid var(--btn-teal-start); padding: 15px 24px; border-radius: 50px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.9rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s ease; text-decoration: none; }
.btn-bulk-secondary:hover, .btn-bulk-outline-static:hover { background: var(--btn-teal-start); color: white; box-shadow: 0 4px 12px rgba(68, 170, 191, 0.2); }


/* CARDS */
.grid-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.card { background: white; border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; transition: 0.3s; display: flex; flex-direction: column; width: 330px; }
.card:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(0,0,0,0.15); }

/* --- IMÁGENES CON LÓGICA MIXTA (COVER vs CONTAIN) --- */
.card-img-container { 
    position: relative; 
    width: 330px;     /* Ancho fijo */
    height: 379px;    /* Altura fija */
    background: #1a1a1a; 
    overflow: hidden; 
}
.card-img-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--card-bg-img, none);
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.7);
    transform: scale(1.2);
    z-index: 1;
    pointer-events: none;
}

/* LÓGICA VISUAL SEGÚN EL TIPO DE CONTENIDO */
.card-img-container.modo-contain .card-img {
    object-fit: contain;
}

.card-img-container.modo-cover .card-img {
    object-fit: cover;
}
.card-img-container.modo-cover::before {
    display: none;
}

/* REGLAS PARA LA IMAGEN (SOLUCIÓN CARRUSEL) */
.card-img { 
    position: absolute; /* Asegura que se apilen una sobre otra */
    top: 0; left: 0;
    width: 100%; height: 100%; 
    opacity: 0; /* Oculta por defecto */
    transition: opacity 0.5s ease; /* Transición suave */
    z-index: 1;
}
/* Clase para mostrar la imagen activa */
.card-img.active {
    opacity: 1;
    z-index: 2;
}

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

/* FLECHAS DEL CARRUSEL (AJUSTADAS) */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: 2px solid #ffffff; /* Borde blanco */
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center; justify-content: center;
    font-size: 0.85rem; /* Ícono más pequeño y elegante */
    transition: background 0.2s;
    user-select: none;
}
.carousel-arrow:hover { background: rgba(0,0,0,0.6); }
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

/* Play Icon */
.video-play-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none; 
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 5;
    transition: transform 0.3s ease;
}
.card:hover .video-play-icon { transform: translate(-50%, -50%) scale(1.1); background: rgba(0, 0, 0, 0.6); }
.video-play-icon i { color: white; font-size: 1.4rem; margin-left: 4px; }

.badge-type { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); color: white; padding: 6px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; z-index: 5; display: flex; align-items: center; gap: 5px; }

.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.card-meta { font-size: 0.8rem; color: #8CA0B1; font-weight: 600; text-transform: uppercase; display: flex; justify-content: space-between; }
.card-title { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin: 0; line-height: 1.3; }
.copy-box { background: #F8F9FA; border: 1px solid #EEE; border-radius: 8px; padding: 12px; display: flex; gap: 10px; align-items: flex-start; min-height: 80px; }
.copy-text { font-size: 0.85rem; color: #97A0A7; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex-grow: 1; }
.copy-btn-inline { background: none; border: none; color: #2CBBC9; cursor: pointer; font-size: 1.1rem; }
.copy-btn-inline:hover { color: var(--primary); transform: scale(1.1); }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; margin-top: auto; border-top: none; }

.checkbox-large { display: flex; align-items: center; font-weight: 600; color: var(--primary); cursor: pointer; font-size: 0.9rem; line-height: 1; }
.action-icons { display: flex; gap: 12px; }
.action-icon { color: #2CBBC9; font-size: 1.3rem; transition: 0.2s; }
.action-icon:hover { color: var(--primary); }

.no-results-message { text-align: center; padding: 60px 20px; width: 100%; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-card); margin-top: 20px; }
.no-results-img { width: 140px; height: 140px; object-fit: contain; margin-bottom: 20px; display: block; margin-left: auto; margin-right: auto; }
.no-results-message h3 { font-size: 24px; line-height: 26px; color: #02385A; margin-bottom: 10px; font-weight: 600; }
.no-results-message p { font-size: 14px; line-height: 18px; color: #5282A1; max-width: 600px; margin: 0 auto; }

/* CTA & FOOTER */
.cta { --cta-bg: url('https://storage.googleapis.com/fotos-novaventa/2025/landingxperimento/images/listos-footer.webp'); position: relative; background-image: linear-gradient(90deg, rgba(2, 2, 2, 0.7) 0%, rgba(0, 20, 60, 0.65) 50%, rgba(60, 20, 0, 0.6) 100%), var(--cta-bg); background-position: center; background-size: cover; background-attachment: fixed; color: white; text-align: center; padding: 100px 3%; }
.cta h2 { color: #FFE8BA; margin-bottom: 0; font-size: 2.5rem; }
.cta p { margin-bottom: 38px; opacity: 0.95; font-size: 1.2rem; }

.footer { background: linear-gradient(180deg, var(--footer-grad-start), var(--footer-grad-end)); color: white; text-align: center; padding: 22px 3% 26px; font-size: 0.9rem; border-top: 2px solid #3c6ea5; }
.footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.footer-link { display: inline-flex; align-items: center; gap: 8px; color: var(--footer-link); text-decoration: none; }
.footer-link:hover { color: var(--footer-link-hover); }
.footer-logos { margin-top: 25px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; }
.footer-logos__img { width: 300px; max-width: 100%; opacity: 0.8; }

.btn { padding: 14px 32px; border: none; border-radius: 50px; background: #ffffff; color: #FF6F1C; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px; text-decoration: none; display: inline-block; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: all 0.3s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); background: #ffffff; opacity: 0.95; }

/* BACK TO TOP (AJUSTADO) */
.backtotop { 
    position: fixed; 
    right: 20px; 
    bottom: 30px; 
    width: 56px; 
    height: 56px; 
    border-radius: 50%; 
    border: none; 
    background-color: #FF6F1C; 
    color: white; 
    display: grid; 
    place-items: center; 
    cursor: pointer; 
    box-shadow: none; 
    z-index: 9999; 
    transition: 0.3s ease; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(10px); 
}
.backtotop svg { width: 24px; height: 24px; fill: currentColor; }
.backtotop--visible { opacity: 1; visibility: visible; transform: translateY(0); }
.backtotop:hover { transform: scale(1.05) translateY(-2px); }
.backtotop.has-bulk-bar { bottom: 110px; }

/* RESPONSIVE: TABLET Y MOVIL (AJUSTES GENERALES) */
@media (max-width: 1024px) {
    .hero-slider { height: 500px !important; min-height: 500px; }
    .hero-slide { height: 500px; min-height: 500px; padding: 100px 20px; }
    .hero-video { height: 100%; min-height: 600px; }
    .hero-slider h1 { font-size: 34px; line-height: 38px; }
    .slider-arrow { display: none; }
    
    .cta h2 { font-size: 34px; line-height: 36px; }
    
    /* === AJUSTE DE TEXTO MÓVIL SOLICITADO === */
    .hero-slider p { 
        font-size: 18px; 
        line-height: 22px; 
        margin-bottom: 25px; /* Ajuste visual opcional */
    }
    
    .cta p { 
        font-size: 17px; 
        line-height: 21px; 
    }
    /* ========================================= */

    .section-header h2 { font-size: 34px; line-height: 36px; }
    /* AQUÍ RESTAURAMOS LOS FILTROS EN COLUMNA PARA <1024px */
    .filters-row { flex-direction: column; align-items: stretch; gap: 12px; }
    .custom-dropdown { width: 100%; }
    
    .bulk-controls-row-static { flex-direction: column; align-items: flex-start; }
    
    /* MODIFICACIÓN: Botones en una fila para Tablet (<1024px) */
    .bulk-buttons-group-static { width: 100%; flex-direction: row; gap: 10px; }
    .bulk-buttons-group-static button { width: auto; flex: 1; justify-content: center; }

    .bulk-actions-floating { width: 94%; max-width: 420px; bottom: 15px; padding: 8px 12px; border-radius: 40px; left: 50%; }
    .bulk-controls-row { gap: 5px; justify-content: space-between; }
    .bulk-counter { padding-right: 0; border-right: none; gap: 8px; margin-right: 0; }
    .btn-text-desktop { display: none; }
    .btn-text-mobile { display: inline-block; }
    
    /* AJUSTE DEL BOTÓN PRIMARIO (DESCARGAR SELECCIONADOS) */
    .btn-bulk-primary { 
        padding: 15px 16px; /* Modificado según imagen d23db2 */
        font-size: 0.85rem; 
    }
    
    .bulk-actions-floating .btn-bulk-secondary { padding: 8px; border: 1px solid transparent; background: rgba(0,0,0,0.03); color: #7F8C8D; }
    .bulk-actions-floating .btn-bulk-secondary .btn-text-desktop { display: none; }
    
    .chips-row { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 12px; padding-bottom: 10px; width: calc(100% + 40px); margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
    .chip { flex-shrink: 0; }
    
    .backtotop { width: 42px; height: 42px; right: 15px; bottom: 20px; }
    .backtotop.has-bulk-bar { bottom: 100px; }
}

/* RESPONSIVE: MÓVIL PEQUEÑO (<600px) */
@media (max-width: 600px) {
    /* En pantallas muy pequeñas, volvemos a apilar los botones para seguridad */
    .bulk-buttons-group-static { flex-direction: column; }
    .bulk-buttons-group-static button { width: 100%; }
}

.btn-text-mobile { display: none; }
@media (max-width: 1024px) { .btn-text-mobile { display: inline; } }