/* =============================================
   PROTECOMPU 2026 - CSS OPTIMIZADO
   ============================================= */

/* ===== FUENTES LOCALES ===== */
/* ===== INTER ===== */

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter-v20-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter-v20-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter-v20-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter-v20-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}


/* ===== SPACE GROTESK ===== */

@font-face {
    font-family: 'Space Grotesk';
    src: url('/assets/fonts/space-grotesk-v22-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('/assets/fonts/space-grotesk-v22-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

/* ===== VARIABLES ===== */
:root {
    --primary: #138579;
    --primary-dark: #0f6b61;
    --primary-light: #1a9b8d;
    --secondary: #611a68;
    --secondary-dark: #4d1552;
    --secondary-light: #7a2180;
    --bg-primary: #fff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;
    --shadow-sm: 4px 4px 8px rgba(0, 0, 0, .1), -4px -4px 8px rgba(255, 255, 255, .9);
    --shadow-md: 8px 8px 16px rgba(0, 0, 0, .1), -8px -8px 16px rgba(255, 255, 255, .9);
    --shadow-lg: 12px 12px 24px rgba(0, 0, 0, .15), -12px -12px 24px rgba(255, 255, 255, .9);
    --font-primary: Inter, Inter-fallback, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', SpaceGrotesk-fallback, var(--font-primary);
    --spacing-xs: .45rem;
    --spacing-sm: .9rem;
    --spacing-md: 1.35rem;
    --spacing-lg: 1.8rem;
    --spacing-xl: 2.7rem;
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease
}

[data-theme=dark] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --shadow-sm: 4px 4px 8px rgba(0, 0, 0, .3), -4px -4px 8px rgba(255, 255, 255, .05);
    --shadow-md: 8px 8px 16px rgba(0, 0, 0, .3), -8px -8px 16px rgba(255, 255, 255, .05);
    --shadow-lg: 12px 12px 24px rgba(0, 0, 0, .4), -12px -12px 24px rgba(255, 255, 255, .05)
}

/* ===== RESET ===== */
*,
::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    font-synthesis: none;
    -moz-osx-font-smoothing: grayscale
}

/* body {
    font-family: var(--font-primary);
    font-size: 14.4px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden
} */

/* Solo activar transición de tema cuando el usuario cambia de tema */
body.theme-ready {
    transition: background .3s, color .3s
}

img {
    display: block;
    max-width: 100%;
    height: auto
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast)
}

button {
    border: 0;
    background: 0;
    cursor: pointer;
    font-family: inherit
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--spacing-md)
}

.infinite-brands-section .container {
    max-width: 100%;
    padding: 0 3rem
}

section {
    padding: 5rem 0
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    transition: opacity var(--transition-slow)
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none
}

.preloader-spinner {
    width: 45px;
    height: 45px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: 1s linear infinite spin
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .95);
    z-index: 999;
    height: 70px;
    transition: background var(--transition-normal), box-shadow var(--transition-normal)
}

[data-theme=dark] .header {
    background: rgba(15, 23, 42, .95);
}

.header .container {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-md)
}

.header.scrolled {
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .1)
}

[data-theme=dark] .header.scrolled {
    background: rgba(15, 23, 42, .95)
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem var(--spacing-md)
}

.logo {
    display: flex;
    align-items: center;
    gap: .5rem
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: .1rem
}

.logo-icon {
    width: 60px;
    height: 60px;
    color: var(--primary)
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap
}

.logo-tagline {
    font-size: .65rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
    white-space: nowrap
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin-left: 1rem
}

.nav-link {
    position: relative;
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast)
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-fast)
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary)
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%
}

.contact-btn {
    padding: .5rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    transition: background var(--transition-fast)
}

.contact-btn:hover {
    background: var(--primary-dark)
}

/* Ocultar ::after en contact-btn (no se usa) */
.contact-btn::after {
    display: none
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast)
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    z-index: 1000;
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal)
}

.theme-toggle svg {
    width: 21.6px;
    height: 21.6px;
    color: var(--text-primary);
    transition: transform var(--transition-normal)
}

.theme-toggle:hover {
    transform: scale(1.1)
}

[data-theme=dark] .sun-icon,
[data-theme=light] .moon-icon {
    display: none
}

[data-theme=dark] .moon-icon,
[data-theme=light] .sun-icon {
    display: block
}

/* ===== SCROLL TO TOP ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    z-index: 1000;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal)
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible
}

.scroll-to-top svg {
    width: 21.6px;
    height: 21.6px;
    color: #fff
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 54px;
    height: 54px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, .4);
    z-index: 1000;
    transform: translateZ(0);
    will-change: transform;
    transition: transform var(--transition-normal)
}

.whatsapp-float:hover {
    transform: scale(1.1)
}

.whatsapp-icon {
    width: 28.8px;
    height: 28.8px;
    color: #fff
}

/* ===== HERO ===== */
#home {
    position: relative;
    overflow: hidden
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 7rem 0 3.6rem;
    background:
        radial-gradient(circle at 20% 50%, rgba(19, 133, 121, .1) 0, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(97, 26, 104, .1) 0, transparent 50%),
        linear-gradient(135deg, rgba(19, 133, 121, .08) 0, rgba(97, 26, 104, .08) 100%);
}

.hero-content {
    max-width: 800px;
    text-align: center;
    animation: 1s both fadeInUp;
    will-change: opacity, transform
}

.hero-badge {
    display: inline-block;
    padding: .4rem 1.2rem;
    border-radius: 70px;
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: var(--shadow-sm)
}

.hero-title {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

[data-theme=dark] .hero-title {
    color: #1a1a1a;
}

.hero-title .line {
    display: block
}

[data-theme=dark] .hero-title .line {
    color: #1a1a1a;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.hero-description {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 70px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: var(--shadow-sm);
    text-shadow: none;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

[data-theme=dark] .hero-description {
    color: #fff;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary)
}

.stat-label {
    font-size: .9rem;
    color: var(--text-secondary)
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 1rem 2rem;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(19, 133, 121, .3);
    transition: var(--transition-normal)
}

/* .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(19, 133, 121, .4)
} */

.cta-button svg,
.chatbot-input svg {
    width: 20px;
    height: 20px
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: var(--text-secondary);
    height: 60px
}

.scroll-indicator {
    width: 28.8px;
    height: 54px;
    border: 2px solid var(--text-tertiary);
    border-radius: 40px;
    position: relative
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-tertiary);
    border-radius: 2px;
    animation: 2s infinite scrollDot
}

@keyframes scrollDot {

    0%,
    100% {
        transform: translate(-50%, 0);
        opacity: 1
    }

    50% {
        transform: translate(-50%, 12px);
        opacity: .5
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ===== SECCIÓN GENÉRICA ===== */
.section-header,
.brands-header,
.resources-header,
.solutions .section-header {
    text-align: center;
    margin-bottom: 4rem
}

.section-badge {
    display: inline-block;
    padding: .5rem 1.5rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--primary-dark);
    background: var(--bg-secondary);
    margin-bottom: 1rem
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: .75rem;
    border-bottom: 3px solid var(--primary);
    display: inline-block
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto
}

/* ===== SERVICIOS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem
}

.service-card {
    padding: 2rem;
    border-radius: 20px;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition-normal)
}

/* .service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg)
} */

.service-card.featured {
    border: 2px solid var(--primary)
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: .25rem .75rem;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(19, 133, 121, .3)
}

.service-icon svg {
    width: 28.8px;
    height: 28.8px;
    color: #fff
}

.service-features {
    list-style: none
}

.service-features li {
    padding: .5rem 0;
    color: var(--text-secondary);
    font-size: .9rem
}

.service-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    margin-right: .5rem
}

.service-btn {
    margin-top: 1rem;
    padding: .75rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    transition: background var(--transition-fast)
}

.service-btn:hover {
    background: var(--primary-dark)
}

.catalog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    background: linear-gradient(135deg, var(--secondary), #4d155a);
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: .3s;
    box-shadow: 0 8px 24px rgba(97, 26, 104, .25)
}

.catalog-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .1), transparent);
    opacity: 0;
    transition: opacity .3s
}

.catalog-btn svg {
    width: 21.6px;
    height: 21.6px;
    transition: .3s
}

.catalog-btn:hover {
    /* transform: translateY(-4px); */
    box-shadow: 0 12px 32px rgba(97, 26, 104, .35)
}

.catalog-btn:hover::before {
    opacity: 1
}

/* .catalog-btn:hover svg.arrow {
    transform: translateX(6px)
} */

.catalog-subtitle {
    margin-top: 1rem;
    font-size: .9375rem;
    color: var(--text-secondary)
}

/* Dark mode soluciones */
[data-theme=dark] .solution-card {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, .1)
}

[data-theme=dark] .solution-card:hover {
    border-color: rgba(19, 133, 121, .4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3)
}

[data-theme=dark] .solution-icon {
    background: rgba(19, 133, 121, .15)
}

/* ===== RIPPLE ===== */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    transform: scale(0);
    animation: .6s ease-out ripple-animation;
    pointer-events: none
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0
    }
}

/* ===== CTA SECTION ===== */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    text-align: center
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem
}

.cta-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem
}

.cta-card {
    background: rgba(255, 255, 255, .1);
    padding: 2rem;
    border-radius: 16px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal)
}

/* .cta-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .2)
} */

.cta-card svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem
}

.cta-card h3 {
    font-size: 1.25rem;
    margin-bottom: .5rem
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .8);
    z-index: 9999;
    padding: 2rem
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 80vh;
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    z-index: 1
}

.modal iframe {
    width: 100%;
    height: 100%;
    border: 0
}

/* ===== PRODUCTOS ===== */
.productos-home {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(19, 133, 121, .03), rgba(97, 26, 104, .03));
    position: relative
}

.search-results-count {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    font-size: .95rem;
    background: var(--bg-secondary);
    color: var(--text-secondary)
}

.productos-tabs-wrapper {
    margin: 2rem 0 3rem
}

.productos-tabs-desktop {
    display: flex;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap
}

.productos-tabs-mobile {
    display: none
}

.prod-tab {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    border: 2px solid var(--bg-tertiary);
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transition: .3s
}

.prod-tab svg {
    width: 18px;
    height: 18px
}

.prod-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px)
}

.prod-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(19, 133, 121, .3)
}

.prod-tab.active svg {
    color: #fff
}

.categoria-select {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--bg-tertiary);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-primary);
    cursor: pointer
}

.categoria-select:focus {
    outline: 0;
    border-color: var(--primary)
}

.productos-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem
}

.prod-card {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    position: relative;
    transition: .3s
}

.prod-card.hidden {
    display: none
}

.prod-card:hover {
    /* transform: translateY(-4px); */
    box-shadow: 0 8px 20px rgba(19, 133, 121, .12);
    border-color: rgba(19, 133, 121, .3)
}

.prod-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: .25rem .75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase
}

.prod-badge.clima {
    background: linear-gradient(135deg, #06b6d4, #0891b2)
}

.prod-badge.energia {
    background: linear-gradient(135deg, #f59e0b, #ea580c)
}

.prod-badge.infra {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed)
}

.prod-badge.seg {
    background: linear-gradient(135deg, #ef4444, #dc2626)
}

.prod-badge.monitor {
    background: linear-gradient(135deg, #3b82f6, #2563eb)
}

.prod-badge.serv {
    background: linear-gradient(135deg, #10b981, #059669)
}

.prod-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(19, 133, 121, .1), rgba(97, 26, 104, .1));
    border-radius: 12px;
    transition: background .3s
}

.prod-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    transition: color .3s
}

.prod-card:hover .prod-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary))
}

.prod-card:hover .prod-icon svg {
    color: #fff
}

.prod-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    padding-right: 80px
}

.prod-card>p {
    font-size: .875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0
}

.prod-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.prod-features li {
    font-size: .8125rem;
    color: var(--text-secondary);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.4
}

.prod-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .4rem;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%
}

.prod-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.25rem;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    border: 0;
    width: 100%;
    margin-top: auto;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: .3s
}

.prod-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 133, 121, .3)
}

.prod-cta svg {
    width: 16px;
    height: 16px
}

/* Estados de búsqueda */
.prod-card--hidden {
    opacity: 0;
    translate: 0 20px;
    transition: opacity .5s, translate .5s;
    will-change: opacity, translate
}

.prod-card--visible {
    opacity: 1;
    translate: 0 0;
    will-change: auto
}

.prod-card--highlight {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    transition: outline .3s
}

/* No results */
.no-results {
    text-align: center;
    padding: 4rem 2rem
}

.no-results svg {
    width: 64px;
    height: 64px;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: .5rem
}

.no-results p {
    color: var(--text-secondary)
}

.btn-reset-search {
    padding: .75rem 1.5rem;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: .3s
}

.btn-reset-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 133, 121, .3)
}

/* Dark mode productos */
[data-theme=dark] .prod-card {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, .1)
}

[data-theme=dark] .prod-card:hover {
    border-color: var(--primary)
}

/* ===== BUSCADOR PRODUCTOS ===== */
.productos-search-bar {
    position: relative;
    max-width: 700px;
    margin: 0 auto 3rem;
    display: flex;
    align-items: center
}

.productos-search-bar .search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: var(--text-secondary);
    pointer-events: none;
    z-index: 2
}

.productos-search-bar input {
    flex: 1;
    width: 100%;
    padding: 1.25rem 9rem 1.25rem 3.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--bg-tertiary);
    border-radius: 16px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-primary);
    transition: .3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05)
}

.productos-search-bar input:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(19, 133, 121, .1), 0 4px 12px rgba(0, 0, 0, .08);
    transform: translateY(-2px)
}

.productos-search-bar input::placeholder {
    color: var(--text-tertiary)
}

.search-button,
.search-clear {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: .3s;
    z-index: 3;
    animation: .2s ease-out fadeInScale
}

.search-button {
    right: 5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 2px 8px rgba(19, 133, 121, .3)
}

.search-button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(19, 133, 121, .4)
}

.search-button:active,
.search-clear:active {
    transform: translateY(-50%) scale(.95)
}

.search-button svg {
    width: 20px;
    height: 20px;
    color: #fff;
    stroke-width: 2.5
}

.search-clear {
    right: 1rem;
    background: var(--bg-tertiary)
}

.search-clear:hover {
    background: #fee2e2;
    transform: translateY(-50%) scale(1.05)
}

.search-clear svg {
    width: 18px;
    height: 18px;
    color: #ef4444;
    stroke-width: 2.5
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(.8)
    }

    to {
        opacity: 1;
        transform: translateY(-50%) scale(1)
    }
}

[data-theme=dark] .productos-search-bar input {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb
}

[data-theme=dark] .productos-search-bar input::placeholder {
    color: #6b7280
}

[data-theme=dark] .search-clear {
    background: #374151
}

[data-theme=dark] .search-clear:hover {
    background: #7f1d1d
}

[data-theme=dark] .productos-search-bar {
    border-color: rgba(255, 255, 255, .1)
}

/* ===== ESTADÍSTICAS ===== */
.stats {
    background: var(--bg-secondary)
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem
}

.stat-box {
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm)
}

.stat-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem
}

.stat-bar::before {
    content: '';
    display: block;
    height: 100%;
    background: var(--primary);
    width: 0;
    transition: width 1s
}

.stat-box.animated .stat-bar::before {
    width: var(--progress, 0)
}

.stat-label {
    color: var(--text-secondary);
    font-size: .9rem;
    margin: .5rem 0
}

/* ===== CERTIFICACIONES ===== */
.certifications-section {
    padding: 5rem 0;
    background: var(--bg-secondary)
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem
}

.certification-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal)
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal)
}

.certification-card:hover {
    /* transform: translateY(-10px); */
    box-shadow: var(--shadow-lg)
}

.certification-card:hover::before {
    transform: scaleX(1)
}

.certification-card[data-cert=uptime]:hover::before {
    background: linear-gradient(90deg, var(--primary), var(--primary-light))
}

.certification-card[data-cert=icrea]:hover::before {
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light))
}

.certification-card[data-cert=iso]:hover::before {
    background: linear-gradient(90deg, #138579, #611a68)
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-tertiary)
}

.cert-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal)
}

.certification-card:hover .cert-icon {
    transform: rotate(5deg) scale(1.05);
    box-shadow: var(--shadow-md)
}

.cert-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.cert-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: .5rem
}

.cert-level {
    display: inline-block;
    padding: .4rem 1rem;
    color: #fff;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 4px 12px rgba(19, 133, 121, .2)
}

.certification-card[data-cert=uptime] .cert-level {
    background: linear-gradient(135deg, var(--primary), var(--primary-light))
}

.certification-card[data-cert=icrea] .cert-level {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light))
}

.certification-card[data-cert=iso] .cert-level {
    background: linear-gradient(135deg, #138579, #611a68)
}

.cert-details {
    margin-top: 1.5rem
}

.cert-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem
}

.cert-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal)
}

.cert-feature:hover {
    /* transform: translateX(8px); */
    box-shadow: var(--shadow-md);
    background: var(--bg-primary)
}

.cert-feature .feature-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal)
}

.cert-feature:hover .feature-icon {
    transform: scale(1.1)
}

.feature-content h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: .25rem
}

.feature-content p {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.5
}

/* ===== CARRUSEL DE MARCAS ===== */

/* Flechas del carrusel */
.infinite-carousel-container {
    position: relative;
    /* Asegúrate que tenga position relative */
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    /* transform: translateY(-50%); */
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--bg-tertiary);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.carousel-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    /* transform: translateY(-50%) scale(1.1); */
    box-shadow: var(--shadow-lg);
}

.carousel-arrow--prev {
    left: 0;
}

.carousel-arrow--next {
    right: 0;
}

.infinite-carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-section, #0a0a1a), transparent);
}

.infinite-carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-section, #0a0a1a), transparent);
}

.infinite-brands-section {
    padding: 5rem 0;
    background: var(--bg-primary);
    overflow: hidden
}

.infinite-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 2rem 0
}

.infinite-carousel-track {
    display: flex;
    gap: 2rem;
    /* animation: 80s linear infinite scrollInfinite; */
    width: fit-content;
    will-change: transform
}

@keyframes scrollInfinite {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-50%)
    }
}

.infinite-carousel-container:hover .infinite-carousel-track {
    animation-play-state: paused
}

.brand-item {
    flex: 0 0 210px;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
    will-change: transform
}

.brand-item>* {
    position: relative;
    z-index: 1;
    cursor: default;
}

.brand-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal)
}

.brand-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(19, 133, 121, .05), rgba(97, 26, 104, .05));
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
    z-index: 0
}

.brand-item:hover {
    /* transform: translateY(-10px); */
    box-shadow: var(--shadow-lg)
}

.brand-item:hover::before {
    transform: scaleX(1)
}

.brand-item:hover::after {
    opacity: 1
}

.btn-brochure {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 24px;
    background: var(--primary, #5c0050);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-brochure svg {
    width: 20px;
    height: 20px;
}

.btn-brochure:hover {
    opacity: 0.85;
}

.brand-logo {
    width: 100%;
    height: 100px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    background: var(--bg-primary);
    overflow: hidden;
    transition: var(--transition-normal)
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* filter: grayscale(100%) opacity(.7); */
    transition: var(--transition-normal)
}

.brand-item:hover .brand-logo {
    /* transform: scale(1.05); */
    box-shadow: var(--shadow-sm)
}

/* .brand-item:hover .brand-logo img {
    /* filter: grayscale(0) opacity(1) 
}
*/

.brand-info {
    text-align: center
}

.brand-info h4 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: .5rem
}

.brand-info p {
    font-size: .95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4
}

.brand-category {
    display: inline-block;
    padding: .4rem 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast)
}

.brand-item:hover .brand-category {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    transform: scale(1.05)
}

.brand-item[data-brand*=legrand] .brand-category,
.brand-item[data-brand*=schneider] .brand-category,
.brand-item[data-brand*=starline] .brand-category,
.brand-item[data-brand*=tate] .brand-category,
.brand-item[data-brand*=vertiv] .brand-category {
    border-left: 3px solid var(--primary)
}

.brand-item[data-brand*=attom] .brand-category,
.brand-item[data-brand*=idemia] .brand-category,
.brand-item[data-brand*=kidde] .brand-category,
.brand-item[data-brand*=suprema] .brand-category {
    border-left: 3px solid var(--secondary)
}

.brand-item[data-brand*=akcp] .brand-category,
.brand-item[data-brand*=geist] .brand-category,
.brand-item[data-brand*=gesab] .brand-category,
.brand-item[data-brand*=reaction] .brand-category {
    border-left: 3px solid #2563eb
}

/* ===== POLÍTICAS ===== */
.policy-section {
    padding: 5rem 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden
}

.policy-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(19, 133, 121, .05) 0, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(97, 26, 104, .05) 0, transparent 50%);
    pointer-events: none
}

.policy-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1
}

.policy-card {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal)
}

.policy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition-normal)
}

.policy-card:hover {
    /* transform: translateY(-10px); */
    box-shadow: var(--shadow-lg)
}

.policy-card:hover::before {
    transform: scaleY(1)
}

.policy-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    transition: var(--transition-normal)
}

.quality-card .policy-icon {
    background: linear-gradient(135deg, rgba(19, 133, 121, .1), rgba(19, 133, 121, .2))
}

.quality-card .policy-icon svg {
    color: var(--primary)
}

.privacy-card .policy-icon {
    background: linear-gradient(135deg, rgba(97, 26, 104, .1), rgba(97, 26, 104, .2))
}

.privacy-card .policy-icon svg {
    color: var(--secondary)
}

.policy-card:hover .policy-icon {
    transform: scale(1.1) rotate(5deg)
}

.policy-content h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem
}

.policy-content>p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem
}

.policy-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 12px;
    transition: var(--transition-normal)
}

.highlight-item:hover {
    /* transform: translateX(8px); */
    box-shadow: var(--shadow-sm)
}

.highlight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px
}

.quality-card .highlight-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff
}

.privacy-card .highlight-icon {
    font-size: 1.2rem
}

.highlight-item span:last-child {
    color: var(--text-primary);
    font-weight: 500;
    font-size: .95rem
}

.policy-action {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--bg-tertiary)
}

.policy-link {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal)
}

.policy-link:hover {
    /* transform: translateY(-3px); */
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary))
}

.policy-link svg {
    transition: transform var(--transition-fast)
}

.policy-link:hover svg {
    transform: translate(3px, -3px)
}

/* Trust footer */
.trust-footer {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-md)
}

.trust-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 20px 20px 0 0
}

.trust-message h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: .5rem
}

.trust-message p {
    color: var(--text-secondary);
    line-height: 1.6
}

.trust-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0
}

.trust-link {
    display: inline-flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
    transition: var(--transition-normal)
}

.trust-link.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: var(--shadow-sm)
}

.trust-link.primary:hover {
    /* transform: translateY(-3px); */
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary))
}

.trust-link.secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--bg-tertiary)
}

.trust-link.secondary:hover {
    border-color: var(--primary);
    /* transform: translateY(-3px); */
    box-shadow: var(--shadow-sm)
}

/* ===== RECURSOS ===== */
.resources-section {
    padding: 5rem 0;
    background: var(--bg-secondary)
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem
}

.resource-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal)
}

.resource-card:hover {
    /* transform: translateY(-10px); */
    box-shadow: var(--shadow-lg)
}

.resource-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--bg-secondary)
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow)
}

.resource-card:hover .resource-image img {
    transform: scale(1.08)
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary))
}

.placeholder-image svg {
    color: var(--text-tertiary);
    opacity: .5
}

.resource-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: .5rem 1rem;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(19, 133, 121, .3)
}

.coming-soon .resource-category {
    background: var(--text-tertiary)
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: .5rem 1rem;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: #fff;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(97, 26, 104, .4);
    animation: 2s ease-in-out infinite pulse
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.05)
    }
}

.resource-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column
}

.resource-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap
}

.resource-date,
.resource-read-time {
    font-size: .85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: .25rem
}

.resource-date::before {
    content: '📅';
    font-size: 1rem
}

.resource-read-time::before {
    content: '⏱️';
    font-size: 1rem
}

.resource-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3
}

.resource-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1
}

.resource-action {
    margin-top: auto
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal)
}

.resource-link:hover {
    /* transform: translateY(-3px); */
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary))
}

.resource-link svg {
    transition: transform var(--transition-fast)
}


.featured-card {
    position: relative
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
    border-radius: 20px 20px 0 0
}

.featured-card .resource-image {
    height: 300px
}

.coming-soon {
    position: relative;
    opacity: .9
}

.coming-soon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(19, 133, 121, .05), rgba(97, 26, 104, .05));
    pointer-events: none
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    padding: .75rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px dashed var(--text-tertiary);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: .9rem;
    font-weight: 600
}

/* ===== FOOTER ===== */
.professional-footer {
    position: relative;
    background: var(--bg-secondary);
    padding: 4rem 0 0;
    overflow: hidden
}

.footer-background {
    position: absolute;
    inset: 0;
    z-index: 0
}

.footer-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(19, 133, 121, .05) 0, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(97, 26, 104, .05) 0, transparent 50%);
    pointer-events: none
}

.footer-content {
    position: relative;
    z-index: 1
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid var(--bg-tertiary)
}

.footer-section {
    display: flex;
    flex-direction: column
}

.company-info .footer-brand {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: .5rem;
    letter-spacing: 1px
}

.company-tagline {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 1rem
}

.company-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: .95rem
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .75rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: .3s
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm)
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    flex-shrink: 0
}

.contact-icon svg {
    color: #fff
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: .25rem
}

.contact-label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px
}

.contact-link {
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--transition-fast);
    word-break: break-word
}

.contact-link:hover {
    color: var(--primary)
}

.location-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    padding: .75rem;
    background: var(--bg-primary);
    border-radius: 10px;
    transition: var(--transition-normal)
}

.location-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm)
}

.location-icon {
    width: 28.8px;
    height: 28.8px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.location-icon svg {
    color: #fff
}

.location-link {
    color: var(--text-primary);
    font-weight: 600;
    transition: color var(--transition-fast)
}

.location-link:hover {
    color: var(--secondary)
}

.transparency-section {
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-md)
}

.transparency-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center
}

.transparency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem
}

.transparency-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: var(--transition-normal)
}

.transparency-item:hover {
    /* transform: translateY(-5px); */
    box-shadow: var(--shadow-md)
}

.transparency-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.transparency-icon svg {
    color: #fff
}

.transparency-info h5 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: .5rem
}

.transparency-info p {
    font-size: .9rem;
    color: var(--text-secondary);
    margin-bottom: .75rem
}

.transparency-link {
    display: inline-flex;
    align-items: center;
    color: #2d6a62;
    font-weight: 600;
    font-size: .9rem;
    transition: var(--transition-fast)
}

.transparency-link:hover {
    color: var(--secondary);
    transform: translateX(3px)
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 2px solid var(--bg-tertiary);
    margin-top: 2rem
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap
}

.legal-links {
    display: flex;
    gap: 1.5rem
}

.copyright,
.legal-link {
    color: var(--text-secondary);
    font-size: .9rem
}

.legal-link {
    font-weight: 500;
    transition: color var(--transition-fast)
}

.legal-link:hover {
    color: var(--primary)
}

.social-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .75rem;
    z-index: 1
}

.social-title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-primary)
}

.social-links {
    display: flex;
    gap: .75rem
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal)
}

.social-link svg {
    color: var(--text-primary);
    transition: color var(--transition-fast)
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md)
}

.social-link:hover svg {
    color: #fff
}

.social-link.facebook:hover {
    background: #1877f2
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%)
}

.social-link.twitter:hover {
    background: #000
}

.social-link.linkedin:hover {
    background: #0077b5
}

.social-link.youtube:hover {
    background: red
}

.social-link.tiktok:hover {
    background: linear-gradient(45deg, #69C9D0, #EE1D52);
}

/* ===== CHATBOT ===== */
.chatbot {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px !important;
    height: 580px !important;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    z-index: 1001
}

.chatbot.active {
    display: flex
}

.chatbot-header {
    padding: 1rem;
    background: var(--primary);
    color: #fff;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600
}

.chatbot-close {
    background: 0;
    border: 0;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background .2s
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, .2)
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 3px
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary)
}

.bot-message,
.user-message {
    padding: 1rem;
    border-radius: 12px;
    line-height: 1.6;
    max-width: 85%;
    word-wrap: break-word;
    animation: .3s slideIn
}

.bot-message {
    background: var(--bg-secondary);
    color: var(--text-primary);
    align-self: flex-start
}

.user-message {
    background: var(--primary);
    color: #fff;
    align-self: flex-end
}

.bot-message strong {
    color: var(--primary);
    font-weight: 600
}

.bot-message br {
    display: block;
    margin: .3rem 0
}

.bot-message a,
.message-text a {
    color: var(--primary);
    text-decoration: underline
}

.bot-message a:hover,
.message-text a:hover {
    color: var(--primary-dark)
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    max-width: 100px
}

.typing-dots {
    display: flex;
    gap: 4px
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--text-tertiary);
    border-radius: 50%;
    animation: 1.4s infinite typing
}

.typing-dots span:nth-child(2) {
    animation-delay: .2s
}

.typing-dots span:nth-child(3) {
    animation-delay: .4s
}

@keyframes typing {

    0%,
    60%,
    100% {
        opacity: .3;
        transform: translateY(0)
    }

    30% {
        opacity: 1;
        transform: translateY(-10px)
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.message-text {
    line-height: 1.6;
    word-wrap: break-word
}

.message-text strong {
    font-weight: 600
}

.message-time {
    font-size: .75rem;
    color: var(--text-secondary);
    align-self: flex-end
}

.chatbot-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--bg-tertiary);
    align-items: flex-end;
    gap: .5rem
}

.chatbot-input textarea {
    flex: 1;
    padding: .75rem;
    border: 0;
    background: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: .95rem;
    line-height: 1.4;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    overflow-y: auto;
    transition: .3s
}

.chatbot-input textarea::placeholder {
    color: var(--text-tertiary)
}

.chatbot-input textarea:focus {
    outline: 0;
    box-shadow: 0 0 0 2px var(--primary-light)
}

.chatbot-input textarea::-webkit-scrollbar {
    width: 6px
}

.chatbot-input textarea::-webkit-scrollbar-track {
    background: transparent
}

.chatbot-input textarea::-webkit-scrollbar-thumb {
    background: var(--text-tertiary);
    border-radius: 3px
}

.chatbot-input textarea::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary)
}

.chatbot-input button {
    padding: .75rem;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    transition: var(--transition-normal)
}

.chatbot-input button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px)
}

.chatbot-input button:active {
    transform: translateY(0)
}

.chatbot-input button:disabled {
    opacity: .5;
    cursor: not-allowed
}

/* Chatbot float */
.chatbot-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: transform var(--transition-normal);
    animation: 2s ease-in-out infinite pulse-chatbot
}

.chatbot-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(97, 26, 104, .6)
}

.chatbot-icon {
    width: 28.8px;
    height: 28.8px;
    color: #fff
}

@keyframes pulse-chatbot {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 12px rgba(97, 26, 104, .4))
    }

    50% {
        transform: scale(1.03);
        filter: drop-shadow(0 4px 20px rgba(97, 26, 104, .8))
    }
}

/* ===== PARTNERS / BADGES ===== */
.partners-badges {
    padding: 4rem 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--bg-tertiary)
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    max-width: 1080px;
    margin: 0 auto
}

.badge-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border: 2px solid var(--bg-tertiary);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: .4s cubic-bezier(.4, 0, .2, 1)
}

.badge-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(19, 133, 121, .1) 0, transparent 70%);
    transition: .6s;
    opacity: 0
}

.badge-card:hover::before {
    opacity: 1;
    transform: translate(-25%, 25%)
}

.badge-card:hover {
    /* transform: translateY(-8px); */
    box-shadow: 0 12px 40px rgba(19, 133, 121, .2);
    border-color: var(--primary)
}

.badge-logo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: .4s
}

.badge-logo svg {
    width: 40px;
    height: 40px;
    color: #fff
}

.badge-card:hover .badge-logo {
    transform: scale(1.1) rotate(5deg)
}

.badge-logo-image {
    background: #fff !important;
    padding: 2rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15) !important
}

.badge-logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.05) contrast(1.1)
}

[data-theme=dark] .badge-logo-image {
    background: #fff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .4) !important
}

[data-theme=dark] .badge-logo-image img {
    filter: brightness(.95) contrast(1.15)
}

.badge-content {
    flex: 1
}

.badge-brand {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: .5px;
    margin-bottom: .75rem;
    text-transform: uppercase
}

.badge-certification {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: .5rem
}

.badge-since {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase
}

.badge-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: .25rem
}

.badge-highlight {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: .625rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-radius: 50px;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(19, 133, 121, .3)
}

[data-theme=dark] .badge-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    border-color: rgba(255, 255, 255, .1)
}

[data-theme=dark] .badge-card:hover {
    border-color: var(--primary)
}

/* =============================================
   SECTORES SLIDER
   ============================================= */

.clients-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(19, 133, 121, .03), rgba(97, 26, 104, .03));
    overflow: hidden;
}

.clients-section .container {
    max-width: 1400px;
}

.sectors-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 3rem;
}

.sectors-track-outer {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.sectors-track {
    display: flex;
    gap: 20px;
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Ancho calculado por JS vía flexBasis inline */
.sector-card {
    flex-shrink: 0;
    min-width: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 20px;
    overflow: visible;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ----- Zona superior: imagen + fallback SVG ----- */
.sector-card__top {
    width: 100%;
    height: 220px;
    background: var(--bg-tertiary);
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Imagen real — cubre todo el área */
.sector-card__top img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* SVG fallback — oculto, solo se muestra si se agrega via JS */
.sector-card__top>svg {
    display: none;
}

/* ----- Ícono flotante sobre el borde imagen/cuerpo ----- */
.sector-card__icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: -26px auto 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    z-index: 3;
    flex-shrink: 0;
}

.sector-card__icon-wrap svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

/* ----- Cuerpo ----- */
.sector-card__body {
    position: relative;
    z-index: 1;
    padding: 2.25rem 1.25rem 1.75rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.sector-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.sector-card__desc {
    font-size: .85rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ----- Botones nav ----- */
.sectors-nav {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1.5px solid var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
}

.sectors-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.sectors-nav svg {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.sectors-nav:hover svg {
    color: #fff;
}

.sectors-nav--prev {
    margin-right: 14px;
}

.sectors-nav--next {
    margin-left: 14px;
}

.sectors-nav:disabled {
    opacity: .3;
    cursor: default;
    pointer-events: none;
}

/* ----- Dots ----- */
.sectors-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 1.75rem;
}

.sectors-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background var(--transition-fast), width var(--transition-fast), border-radius var(--transition-fast);
}

.sectors-dot.active {
    width: 22px;
    border-radius: 4px;
    background: var(--primary);
}

/* ----- Dark mode ----- */
[data-theme=dark] .sector-card {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, .08);
}

[data-theme=dark] .sector-card__top {
    background: var(--bg-tertiary);
}

[data-theme=dark] .sectors-nav {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, .15);
}

[data-theme=dark] .sectors-dot {
    background: rgba(255, 255, 255, .18);
}

/* ----- Mobile ----- */
@media (max-width: 640px) {
    .sectors-nav {
        display: none;
    }

    .sectors-slider-wrapper {
        margin-left: 0;
        margin-right: 0;
    }

    .sectors-track-outer {
        padding: 0 1rem;
    }

    .sector-card {
        box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sectors-track {
        transition: none;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    ::after,
    ::before {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important
    }
}

/* ===== RESPONSIVE 1024px ===== */
@media (max-width: 1024px) {
    .solutions {
        padding: 4rem 0
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem
    }

    .solutions .section-title-modern {
        font-size: 2rem
    }

    .solution-card {
        padding: 1.75rem
    }

    .solution-title {
        font-size: 1.25rem
    }

    .policy-grid {
        grid-template-columns: 1fr
    }

    .trust-footer {
        flex-direction: column;
        text-align: center
    }

    .trust-actions {
        flex-direction: column;
        width: 100%
    }

    .trust-link {
        justify-content: center;
        width: 100%
    }

    .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem
    }

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem
    }

    .social-section {
        align-items: center
    }

    .badges-grid {
        grid-template-columns: 1fr;
        gap: 2rem
    }
}

/* ===== RESPONSIVE 768px ===== */
@media (max-width: 768px) {

    .certifications-section,
    .infinite-brands-section,
    .policy-section,
    .productos-home,
    .resources-section,
    .solutions {
        padding: 3rem 0
    }

    .productos-grid-home,
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem
    }

    .brands-header,
    .policy-grid,
    .policy-header,
    .resources-header,
    .solutions .section-header {
        margin-bottom: 2.5rem
    }

    .solutions .section-title-modern {
        font-size: 1.75rem
    }

    .badge-certification,
    .solutions .section-subtitle {
        font-size: 1rem
    }

    .certification-card,
    .resource-content,
    .solution-card {
        padding: 1.5rem
    }

    .solution-icon {
        width: 56px;
        height: 56px
    }

    .solution-icon svg,
    .chatbot-icon {
        width: 28px;
        height: 28px
    }

    .solution-title {
        font-size: 1.125rem
    }

    .solution-cta,
    .solution-description,
    .solution-features li {
        font-size: .875rem
    }

    .solution-cta {
        padding: .75rem 1.25rem
    }

    .catalog-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 400px
    }

    .catalog-subtitle {
        font-size: .875rem;
        padding: 0 1rem
    }

    .productos-tabs-desktop {
        display: none
    }

    .productos-tabs-mobile {
        display: block
    }

    .prod-card h3 {
        font-size: .95rem
    }

    .certifications-grid,
    .footer-grid,
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 2rem
    }

    .cert-badge {
        flex-direction: column;
        align-items: flex-start;
        text-align: left
    }

    .cert-icon,
    .policy-icon {
        width: 70px;
        height: 70px
    }

    .cert-info h3,
    .resource-content h3 {
        font-size: 1.35rem
    }

    .cert-feature {
        padding: 1rem
    }

    .cert-feature .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem
    }

    .brand-item {
        flex: 0 0 220px;
        padding: 1.5rem
    }

    .brand-logo {
        height: 120px
    }

    .brand-info h4 {
        font-size: 1.2rem
    }

    .brand-info p {
        font-size: .9rem
    }

    .infinite-carousel-track {
        animation-duration: 30s
    }

    .policy-grid {
        gap: 2rem
    }

    .policy-card,
    .transparency-section,
    .trust-footer {
        padding: 2rem
    }

    .policy-icon svg {
        width: 40px;
        height: 40px
    }

    .badge-brand,
    .company-info .footer-brand,
    .policy-content h3 {
        font-size: 1.5rem
    }

    .commitment-text h3,
    .trust-message h3 {
        font-size: 1.25rem
    }

    .resource-image {
        height: 220px
    }

    .featured-card .resource-image {
        height: 250px
    }

    .resource-link {
        width: 100%;
        justify-content: center
    }

    .professional-footer {
        padding: 3rem 0 0
    }

    .badges-grid,
    .clients-grid,
    .transparency-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem
    }

    .section-title {
        font-size: 1.1rem
    }

    .legal-links {
        flex-direction: column;
        gap: .75rem
    }

    .chatbot,
    .chatbot-header {
        border-radius: 0
    }

    .chatbot {
        bottom: 0;
        width: calc(100vw - 2rem) !important;
        height: calc(100vh - 150px) !important;
        right: 1rem;
        left: 1rem
    }

    .chatbot-float {
        bottom: 90px;
        right: 20px;
        width: 56px;
        height: 56px
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: var(--bg-primary);
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        padding: 2rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, .1);
        transition: right var(--transition-normal)
    }

    .nav-menu.active {
        right: 0
    }

    .menu-toggle {
        display: flex
    }

    .theme-toggle {
        top: 80px;
        right: 20px
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem
    }

    .contact-content {
        grid-template-columns: 1fr
    }

    .partners-badges {
        padding: 2rem 0
    }

    .badge-card {
        padding: 2rem;
        flex-direction: column;
        text-align: center
    }

    .badge-logo {
        width: 64px;
        height: 64px
    }

    .badge-logo svg {
        width: 28.8px;
        height: 28.8px
    }

    .badge-brand {
        font-size: 2rem
    }

    .clients-commitment {
        flex-direction: column;
        text-align: center;
        padding: 2rem
    }

    .productos-search-bar {
        padding: 0 1rem
    }

    .productos-search-bar input {
        padding: 1rem 8rem 1rem 3rem;
        font-size: .95rem
    }

    .search-button,
    .search-clear {
        width: 40px;
        height: 40px
    }

    .search-button {
        right: 4.5rem
    }

    .search-button svg,
    .search-clear svg {
        width: 18px;
        height: 18px
    }
}

/* ===== RESPONSIVE 480px ===== */
@media (max-width: 480px) {
    .cert-features {
        gap: 1rem
    }

    .feature-content h4 {
        font-size: 1rem
    }

    .feature-content p {
        font-size: .85rem
    }

    .brand-item {
        flex: 0 0 200px;
        padding: 1.25rem
    }

    .brand-logo {
        height: 100px
    }

    .brand-info h4 {
        font-size: 1.1rem
    }

    .infinite-carousel-track {
        gap: 1.5rem;
        animation-duration: 25s
    }

    .highlight-item span:last-child,
    .policy-link,
    .trust-link {
        font-size: .9rem
    }

    .policy-card,
    .transparency-section,
    .trust-footer {
        padding: 1.5rem
    }

    .policy-content h3 {
        font-size: 1.35rem
    }

    .policy-content>p,
    .resource-content p {
        font-size: .95rem
    }

    .highlight-item {
        padding: .75rem
    }

    .policy-link {
        padding: .875rem 1.5rem
    }

    .trust-link {
        padding: .875rem 1.25rem
    }

    .resource-image {
        height: 200px
    }

    .featured-card .resource-image {
        height: 220px
    }

    .resource-content h3 {
        font-size: 1.25rem
    }

    .resource-link {
        padding: .875rem 1.5rem;
        font-size: .9rem
    }

    .resource-meta {
        gap: .75rem
    }

    .resource-date,
    .resource-read-time {
        font-size: .8rem
    }

    .contact-item,
    .location-item,
    .transparency-item {
        padding: 1rem
    }

    .transparency-title {
        font-size: 1.2rem
    }

    .social-links {
        gap: .5rem
    }

    .social-link {
        width: 36px;
        height: 36px
    }

    .productos-search-bar {
        max-width: 100%;
        margin-bottom: 2rem
    }

    .productos-search-bar input {
        padding: 1rem 7.5rem 1rem 2.75rem;
        font-size: .9rem;
        border-radius: 12px
    }

    .productos-search-bar .search-icon {
        left: 1rem;
        width: 20px;
        height: 20px
    }

    .search-button {
        right: 4rem;
        width: 38px;
        height: 38px
    }

    .search-clear {
        right: .75rem;
        width: 38px;
        height: 38px
    }

    .search-button svg {
        width: 17px;
        height: 17px
    }

    .search-clear svg {
        width: 16px;
        height: 16px
    }
}

/* ===== UBICACIONES ===== */
.ubicaciones-mapa {
    display: flex;
    justify-content: center;
}

.ubicaciones-mapa img {
    width: 100%;
    max-width: 1000px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* ===== NOSOTROS ===== */
.nosotros {
    padding: 0;
    overflow: hidden;
    background: #f0f4f8;
}

.nosotros-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 620px;
}

.nosotros-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
    padding: 5rem 3.5rem 5rem 4rem;
}

.nosotros-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--primary, #138579);
}

.nosotros-badge::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 3px;
    background: var(--primary, #138579);
    border-radius: 2px;
}

.nosotros-title {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.05;
    color: #0d1b2e;
}

.nosotros-body {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    max-height: 260px;
    overflow-y: auto;
    padding-right: .4rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(0, 0, 0, .1);
}

.nosotros-body p {
    font-size: .9rem;
    line-height: 1.7;
    color: #4a5568;
}

.nosotros-body strong {
    color: #1a1a1a;
    font-weight: 600;
}

.nosotros-divider {
    width: 48px;
    height: 2px;
    background: rgba(0, 0, 0, .12);
    border-radius: 2px;
}

.nosotros-tagline {
    font-size: .88rem;
    color: #4a5568;
}

.nosotros-year {
    color: var(--primary, #138579);
    font-weight: 700;
}

.nosotros-cta {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    align-self: flex-start;
    padding: .65rem 1.6rem;
    background: var(--primary, #138579);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    border-radius: 4px;
    transition: background 150ms ease, transform 150ms ease;
}

.nosotros-cta:hover {
    background: var(--primary-dark, #0f6b61);
    transform: translateX(4px);
}

/* Media / carrusel */
.nosotros-media {
    position: relative;
    overflow: hidden;
    background: #d8e2ec;
}

.nosotros-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(240, 244, 248, .4) 0%, transparent 55%);
    pointer-events: none;
    z-index: 1;
}

/* ── MODO OSCURO ── */
[data-theme=dark] .nosotros {
    background: #070e1a;
}

[data-theme=dark] .nosotros-title {
    color: #ffffff;
}

[data-theme=dark] .nosotros-body p {
    color: rgba(255, 255, 255, .75);
}

[data-theme=dark] .nosotros-body strong {
    color: #fff;
}

[data-theme=dark] .nosotros-divider {
    background: rgba(255, 255, 255, .15);
}

[data-theme=dark] .nosotros-tagline {
    color: rgba(255, 255, 255, .8);
}

[data-theme=dark] .nosotros-media {
    background: #0a1522;
}

[data-theme=dark] .nosotros-media::after {
    background: linear-gradient(to right, rgba(7, 14, 26, .4) 0%, transparent 55%);
}

[data-theme=dark] .nosotros-badge {
    color: var(--primary-light, #1a9b8d);
}

/* Responsive */
@media (max-width: 900px) {
    .nosotros-inner {
        grid-template-columns: 1fr;
    }

    .nosotros-content {
        padding: 3rem 1.5rem 2.5rem;
        order: 2;
    }

    .nosotros-media {
        min-height: 300px;
        order: 1;
    }

    .nosotros-body {
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 480px) {
    .nosotros-content {
        padding: 2.5rem 1.25rem 2rem;
    }

    .nosotros-media,
    .nosotros-slider {
        min-height: 240px;
    }

    .nosotros-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nosotros-slide {
        transition: none;
    }

    .nosotros-progress-bar {
        transition: none !important;
    }
}