:root {
    /* Color Palette - Total Ground UX 2026 */
    --bg-primary: #ffffff;
    --bg-secondary: #fdfdfd;
    --bg-floating: rgba(255, 255, 255, 0.85);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --brand: #e30613;
    --brand-soft: rgba(227, 6, 19, 0.08);
    --brand-glow: rgba(227, 6, 19, 0.2);

    --border: rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.04);
    --shadow-float: 0 20px 50px rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-main: 'Inter', system-ui, sans-serif;

    /* Animation Tokens */
    --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
    --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);

    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 32px;
    --space-xl: 64px;
}

/* Global Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

/* Global Adjustments */
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Layout Utility --- */
.container {
    padding: 0 var(--space-md);
}

.section-padding {
    padding: var(--space-xl) 0;
}

.banner-section img,
.banner-section video {
    margin: 0 auto !important;
}

/* --- Floating Header 2026 --- */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1300px;
    height: 70px;
    background: var(--bg-floating);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 40px;
    box-shadow: var(--shadow-float);
    z-index: 10000;
    /* Extremely high to stay on top */
    display: flex;
    align-items: center;
    padding: 0 30px;
    transition: var(--transition-smooth);
    pointer-events: auto;
    /* Ensure it's clickable */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo {
    font-size: 1.4rem;
    font-weight: 950;
    letter-spacing: -2px;
    font-style: italic;
    color: var(--text-primary);
    cursor: pointer;
}

.logo span {
    color: var(--brand);
}

.logo img {
    height: 52px;
    width: auto;
    display: block;
    transition: var(--transition-smooth);
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    height: 100%;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    position: relative;
    z-index: 10002;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 15px;
    height: 3px;
    background: var(--brand);
    border-radius: 10px;
}

.nav-menu-cta {
    display: none !important;
}

/* --- Global Buttons --- */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), #a5040e);
    color: white !important;
    padding: 10px 24px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 20px rgba(227, 6, 19, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header .cta-btn {
    margin-left: 20px;
    /* Separacion de los links en el menu */
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(227, 6, 19, 0.4);
    filter: brightness(1.1);
}

.cta-btn:active {
    transform: translateY(-1px);
}

.cta-btn.outline {
    background: transparent;
    border: 2px solid var(--brand);
    color: var(--brand) !important;
    box-shadow: none;
}

.cta-btn.outline:hover {
    background: var(--brand-soft);
    color: var(--brand) !important;
}

/* --- Global Footer (Refined) --- */
.footer {
    background: #111;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.footer .logo {
    font-size: 3rem;
    margin-bottom: 40px;
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* --- Home Hero 2026 --- */
/* --- Home Hero 2026 - Modern Full Screen Style --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content */
    padding-top: 80px;
    /* Reduced padding since header floats */
    position: relative;
    overflow: hidden;
    background: #0f172a;
    z-index: 1;
}

/* Background for the Video */
.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 1s ease;
    /* Show video clearly */
}

.hero-video.fade-out {
    opacity: 0;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
    z-index: 1;
    cursor: grab;
    user-select: none;
}

.hero-carousel:active {
    cursor: grabbing;
}

.hero-carousel.active {
    opacity: 1;
    pointer-events: all;
}

.hero-carousel-track {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: background 0.3s, transform 0.3s, opacity 1s ease;
}

.hero-carousel-btn.active {
    opacity: 1;
    pointer-events: all;
}

.hero-carousel-btn:hover {
    background: var(--primary-color, rgba(0, 0, 0, 0.8));
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel-btn.prev {
    left: 20px;
}

.hero-carousel-btn.next {
    right: 20px;
}

/* Carousel Dots Indicators */
.hero-carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 25;
    align-items: center;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(227, 6, 19, 0.3);
    /* Dark reddish/brown circle */
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.hero-dot.active {
    width: 32px;
    /* Elongated capsule/pill shape */
    border-radius: 5px;
    background-color: #e30613;
    /* Bright red */
    box-shadow: 0 0 10px rgba(227, 6, 19, 0.6);
}

.hero-overlay {
    display: none;
    /* Hide global overlay shadow */
}

.hero-carousel-slide .hero-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    /* Shadow overlay exclusively for the video slide */
    z-index: 2;
    pointer-events: none;
}

.hero-carousel-slide .hero-grid-layout {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
}

.hero-carousel-slide .hero-content {
    pointer-events: auto;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(227, 6, 19, 0.1);
    border: 1px solid rgba(227, 6, 19, 0.3);
    color: #ff4d58;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 25px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: var(--space-md);
    color: white;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title span {
    color: var(--brand);
    /* Highlight word */
    display: inline-block;
    /* Keep inline with flow or block if needed, inline is safer for mixed text */
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    max-width: 600px;
    color: #cbd5e1;
    /* Text-300 equivalent */
    margin-bottom: var(--space-xl);
    line-height: 1.6;
    font-weight: 400;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
}

/* Glassmorphism Button Override for Hero */
.hero-btns .cta-btn {
    background: var(--brand);
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
}

.hero-btns .cta-btn:hover {
    background: #c90511;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(227, 6, 19, 0.4);
}

.hero-btns .cta-btn.outline {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    backdrop-filter: blur(5px);
}

.hero-btns .cta-btn.outline:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: white !important;
}

/* --- Bento Grid Section --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 20px;
}

.bento-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 30px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-float);
    border-color: var(--brand);
}

.bento-1 {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-2 {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-3 {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-4 {
    grid-column: span 1;
    grid-row: span 1;
}

.stat-glow {
    font-size: 4rem;
    font-weight: 900;
    color: var(--brand);
    opacity: 0.1;
    position: absolute;
    bottom: -10px;
    right: 20px;
}

/* --- Infinite Scrolling Product Names --- */
.infinite-scroll-section {
    background: var(--bg-primary);
    padding: 25px 0;
    overflow: hidden;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.scroll-container {
    width: 100%;
    overflow: hidden;
}

.scroll-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation-name: scroll-left;
    animation-duration: 20s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: running;
    will-change: transform;
}

.scroll-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.scroll-item:hover {
    color: var(--brand);
}

.scroll-item img {
    height: 35px;
    width: auto;
    display: block;
    opacity: 0.8;
    filter: grayscale(100%);
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.scroll-item:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.scroll-container:hover .scroll-track {
    animation-play-state: paused;
}

/* --- Family Section Styles --- */
/* --- Common Section Elements --- */
.section-header {
    margin-bottom: var(--space-lg);
    margin: 0 auto;
    max-width: 900px;
    background-image: url('../images/Banner-EMPRESA-Conoce-Fam-TG.jpg');
    /* ruta de tu imagen */
    background-size: cover;
    /* que cubra todo */
    background-position: center;
    /* centrada */
    background-repeat: no-repeat;
    /* sin repetir */
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.section-title span {
    color: var(--brand);
}

.section-subtitle {
    color: var(--text-secondary);
    text-align: justify;
    margin-left: 0;
    margin-right: auto;
    max-width: 900px;

}

/* --- Services Grid Mini (Home) --- */
.services-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.service-card-mini {
    background: var(--bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-card-mini:hover {
    border-color: var(--brand);
    transform: translateY(-5px);
    background: var(--bg-accent);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.service-card-mini h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.service-card-mini p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.link-arrow {
    color: var(--brand);
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Final CTA --- */
.final-cta .cta-box {
    background: linear-gradient(135deg, var(--brand), #a5040e);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    color: white;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.final-cta p {
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.cta-btn.accent {
    background: var(--accent);
    color: var(--bg-primary);
}

.cta-btn.accent:hover {
    background: rgb(26, 13, 13);
}

/* --- Empresa Page --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: var(--space-xl) auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--brand);
    border: 4px solid var(--bg-primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.right::after {
    left: -8px;
}

.timeline-content {
    padding: 20px;
    background: var(--bg-secondary);
    position: relative;
    border-radius: var(--radius-md);
}

/* --- Servicios PÃ¡gina Completa --- */
.services-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.service-card-full {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    padding: var(--space-lg);
}

.service-card-full h2 {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(37, 99, 235, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
}

.service-card-full h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--brand);
}

.service-card-full p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.service-card-full ul {
    list-style: none;
}

.service-card-full li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.service-card-full li::before {
    content: 'â†’';
    position: absolute;
    left: 0;
    color: var(--accent);
}

@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 23px;
    }

    .timeline-item.right {
        left: 0;
    }
}

/* --- Responsive Nav (Continued) --- */
/* --- Catálogo UX 2026 --- */
.catalog-page {
    padding-top: 140px;
}

.catalog-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 34px;
    align-items: start;
    width: min(calc(100% - 32px), 1720px);
    padding-bottom: 80px;
    /* Added padding to prevent footer/carousel overlap */
    min-height: 800px;
    /* Ensure container is tall enough for the sticky sidebar */
}

.catalog-content {
    width: 100%;
    min-width: 0;
}

.catalog-sidebar {
    background: transparent;
    position: sticky;
    top: 120px;
    /* Removed max-height from here to avoid bleeding when overflow is visible */
    overflow: visible;
    z-index: 10;
}

.sidebar-inner {
    background: #1e293b;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: calc(100vh - 160px);
    /* Applied here to contain scroll correctly */
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-inner::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for Chrome/Safari */
.catalog-sidebar::-webkit-scrollbar {
    display: none;
}

.catalog-sidebar .search-box {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.catalog-sidebar .search-box input {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.catalog-sidebar .search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.catalog-sidebar .search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.clear-search-btn {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    display: none;
    /* Hidden by default */
    z-index: 10;
}

.clear-search-btn:hover {
    color: var(--brand);
    text-shadow: 0 0 8px rgba(227, 6, 19, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.clear-search-btn.is-visible {
    display: block;
}

.catalog-sidebar .filter-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    padding: 25px;
    background: rgba(0, 0, 0, 0.2);
}

.filter-group {
    padding: 0;
}

.filter-list,
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-list li:last-child {
    border-bottom: none;
}

.filter-btn {
    width: 100%;
    padding: 18px 25px;
    background: transparent;
    border: none;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    position: relative;
}

.filter-btn::before {
    content: '+';
    font-size: 1.2rem;
    font-weight: 700;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.filter-btn::after {
    content: attr(data-count);
    background: var(--bg-primary);
    color: var(--brand);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 900;
    min-width: 28px;
    text-align: center;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 30px;
}

.filter-btn.active {
    background: #e30613;
    color: white;
}

.filter-btn.active-parent {
    color: white;
    background: #e30613;
}

.filter-btn.active-parent::before {
    color: white;
}

.filter-btn.active::before {
    transform: rotate(45deg);
}

/* Submenu styles */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #6a6d73;
}

.has-submenu.expanded>.submenu {
    max-height: 2000px;
}

.has-submenu.expanded>.filter-btn::before {
    transform: rotate(45deg);
}

.filter-btn.sub {
    padding: 14px 25px 14px 45px;
    font-size: 0.85rem;
    font-weight: 600;
    background: transparent;
}

.filter-btn.sub::before {
    content: '+';
    /* Changed from static '—' to interactive '+' */
    font-size: 1rem;
    margin-right: 12px;
    font-weight: 700;
}

.filter-btn.sub:hover {
    background: rgba(28, 23, 23, 0.552);
    padding-left: 50px;
}

.filter-btn.sub.active {
    background: rgba(28, 23, 23, 0.552);
}

.filter-btn.sub.active-child {
    background: rgba(28, 23, 23, 0.552);
    color: white;
}

.filter-btn.sub.active-child::before {
    color: white;
}

/* Sub-submenu styles (3rd level) */
.sub-submenu {
    background: rgba(127, 138, 155, 0.411) !important;
}

.filter-btn.subsub {
    padding: 12px 25px 12px 65px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: none;
    /* Sub-subs look better in normal case */
    color: rgba(255, 255, 255, 0.85);
}

.filter-btn.subsub::before {
    content: '•';
    font-size: 0.8rem;
    margin-right: 8px;
    opacity: 0.6;
}

.filter-btn.subsub:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 70px;
    color: white;
}

.filter-btn.subsub.active {
    color: white;
    font-weight: 700;
    background: rgba(227, 6, 19, 0.08);
}

.filter-btn.subsub.active-child {
    color: white;
    font-weight: 700;
    background: #7f8a9b;
}

.filter-btn.subsub.active-child::before {
    color: white;
    opacity: 0.9;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    width: 100%;
    justify-content: start;
    /* Don't stretch if there are few items, keep it clean */
}

@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1600px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.product-card {
    background: var(--bg-primary);
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    /* Needed for glow effect */
}

/* --- High-End Hover Effect (Light Mode only) --- */
html:not([data-theme="dark"]) .product-card::before {
    content: "";
    position: absolute;
    width: 250%;
    /* Extended to ensure it sweeps the entire perimeter */
    height: 250%;
    background: conic-gradient(from 0deg,
            transparent 0%,
            var(--brand) 15%,
            transparent 30%,
            transparent 50%,
            #000000 65%,
            transparent 80%,
            transparent 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: rotate-glow 4s infinite linear;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

html:not([data-theme="dark"]) .product-card:hover::before {
    opacity: 1;
}

html:not([data-theme="dark"]) .product-card::after {
    content: "";
    position: absolute;
    inset: 2px;
    /* Maintain the original two-tone design: top grey, bottom white */
    background: linear-gradient(to bottom, #f8f9fa 230px, #ffffff 230px);
    border-radius: 22px;
    z-index: 1;
    pointer-events: none;
}

/* Ensure children stay above the effect */
.product-card>* {
    position: relative;
    z-index: 2;
}

@keyframes rotate-glow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
    border-color: var(--brand-glow);
}

.product-img-container {
    width: 100%;
    height: 230px;
    background: transparent;
    /* Changed to transparent to show glow */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    padding: 20px;
    cursor: pointer;
    position: relative;
}

.product-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 190px;
    background: transparent;
    /* Changed to transparent to show glow */
}

.product-category-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand);
    font-weight: 700;
    opacity: 0.7;
}

.product-name {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.product-price-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.price-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.product-price {
    color: var(--text-primary);
    font-weight: 900;
    font-size: 1.4rem;
}

.product-price.contact-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
}

.product-icon-fallback {
    font-size: 4rem;
    color: #ddd;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.product-img-container.no-img .product-card-img {
    display: none !important;
}

.product-img-container.no-img .product-icon-fallback {
    display: flex !important;
}

.product-action {
    width: calc(100% - 4px);
    margin: 0 2px 2px 2px;
    padding: 18px;
    border: none;
    border-radius: 0 0 22px 22px;
    background: var(--brand);
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
}

.product-action:hover {
    background: #c00;
    filter: brightness(1.1);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    margin-bottom: 20px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.page-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--text-primary);
}

.page-btn.active {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.page-ellipsis {
    padding: 0 5px;
    color: #94a3b8;
    font-weight: 700;
}

.pagination-summary {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .catalog-container {
        grid-template-columns: 1fr;
    }
}

/* --- Multimedia Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.gallery-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: var(--brand);
}

.gallery-thumb {
    aspect-ratio: 16/9;
    background: var(--bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.gallery-info {
    padding: var(--space-md);
    text-align: center;
}

/* Premium Contact Modal Redesign */
.contact-premium-layout {
    display: flex;
    overflow: hidden;
    margin: -40px;
    /* Offset the modal padding */
}

.contact-brand-info {
    flex: 1;
    background: linear-gradient(135deg, var(--brand) 0%, #a21a1a 100%);
    padding: 60px 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-brand-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-brand-header p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.contact-methods {
    margin: 40px 0;
}

.method-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.method-icon {
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.method-text strong {
    display: block;
    margin-bottom: 2px;
}

.method-text p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.social-links-minimal {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icons-row {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-dot {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.social-dot:hover {
    background: var(--bg-primary);
    color: var(--brand);
}

.contact-form-section {
    flex: 1.5;
    padding: 60px;
    background: var(--bg-primary);
}

.form-header {
    margin-bottom: 35px;
}

.form-header h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.product-context {
    display: inline-block;
    padding: 8px 15px;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.9rem;
    border-left: 3px solid var(--brand);
}

.premium-modern-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.floating-group {
    position: relative;
}

.floating-group input,
.floating-group textarea {
    width: 100%;
    padding: 15px 0;
    font-size: 1rem;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    background: transparent;
    transition: 0.3s;
    font-family: inherit;
}

.floating-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: #94a3b8;
    pointer-events: none;
    transition: 0.3s;
}

.floating-group input:focus,
.floating-group textarea:focus {
    outline: none;
    border-color: var(--brand);
}

.floating-group input:focus+label,
.floating-group input:not(:placeholder-shown)+label,
.floating-group textarea:focus+label,
.floating-group textarea:not(:placeholder-shown)+label {
    top: -10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand);
}

.premium-submit {
    margin-top: 20px;
    background: var(--brand);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.premium-submit:hover {
    background: var(--brand-glow);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--brand-glow);
}

.premium-submit.loading span {
    opacity: 0.7;
}

@media (max-width: 900px) {
    .contact-premium-layout {
        flex-direction: column;
    }

    .contact-brand-info {
        padding: 40px;
    }

    .contact-form-section {
        padding: 40px;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Modal Product Details */
.modal-product-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.modal-product-image {
    flex: 1;
    background: #f8fafc;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.modal-product-details {
    flex: 1.5;
}

.modal-product-header .badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.modal-product-header h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.modal-price {
    font-weight: 700;
    color: var(--brand);
    font-size: 1.2rem;
}

.modal-specs {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.modal-specs p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.modal-description {
    margin-top: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.download-btn,
.contact-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.download-btn {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.download-btn:hover {
    background: #f8fafc;
    border-color: var(--brand);
}

.contact-btn {
    background: var(--brand);
    color: white;
}

.contact-btn:hover {
    background: var(--brand-glow);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--brand-glow);
}

@media (max-width: 768px) {
    .modal-product-layout {
        flex-direction: column;
    }

    .modal-actions {
        flex-direction: column;
    }
}

.no-image-placeholder {
    padding: 40px;
    color: var(--text-muted);
    font-style: italic;
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
}

.modal-content {
    background-color: var(--bg-primary);
    margin: auto;
    padding: 40px;
    border-radius: 30px;
    width: 95%;
    max-width: 900px;
    color: var(--text-primary);
    box-shadow: var(--shadow-float);
    position: relative;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.modern-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.modern-form input,
.modern-form textarea,
.modern-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.modern-form input:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    cursor: pointer;
}

/* --- Events & Manuals --- */
.events-grid,
.manuals-list {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.event-card,
.manual-item {
    background: var(--bg-secondary);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    border: 1px solid var(--border);
}

.event-date {
    background: var(--brand);
    color: white;
    padding: 10px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 800;
    min-width: 80px;
}

.event-date span {
    display: block;
    font-size: 1.5rem;
}

.manual-icon {
    font-size: 2rem;
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.map-placeholder {
    height: 300px;
    background: var(--bg-accent);
    margin-top: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    |
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .header .cta-btn {}
}

/* --- Recognizable WhatsApp FAB --- */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 15000;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    text-decoration: none;
    color: white;
}

.wa-svg {
    width: 32px;
    height: 32px;
}

.whatsapp-fab:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.wa-tooltip {
    position: absolute;
    right: 75px;
    background: var(--bg-primary);
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #128c7e;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.whatsapp-fab:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.scroll-top-btn {
    position: fixed;
    left: 30px;
    bottom: 30px;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #a5040e);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(227, 6, 19, 0.28);
    cursor: pointer;
    z-index: 14990;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(18px) scale(0.92);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 18px 36px rgba(227, 6, 19, 0.34);
}

.scroll-top-btn:focus-visible {
    outline: 3px solid rgba(227, 6, 19, 0.22);
    outline-offset: 3px;
}

.scroll-top-icon {
    width: 28px;
    height: 28px;
}

@media (max-width: 600px) {
    .whatsapp-fab {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .wa-tooltip {
        display: none;
    }
}


/* --- Navigation Dropdown 2026 --- */
.nav-item-has-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-item-has-dropdown .arrow {
    font-size: 0.7rem;
    margin-left: 4px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px;
    min-width: 260px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1000;
}

.nav-item-has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.nav-item-has-dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    gap: 12px;
    white-space: nowrap;
}

.dropdown-item i {
    color: #E30613;
    font-style: normal;
    font-size: 0.9rem;
    filter: drop-shadow(0 0 5px rgba(227, 6, 19, 0.3));
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
    color: #E30613;
}


/* --- Familia Total Ground Section --- */
.family-section {
    background: var(--bg-primary);
    /* Pure white */
    padding: 100px 0;
    /* More spacious */
}

.family-section .container {
    width: min(100%, 1640px);
}

.family-carousel-wrapper {
    padding: 0 26px;
}

.section-header.center {
    text-align: center;
    margin: 0 auto;
}

.header-line {
    width: 300px;
    height: 4px;
    background: var(--brand);
    margin: 20px auto;
    border-radius: 2px;
}

.family-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 10px 40px 10px;
    margin-top: 40px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar for cleaner look with arrows */
    -ms-overflow-style: none;
}

.family-grid::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome/Safari */
}

/* Carousel Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: var(--bg-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.carousel-nav:hover {
    background: var(--brand);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: -30px;
}

.carousel-nav.next {
    right: -30px;
}

/* Hide navigation on touch devices if scroll is preferred */
@media (max-width: 768px) {
    .family-section .container {
        width: 100%;
    }

    .family-carousel-wrapper {
        padding: 0;
    }

    .carousel-nav {
        display: none;
    }

    .family-grid {
        scrollbar-width: thin;
    }

    .family-grid::-webkit-scrollbar {
        display: block;
    }
}

.family-card {
    position: relative;
    flex: 0 0 280px;
    /* Fixed width for horizontal scroll */
    height: 400px;
    /* Vertical banner height */
    overflow: hidden;
    border-radius: 20px;
    background: #f8f9fa;
    /* Fallback background */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Align content to bottom */
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.family-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    z-index: 1;
}


.family-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.family-card-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    color: white;
}

.family-name {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Background Zoom Effect */
.family-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: var(--bg-size, cover);
    background-position: var(--bg-pos, center);
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    z-index: 0;
}

.family-card:hover::before {
    transform: scale(1.1);
}

.family-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.family-icon-box {
    width: 120px;
    height: 120px;
    background: var(--bg-primary);
    border-radius: 50%;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08), inset 0 0 15px rgba(0, 0, 0, 0.02);
    padding: 20px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.family-icon-box img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.family-icon-box[data-icon]::before {
    content: attr(data-icon);
    font-size: 3rem;
}

.family-name {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
    color: white;
    max-width: 160px;
}

/* --- Navigation Dropdown 2026 --- */
.nav-item-has-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-item-has-dropdown .arrow {
    font-size: 0.7rem;
    margin-left: 4px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px;
    min-width: 260px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1000;
}

.nav-item-has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.nav-item-has-dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    gap: 12px;
    white-space: nowrap;
}

.dropdown-item i {
    color: #E30613;
    font-style: normal;
    font-size: 0.9rem;
    filter: drop-shadow(0 0 5px rgba(227, 6, 19, 0.3));
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
    color: #E30613;
}

@media (max-width: 1200px) {
    .family-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .family-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .family-icon-box {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .family-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Destacados / Top Line Section --- */
.highlights-grid-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.highlights-box {
    background: var(--bg-primary);
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.highlights-header {
    margin-bottom: 50px;
    position: relative;
}

.destacados-badge {
    display: inline-flex;
    align-items: center;
    color: var(--brand);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.destacados-badge::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--brand);
    margin-right: 15px;
}

.highlights-main-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1a202c;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.highlights-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    opacity: 0.8;
}

.solutions-banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.solution-banner-card {
    height: 260px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.solution-banner-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    z-index: 1;
    transition: var(--transition-smooth);
}

.solution-banner-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(227, 6, 19, 0.2);
}

.solution-banner-card:hover::after {
    background: linear-gradient(to top, rgba(227, 6, 19, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.solution-banner-card.banner-1 {
    background-image: url('../images/Destacados/01-SPT-Pararrayos.jpg');
}

.solution-banner-card.banner-2 {
    background-image: url('../images/Destacados/02-TGONE_IOT.jpg');
}

.solution-banner-card.banner-3 {
    background-image: url('../images/06.jpg');
}

.banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.banner-content h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.banner-btn {
    background: var(--bg-primary);
    color: #1a202c;
    padding: 8px 25px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: lowercase;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.banner-btn:hover {
    background: var(--brand);
    color: white;
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .highlights-box {
        padding: 40px;
    }

    .solutions-banners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .solutions-banners-grid {
        grid-template-columns: 1fr;
    }

    .highlights-main-title {
        font-size: 1.8rem;
    }

    .solution-banner-card {
        height: 220px;
    }
}

/* --- Training Section --- */
.training-section {
    background: #e9ecef;
}

.training-grid-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 60px;
    align-items: center;
}

.training-description {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.full-dark-btn {
    display: block;
    background: #1a202c;
    color: white;
    text-align: center;
    padding: 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-smooth);
    margin-bottom: 20px;
    max-width: 500px;
}

.full-dark-btn:hover {
    background: #000;
    transform: translateY(-3px);
}

.training-footer-text {
    font-size: 0.9rem;
    color: #718096;
    max-width: 500px;
    text-align: center;
}

.training-card-dynamic {
    background: var(--bg-primary);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    height: 380px;
}

.t-card-header {
    background: #b91d1d;
    color: white;
    padding: 40px 30px;
    width: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.t-badge {
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 25px;
    display: block;
    letter-spacing: 0.5px;
}

.t-card-header h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 5px;
    line-height: 1;
}

.t-card-header p {
    font-size: 0.85rem;
    opacity: 0.8;
}

.t-card-body {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.t-duration-box {
    margin-bottom: 10px;
}

.d-label {
    display: block;
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 5px;
}

.d-value {
    font-size: 2.8rem;
    font-weight: 900;
    color: #b91d1d;
    display: inline-block;
    line-height: 1;
}

.d-unit {
    font-size: 1.2rem;
    color: #2d3748;
    font-weight: 700;
}

.t-enroll-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1a202c;
    margin: 15px 0;
    letter-spacing: -1px;
}

.t-continue-btn {
    background: #b83227;
    color: white;
    padding: 14px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    align-self: flex-start;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.t-continue-btn:hover {
    background: #d31a1a;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(184, 50, 39, 0.3);
}

@media (max-width: 1024px) {
    .training-grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .training-card-dynamic {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .training-card-dynamic {
        flex-direction: column;
        height: auto;
    }

    .t-card-header {
        width: 100%;
        padding: 40px;
    }

    .t-enroll-title {
        font-size: 1.8rem;
    }
}

/* --- What We Do Section --- */
.what-we-do-section {
    background: #f8f9fa;
}

.what-we-do-box {
    background: var(--bg-primary);
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.wwd-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.wwd-intro {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.5;
    max-width: 450px;
}

.wwd-slider-container {
    position: relative;
}

.wwd-slider {
    display: flex;
    gap: 15px;
}

.slider-item {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    height: 180px;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5);
    transition: var(--transition-smooth);
}

.slider-item img:hover {
    filter: grayscale(0);
}

.slider-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.slider-arrow {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #a0aec0;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-arrow:hover {
    color: var(--brand);
}

.wwd-divider {
    height: 4px;
    width: 100%;
    background: #e2e8f0;
    margin: 30px 0;
    position: relative;
    border-radius: 2px;
}

.wwd-divider::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 300px;
    background: var(--brand);
    border-radius: 2px;
}

.wwd-description {
    font-size: 1rem;
    color: #1a202c;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.4;
}

.wwd-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.wwd-list {
    list-style: none;
    padding: 0;
}

.wwd-list li {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wwd-list li i {
    color: var(--brand);
    font-size: 0.7rem;
    line-height: 1;
}

@media (max-width: 1024px) {
    .wwd-top-row {
        grid-template-columns: 1fr;
    }

    .wwd-list-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .what-we-do-box {
        padding: 40px;
    }

    .wwd-list-grid {
        grid-template-columns: 1fr;
    }

    .wwd-slider {
        flex-direction: column;
    }

    .slider-item {
        height: 150px;
    }
}

/* --- FAQ Section --- */
.faq-section {
    background: #f4f4f4;
    padding: 100px 0;
}

.faq-card-box {
    background: var(--bg-primary);
    padding: 80px;
    border-radius: 40px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.03);
    align-items: center;
}

.faq-header-content {
    display: flex;
    flex-direction: column;
}

.faq-header-content .destacados-badge {
    margin-bottom: 25px;
    padding-top: 15px;
    position: relative;
    display: inline-block;
}

.faq-header-content .destacados-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--brand);
}

.faq-intro {
    color: #4a5568;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: 25px;
    max-width: 480px;
}

.faq-list-container {
    display: flex;
    flex-direction: column;
}

.faq-item {
    display: block;
    width: 100%;
    padding: 0;
    border-bottom: 1px solid #edf2f7;
    text-decoration: none;
    color: #1a202c;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.faq-item.highlight-faq {
    border: 2px solid #e60023;
    background: rgba(230, 0, 35, 0.05);
    box-shadow: 0 4px 12px rgba(230, 0, 35, 0.15);
}

.faq-item.highlight-faq summary:hover {
    border-color: #e30613;
    background: rgba(230, 0, 35, 0.06);
}


.faq-item.highlight-faq summary:hover {
    transform: scale(1.02);
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.3px;
    outline: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item[open] {
    background: var(--bg-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 10px -20px;
    padding: 0 20px;
    border-radius: 15px;
    border-bottom: none;
}

.faq-item[open] summary {
    padding-top: 25px;
    color: var(--brand);
}

.faq-answer {
    padding-bottom: 25px;
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    animation: fadeInSlide 0.4s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item:hover summary {
    color: var(--brand);
}

.faq-item i {
    font-size: 1.1rem;
    color: #cbd5e0;
    transition: transform 0.3s ease;
}

.faq-item[open] i {
    transform: rotate(-90deg);
    color: var(--brand);
}

.highlight-faq {
    border-bottom: none;
    margin-top: 15px;
}

/* --- Presence Banner 2026 --- */
.brand-presence-banner {
    padding: 0;
    background: #f4f4f4;
    overflow: hidden;
}

.presence-box {
    height: 520px;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
}

.presence-globe-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    z-index: 1;
}

.presence-globe-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.2);
}

.presence-overlay-content {
    margin-left: auto;
    width: 65%;
    height: 100%;
    background: #000;
    position: relative;
    z-index: 3;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10%;
}

.presence-overlay-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #b91d1d;
    z-index: -1;
    clip-path: polygon(15% 0, 18.2% 0, 0.2% 100%, -3% 100%);
    pointer-events: none;
}

.presence-text-container {
    color: white;
    max-width: 550px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.presence-logo {
    margin-bottom: 35px;
}

.presence-logo .logo-white {
    font-size: 3.2rem;
    font-weight: 950;
    letter-spacing: -2px;
    line-height: 1;
}

.presence-logo .logo-white span {
    color: #fff;
    opacity: 0.9;
}

.an-electrical-company {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-top: 5px;
    color: #fff;
    opacity: 0.8;
}

.presence-headline {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 45px;
    text-transform: uppercase;
    letter-spacing: 1px;
    max-width: 450px;
}

.presence-read-more {
    display: inline-block;
    background: #2d3748;
    color: #fff;
    padding: 15px 60px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.presence-read-more:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px) scale(1.05);
}

@media (max-width: 1024px) {
    .faq-card-box {
        grid-template-columns: 1fr;
        padding: 50px;
        gap: 50px;
    }

    .presence-overlay-content {
        width: 100%;
        clip-path: none;
        background: linear-gradient(to top, #000 70%, transparent 100%);
        padding-left: 0;
        justify-content: center;
    }

    .presence-overlay-content::before {
        display: none;
    }

    .presence-globe-img {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .presence-box {
        height: 650px;
    }

    .presence-headline {
        font-size: 1.5rem;
    }

    .presence-logo .logo-white {
        font-size: 2.5rem;
    }
}

/* --- Catalog & Manuals Archive --- */
.catalog-archive-section {
    background: #f4f4f4;
}

.archive-box {
    background: var(--bg-primary);
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.02);
}

.archive-header {
    margin-bottom: 40px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.archive-card {
    position: relative;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.archive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    z-index: 1;
    transition: var(--transition-smooth);
}

.archive-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(227, 6, 19, 0.2);
}

.archive-card:hover::before {
    background: linear-gradient(to top, rgba(227, 6, 19, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.card-catalog {
    background-image: url('../images/Manuales/01-Catalogo.jpg');
}

.card-tech-sheets {
    background-image: url('../images/Manuales/02-Fichas-Tecnicas.jpg');
}

.card-manuals {
    background-image: url('../images/Manuales/03-Manuales.jpg');
}

.card-tables {
    background-image: url('../images/Manuales/04-Tablas-Seleccion.jpg');
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--brand);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: 900;
    font-size: 0.8rem;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.4);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-content h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

@media (max-width: 1200px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .archive-card {
        height: 300px;
    }

    .archive-box {
        padding: 40px 20px;
    }
}

/* --- Multimedia Section --- */
.multimedia-section {
    background: #f4f4f4;
}

.multimedia-box {
    background: #fff;
    padding: 60px;
    border-radius: 40px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.02);
}

.multimedia-info .highlights-main-title {
    margin-bottom: 25px;
    font-size: 2.2rem;
}

.multimedia-description {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.multimedia-topics {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.multimedia-topics li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a202c;
    font-weight: 700;
    margin-bottom: 12px;
}

.multimedia-topics li i {
    color: var(--brand);
    font-size: 0.9rem;
}

.multimedia-cta p {
    font-weight: 900;
    color: #1a202c;
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.multimedia-socials {
    display: flex;
    gap: 20px;
}

.social-link {
    color: #1a202c;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: var(--brand);
    transform: translateY(-5px);
}

/* Footer Social Redesign */
.footer-social-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: var(--brand);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(227, 6, 19, 0.2);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

.multimedia-video {
    width: 100%;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 1024px) {
    .multimedia-box {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .multimedia-info .highlights-main-title {
        font-size: 1.8rem;
    }
}

/* --- Brand Logo Strip --- */
/* --- Redesigned Brand Strip (Scrolling) --- */
.brand-strip {
    background: #f4f4f4;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    overflow: hidden;
    /* Hide overflow for the scroll */
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-flex {
    display: flex;
    gap: 30px;
    /* Consistent gap with scroll track */
    width: max-content;
    animation: scroll-left 40s linear infinite;
    /* Slower, smoother scroll */
    will-change: transform;
}

.brand-strip:hover .brand-flex {
    animation-play-state: paused;
}

.brand-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: #1a202c;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.4;
    transition: var(--transition-smooth);
    user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.brand-item img {
    height: 25px;
    width: auto;
    display: block;
    opacity: 0.8;
    filter: grayscale(100%);
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.brand-item span {
    font-weight: 400;
    opacity: 0.7;
}

.brand-item:hover {
    opacity: 1;
    transform: scale(1.05);
    color: var(--brand);
}

.brand-item:hover img {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-1px);
}

.brand-item i {
    font-style: normal;
    margin-right: 5px;
}

/* --- Redesigned Footer --- */
.footer {
    background: #1a202c;
    color: white;
    padding: 40px 0 20px;
}

.footer-main-row {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.footer-brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-brand-logo img {
    height: 80px;
    margin-bottom: 10px;
}

.footer-grid-redesign {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h5 {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: white;
}

.location-item {
    margin-bottom: 15px;
}

.location-item h5 {
    margin-bottom: 10px;
    color: var(--brand);
    font-weight: 900;
}

.location-item p {
    font-size: 0.9rem;
    color: #a0aec0;
    margin: 4px 0;
}

.location-item a {
    color: #4299e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-nav-simple {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav-simple a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-nav-simple a:hover {
    color: white;
}

.col-newsletter p {
    color: #a0aec0;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.subscribe-input-group {
    display: flex;
    margin-bottom: 15px;
}

.subscribe-input-group input {
    flex: 1;
    padding: 12px 20px;
    background: var(--bg-primary);
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.95rem;
    outline: none;
}

.subscribe-input-group button {
    background: var(--brand);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
}

.subscribe-input-group button:hover {
    background: #a5040e;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a0aec0;
    font-size: 0.8rem;
    cursor: pointer;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #718096;
    font-size: 0.85rem;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-smooth);
    animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
}

@media (max-width: 1024px) {
    .footer-grid-redesign {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- Brand Logo Strip Refinement --- */
.brand-flex {
    justify-content: center;
    gap: 40px;
}

.brand-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: #1a202c;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.4;
    transition: var(--transition-smooth);
    user-select: none;
    white-space: nowrap;
}

.brand-item span {
    font-weight: 400;
    opacity: 0.7;
}

.brand-item:hover {
    opacity: 1;
    transform: scale(1.05);
    color: var(--brand);
}

.brand-item i {
    font-style: normal;
    margin-right: 5px;
}

/* --- Global Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Capacitaciones (Training) Section Refinement --- */
.training-section {
    background: #f8fafc;
}

.training-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* --- Training Section Redesign 2026 --- */
.training-section {
    background: #fafafa;
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}

.training-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.training-grid-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    max-width: 1250px;
    margin: 0 auto;
}

.training-text-content .training-header .highlights-main-title {
    font-size: 3.5rem;
    font-weight: 950;
    line-height: 1;
    color: var(--text-primary);
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.text-brand {
    color: var(--brand);
}

.training-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 90%;
}

.training-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.full-dark-btn {
    background: #111;
    color: white;
    padding: 20px 40px;
    border-radius: 100px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #111;
}

.full-dark-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 15px 30px rgba(227, 6, 19, 0.3);
}

.training-card-dynamic {
    position: relative;
    width: 100%;
    min-height: 550px;
    border-radius: 40px;
    overflow: hidden;
    background-image: var(--bg-card);
    background-size: cover;
    background-position: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.training-card-dynamic:hover {
    transform: scale(1.02);
}

.t-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.t-card-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    backdrop-filter: blur(0px);
    /* Base state */
    transition: backdrop-filter 0.4s ease;
}

.training-card-dynamic:hover .t-card-content {
    backdrop-filter: blur(4px);
}

.t-badge-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.t-badge-new {
    background: var(--brand);
    color: white;
    padding: 6px 15px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.t-badge-new.outline {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.t-card-content h3 {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.t-card-content p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 30px;
    font-weight: 300;
}

.t-stats-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    margin-bottom: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.t-stat {
    display: flex;
    flex-direction: column;
}

.t-stat-val {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
}

.t-stat-label {
    font-size: 0.7rem;
    font-weight: 800;
    opacity: 0.6;
    letter-spacing: 1px;
    margin-top: 5px;
}

.t-enroll-btn {
    background: var(--bg-primary);
    color: #111;
    padding: 18px 30px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.t-enroll-btn:hover {
    background: var(--brand);
    color: white;
}

.btn-arrow {
    font-style: normal;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.t-enroll-btn:hover .btn-arrow {
    transform: translateX(10px);
}

@media (max-width: 992px) {
    .training-grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .training-text-content .training-header .highlights-main-title {
        font-size: 2.5rem;
    }
}

/* --- Dropdown Navigation Styles --- */
.nav-item-has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-primary);
    min-width: 220px;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid #f1f5f9;
    z-index: 10010;
}

.nav-item-has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(20px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-transform: uppercase;
    white-space: nowrap;
}

.dropdown-item i {
    color: #e30613;
    margin-right: 10px;
    font-style: normal;
}

.dropdown-item:hover {
    background: rgba(227, 6, 19, 0.08);
    color: #e30613;
    transform: translateX(5px);
}

.arrow {
    font-size: 0.6rem;
    margin-left: 5px;
    opacity: 0.5;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-item-has-dropdown:hover .arrow {
    transform: rotate(180deg);
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}


.nav-link {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    position: relative;
    z-index: 10002;
    display: inline-flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link svg {
    margin-right: 6px;
    flex-shrink: 0;
}

/* Fix logo spacing */
.logo {
    margin-right: 40px;
}

/* --- Empresa Page Styles --- */
.empresa-hero {
    min-height: 500px;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.9), rgba(26, 32, 44, 0.85)),
        url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?w=1600&h=800&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    color: white;
    position: relative;
}

.empresa-hero-content {
    max-width: 700px;
}

.empresa-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 950;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.empresa-hero p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 35px;
    opacity: 0.95;
}

.empresa-cta-btn {
    display: inline-block;
    background: var(--bg-primary);
    color: #e30613;
    padding: 16px 35px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.empresa-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

/* About Section */
.empresa-about {
    background: #f8fafc;
}

.empresa-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.empresa-section-label {
    color: #e30613;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.empresa-section-title {
    font-size: 2.5rem;
    font-weight: 950;
    color: #1a202c;
    margin-bottom: 30px;
    line-height: 1.1;
}

.empresa-about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.empresa-img-stack {
    display: grid;
    gap: 20px;
}

.empresa-img-stack img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.empresa-img-stack img:hover {
    transform: scale(1.02);
}

/* Departments Section */
.empresa-departments {
    background: var(--bg-primary);
}

.empresa-departments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.empresa-dept-card {
    background: var(--bg-primary);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.empresa-dept-card:hover {
    border-color: #e30613;
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(227, 6, 19, 0.1);
}

.empresa-dept-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e30613, #a5040e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.empresa-dept-icon svg {
    fill: white;
}

.empresa-dept-card h3 {
    font-size: 1.3rem;
    font-weight: 900;
    color: #e30613;
    margin-bottom: 15px;
    line-height: 1.3;
}

.empresa-dept-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #64748b;
}

/* Responsive */
@media (max-width: 1024px) {
    .empresa-about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .empresa-departments-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .empresa-hero {
        padding: 100px 0 60px;
        min-height: 400px;
    }

    .empresa-section-title {
        font-size: 2rem;
    }
}

/* --- ¿Qué Hacemos? Section Styles --- */
.what-we-do-section {
    background: var(--bg-primary);
}

.section-header-custom {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-label-red {
    display: inline-block;
    color: #e30613;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-title-large {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 950;
    color: #1a202c;
    margin-bottom: 20px;
    line-height: 1.1;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #64748b;
}

.services-content-wrapper {
    margin-bottom: 80px;
}

.services-intro-text {
    text-align: center;
    margin-bottom: 40px;
}

.services-intro-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.services-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.services-list {
    list-style: none;
}

.services-list li {
    font-size: 1rem;
    line-height: 2;
    color: #334155;
    padding-left: 10px;
}

/* FAQ Section */
.faq-section-wrapper {
    background: #f8fafc;
    padding: 60px 40px;
    border-radius: 30px;
    margin-bottom: 80px;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-label {
    display: inline-block;
    background: #e30613;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.faq-title {
    font-size: 2rem;
    font-weight: 950;
    color: #1a202c;
    margin-bottom: 10px;
}

.faq-subtitle {
    font-size: 1rem;
    color: #64748b;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-primary);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #e30613;
}

.faq-item[open] {
    border-color: #e30613;
}

.faq-question {
    padding: 20px 30px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a202c;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #fef2f2;
    color: #e30613;
}

.faq-arrow {
    font-size: 1.2rem;
    color: #e30613;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-arrow {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 0 30px 25px;
    color: #64748b;
    line-height: 1.7;
}

.faq-answer p {
    margin: 0;
}

.values-image img {
    width: 100%;
    display: block;
    /* elimina espacio fantasma */
    border-radius: 20px 20px 0 0;
}

.values-card:hover .values-image img {
    transform: scale(1.05);
}

.values-cards-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 120px;
}

.values-card {
    background: var(--bg-primary);
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    padding: 0px 0px;
    text-align: center;
    transition: all 0.3s ease;
    padding-top: 0;
    padding-bottom: 20px;
    overflow: hidden;
    /* importante para bordes redondeados */
}

.values-card:hover {
    border-color: #e30613;
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(227, 6, 19, 0.1);
}

.values-icon {
    width: 90px;
    height: 90px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.values-icon svg {
    fill: white;
}

.values-card h3 {
    font-size: 1.4rem;
    font-weight: 900;
    color: #e30613;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.values-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #64748b;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-two-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .values-cards-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .faq-section-wrapper {
        padding: 40px 20px;
    }

    .faq-question {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 20px 20px;
    }
}

/* --- Brand Presence & Philosophy Cards --- */
.brand-philosophy-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.brand-philosophy-card {
    background: var(--bg-primary);
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    padding: 40px 35px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.brand-philosophy-card:hover {
    border-color: #e30613;
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(227, 6, 19, 0.1);
}

.card-icon-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e30613, #a5040e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.card-icon-circle svg {
    fill: white;
}

.brand-philosophy-card h3 {
    font-size: 1.3rem;
    font-weight: 900;
    color: #e30613;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.brand-philosophy-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 15px;
    text-align: left;
}

.brand-philosophy-card p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .brand-philosophy-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* --- CCAD Section (Capacitaciones) 2026 --- */
.ccad-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.ccad-header {
    text-align: left;
    max-width: 900px;
    margin: 0 auto 60px auto;
}

.ccad-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1a202c;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: -1px;
    position: relative;
    padding-bottom: 20px;
}

.ccad-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--brand);
    border-radius: 2px;
}

.ccad-intro {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
}

.ccad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    /* align-items: start; */
    /* This makes cards only as tall as their content */
}

.ccad-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 300px;
    /* Increased height for better visibility while maintaining uniformity */
}

.ccad-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.ccad-card-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.ccad-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    /* Prevent text overflow in compact mode */
}

.ccad-card-title {
    font-size: 1.35rem;
    /* Slightly smaller for better fit */
    font-weight: 700;
    margin-bottom: 8px;
    color: #2d3748;
}

.ccad-text {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
}

.ccad-register-box {
    background-color: #f7fafc;
    border: 1px solid #edf2f7;
    height: 300px;
}

.ccad-register-box .ccad-card-content {
    height: 100%;
    padding: 18px;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
}

.ccad-register-box .ccad-card-title {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.ccad-register-box .ccad-text {
    font-size: 0.88rem;
    line-height: 1.42;
}

.ccad-register-box .ccad-register-eyebrow {
    padding: 5px 11px;
    font-size: 0.68rem;
}

.ccad-register-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(227, 6, 19, 0.1);
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ccad-register-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ccad-register-pills span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 600;
}

.btn-register-ccad {
    display: block;
    width: 100%;
    background: var(--brand);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 20px;
    text-decoration: none;
    transition: background 0.3s ease;
    box-shadow: 0 4px 10px rgba(227, 6, 19, 0.3);
}

.ccad-register-box .btn-register-ccad {
    margin-top: auto;
    padding: 13px 14px;
    font-size: 0.92rem;
}

.btn-register-ccad:hover {
    background: #b91d1d;
    transform: translateY(-2px);
}

.ccad-img-container {
    height: 100%;
    width: 100%;
}

.ccad-registration-panel {
    position: relative;
    margin-top: 56px;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.12), rgba(15, 23, 42, 0.08));
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
    scroll-margin-top: 140px;
}

.ccad-registration-panel::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    right: -90px;
    top: -110px;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.2) 0%, rgba(227, 6, 19, 0) 72%);
    pointer-events: none;
}

.ccad-registration-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
    gap: 0;
}

.ccad-registration-info {
    position: relative;
    padding: 48px;
    background: linear-gradient(160deg, #111827 0%, #1f2937 50%, #6a1017 140%);
    color: #fff;
}

.ccad-registration-info::after {
    content: '';
    position: absolute;
    inset: auto 32px 24px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 72%);
    pointer-events: none;
}

.ccad-registration-kicker {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ccad-registration-title {
    font-size: clamp(2rem, 2.5vw, 2.8rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
}

.ccad-registration-copy {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.84);
    max-width: 520px;
}

.ccad-registration-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 34px;
}

.ccad-registration-highlights span {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.ccad-registration-highlights .ccad-highlight-featured {
    flex: 0 0 auto;
    width: fit-content;
    max-width: 100%;
}

.ccad-registration-highlights .ccad-highlight-break {
    flex-basis: 100%;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.ccad-registration-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ccad-meta-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.ccad-meta-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.98rem;
    color: #fff;
}

.ccad-meta-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.ccad-registration-card {
    padding: 48px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.ccad-form-heading {
    margin-bottom: 28px;
}

.ccad-form-heading h3 {
    margin-bottom: 8px;
    font-size: 1.7rem;
    color: var(--text-primary);
}

.ccad-form-heading p {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
}

.ccad-registration-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ccad-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ccad-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ccad-field label {
    font-size: 0.86rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.02em;
}

.ccad-field input,
.ccad-field select {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    background: #f8fafc;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.98rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.ccad-field input::placeholder {
    color: #94a3b8;
}

.ccad-field select {
    appearance: none;
    padding-right: 48px;
    background-image:
        linear-gradient(45deg, transparent 50%, #475569 50%),
        linear-gradient(135deg, #475569 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.ccad-field input:hover,
.ccad-field select:hover {
    background: #fff;
    border-color: #cbd5e1;
}

.ccad-field input:focus,
.ccad-field select:focus {
    outline: none;
    background: #fff;
    border-color: rgba(227, 6, 19, 0.65);
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.12);
}

.ccad-consent {
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff5f5;
    border: 1px solid #fecaca;
}

.ccad-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    color: #7f1d1d;
    font-weight: 600;
    line-height: 1.55;
}

.ccad-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--brand);
    flex: 0 0 auto;
}

.ccad-submit-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.ccad-submit-btn {
    min-width: 240px;
    padding: 16px 26px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand) 0%, #8c0e15 100%);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(227, 6, 19, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.ccad-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(227, 6, 19, 0.26);
    filter: saturate(1.08);
}

.ccad-submit-btn:disabled {
    opacity: 0.85;
    cursor: wait;
    transform: none;
}

.ccad-submit-note {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ccad-form-status {
    min-height: 24px;
    margin: 0;
    color: var(--brand);
    font-size: 0.92rem;
    font-weight: 700;
}

.ccad-form-status[hidden] {
    display: none;
}

/* Specific Card Tweaks */
.ccad-grid .card-wide {
    grid-column: span 1;
}

/* Footer Note */
.ccad-note {
    background: #fff5f5;
    border-left: 4px solid var(--brand);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    color: #742a2a;
    font-size: 0.9rem;
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.events-link-note {
    text-align: center;
    margin-top: 40px;
    font-weight: 600;
    color: #2d3748;
}

@media (max-width: 1024px) {
    .ccad-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ccad-registration-layout {
        grid-template-columns: 1fr;
    }

    .ccad-registration-info,
    .ccad-registration-card {
        padding: 38px;
    }
}

@media (max-width: 768px) {
    .ccad-grid {
        grid-template-columns: 1fr;
    }

    .ccad-title {
        font-size: 1.8rem;
    }

    .ccad-registration-panel {
        margin-top: 42px;
        border-radius: 24px;
    }

    .ccad-registration-info,
    .ccad-registration-card {
        padding: 28px 22px;
    }

    .ccad-registration-meta,
    .ccad-form-grid {
        grid-template-columns: 1fr;
    }

    .ccad-submit-area,
    .ccad-submit-btn {
        width: 100%;
    }
}

/* --- Eventos Page 2026 --- */
.events-section-split {
    padding: 60px 0;
    background: #fff;
}

.events-section-split .container {
    width: min(100%, 1560px);
}

.events-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: flex-start;
}

/* Left Column */
.events-content .section-tag {
    color: #718096;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.events-content h2 {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #1a202c;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.events-content .subtitle-bar {
    display: inline-block;
    border-bottom: 3px solid var(--brand);
    padding-bottom: 5px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #4a5568;
}

.events-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Event Table */
.events-table-container {
    background: #1a202c;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
}

.events-table thead {
    background: #000;
}

.events-table th {
    text-align: left;
    padding: 15px 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.events-table td {
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.events-table tr:last-child td {
    border-bottom: none;
}

.events-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.events-table .event-date-col {
    text-align: right;
    font-weight: 700;
    color: #cbd5e0;
}

/* Calendar Container */
.calendar-wrapper {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid #edf2f7;
    height: 600px;
    /* Matched to iframe height */
    position: relative;
    overflow: hidden;
}

.calendar-wrapper iframe {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    border: none;
}

/* Bottom Note */
.events-footer-note {
    grid-column: 1 / -1;
    background: #fff5f5;
    border-left: 4px solid var(--brand);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    color: #742a2a;
    font-size: 0.9rem;
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.events-footer-note strong {
    color: #7b1c1c;
}

@media (max-width: 1024px) {
    .events-section-split .container {
        width: 100%;
    }

    .events-split-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .calendar-wrapper {
        height: 400px;
    }
}

/* --- Multimedia Page 2026 --- */
.multimedia-layout {
    display: block;
    margin-top: 40px;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.video-card {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.video-thumb-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumb {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(227, 6, 19, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.video-card:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.video-title {
    font-size: 0.9rem;
    color: #4a5568;
    text-align: center;
    font-weight: 500;
    line-height: 1.4;
}

/* Sidebar */
.multi-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-widget-header {
    background: var(--brand);
    /* Blue in ref, sticking to TotalGround Red/Blue logic or Ref? Ref has Blue for Categories */
    /* Ref shows Blue for Categories Header. Let's make it a gradient or specific class. */
}

.widget-box {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.widget-header {
    background: #1877f2;
    /* Creating a distinct blue for categories as per ref */
    color: white;
    padding: 15px 20px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-header.green {
    background: #198754;
}

.category-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cat-banner {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 100px;
    background: #000;
}

.cat-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.cat-banner:hover img {
    opacity: 0.4;
}

.cat-label {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

/* Social Stats */
.social-stats-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-card {
    border-radius: 10px;
    padding: 15px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-fb {
    background: #1877f2;
}

.stat-ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.stat-yt {
    background: #ff0000;
}

.stat-li {
    background: #0077b5;
}

.stat-num {
    font-size: 1.2rem;
    font-weight: 900;
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.9;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-icon {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Social Buttons Row */
.social-buttons-row {
    padding: 0 20px 20px 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-pill {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.social-pill:hover {
    background: #f0f0f0;
    color: var(--brand);
    border-color: var(--brand);
}

/* Modal Video Fix */
.video-modal-container {
    width: 100%;
    aspect-ratio: 16/9;
}

.video-modal-container iframe {
    width: 100%;
    height: 100%;
}

@media (max-width: 1024px) {
    .multimedia-layout {
        grid-template-columns: 1fr;
    }
}

/* --- Manuales Page 2026 --- */

.manuals-hero {
    position: relative;
    background: linear-gradient(rgba(26, 32, 44, 0.8), rgba(26, 32, 44, 0.8)), url('../images/ccad_office.png');
    /* Dynamic background placeholder */
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    border-radius: 20px;
    color: white;
    text-align: center;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: var(--shadow-strong);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.manuals-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.manuals-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}

.manuals-hero p {
    font-size: 1.2rem;
    color: #cbd5e0;
    margin-bottom: 40px;
    line-height: 1.6;
}

.explora-btn {
    background: var(--bg-primary);
    color: #e30613;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.explora-btn:hover {
    transform: scale(1.05);
    background: #f8f9fa;
}

/* Info Cards Grid */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.info-card {
    background: #0f172a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    height: 200px;
}

.info-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.8));
    z-index: 1;
    transition: opacity 0.4s;
}

.info-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.info-card:hover::before {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.7));
}

.info-card-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

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

.info-card-content {
    padding: 25px;
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 2;
}

.info-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.4;
}

.card-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--brand);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 3;
}

/* Catalog Viewer Section */
/* --- Catalog Viewer Section Redesign 2026 --- */
.catalog-viewer-section {
    display: none;
    background: #f8fafc;
    /* Premium light background */
    border-radius: 30px;
    padding: 80px 20px;
    margin-bottom: 60px;
    box-shadow: inset 0 2px 15px rgba(0, 0, 0, 0.02);
    animation: fadeIn 0.8s ease;
}

.catalog-viewer-section.active {
    display: block;
}

.catalog-header {
    text-align: center;
    margin-bottom: 50px;
}

.catalog-header h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1a202c;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.viewer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.viewer-wrapper {
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    background: var(--bg-primary);
    padding: 0;
    border-radius: 4px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.25);
    aspect-ratio: 1 / 1.414;
    overflow: hidden;
    position: relative;
    border: none;
    /* Creating a "Book Spine" shadow in the middle if it were 2 pages, 
       but for 1 page it's better to keep it clean. 
       Let's add a subtle inner shadow to make it look like paper. */
}

.viewer-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.02);
    pointer-events: none;
}

/* Dual Iframe for smooth transitions */
.pdf-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    background: var(--bg-primary);
}

.pdf-layer.hidden {
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.pdf-layer.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.viewer-iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
    background: var(--bg-primary);
    /* The "page" color */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Control Pill */
.viewer-controls-pill {
    background: var(--bg-primary);
    padding: 12px 40px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid #edf2f7;
    z-index: 10;
}

.nav-btn-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e30613;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-btn-circle:hover {
    transform: scale(1.1) translateY(-3px);
    background: #c20510;
    box-shadow: 0 8px 20px rgba(227, 6, 19, 0.3);
}

.nav-btn-circle.disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.page-info-text {
    font-weight: 800;
    color: #e30613;
    font-size: 1.2rem;
    min-width: 160px;
    text-align: center;
    font-family: var(--font-primary);
}

.action-btn-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e30613;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
}

.action-btn-circle:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .viewer-wrapper {
        aspect-ratio: auto;
        height: 500px;
    }

    .viewer-controls-pill {
        padding: 8px 20px;
        gap: 15px;
    }

    .page-info-text {
        min-width: 100px;
        font-size: 0.9rem;
    }

    .nav-btn-circle,
    .action-btn-circle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* --- Services Page Redesign 2026 --- */

.services-redesign-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    margin-top: 50px;
    align-items: start;
}

.services-sidebar {
    background: #f1f3f5;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-tab {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    color: #4a5568;
    width: 100%;
}

.service-tab:hover {
    background: #e2e8f0;
}

.service-tab.active {
    background: #e30613;
    /* Brand Red */
    color: white;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

.service-icon-circle {
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: inherit;
    color: #e30613;
}

.service-tab.active .service-icon-circle {
    background: #fff;
    color: #e30613;
}

.service-text {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Right Content Area */
.services-display-area {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    background: #000;
    aspect-ratio: 16 / 9;
}

.service-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay-info {
    display: none;
}

@media (max-width: 1024px) {
    .services-redesign-container {
        grid-template-columns: 1fr;
    }

    .services-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding: 15px;
        white-space: nowrap;
    }

    .service-tab {
        width: auto;
        padding: 10px 20px;
    }

    /* Cleaned media queries */
}

/* --- Global Responsive Layer --- */
.container {
    width: min(100%, 1300px);
    margin: 0 auto;
}

.mobile-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.08);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
    z-index: 10020;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

body.nav-open {
    overflow: hidden;
}

@media (max-width: 1200px) {
    .header {
        left: 0 !important;
        right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        transform: none !important;
        width: calc(100% - 24px) !important;
        padding: 0 20px;
        transition: none !important;
    }

    .main-nav {
        gap: 1rem;
    }

    .hero-content {
        max-width: 960px;
    }
}

@media (max-width: 1024px) {
    .header {
        position: absolute !important;
        top: 12px;
        left: 0 !important;
        right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        transform: none !important;
        width: calc(100% - 20px) !important;
        height: 64px;
        border-radius: 24px;
        padding: 0 16px;
        transition: none !important;
    }

    .nav-container {
        gap: 12px;
    }

    .logo {
        margin-right: 0;
    }

    .logo img {
        height: 44px;
    }

    .main-nav {
        display: flex !important;
        position: absolute !important;
        top: calc(100% + 10px) !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        height: auto;
        max-height: none !important;
        overflow-y: visible !important;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 16px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 24px;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
        opacity: 0;
        pointer-events: none;
        transform: none !important;
        transition: opacity 0.25s ease;
        z-index: 9999;
    }

    .mobile-toggle {
        display: flex !important;
    }

    .header .cta-btn {
        display: none !important;
    }

    .main-nav.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 14px 16px;
        border-radius: 14px;
        background: #f8fafc;
        font-size: 0.92rem;
    }

    .main-nav .nav-link.nav-menu-cta {
        display: flex !important;
        background: linear-gradient(135deg, var(--brand), #a5040e) !important;
        color: white !important;
        margin-top: 10px;
        justify-content: center;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        box-shadow: 0 8px 20px rgba(227, 6, 19, 0.2);
        border: none;
    }

    .main-nav .nav-link.active::after {
        display: none;
    }

    .nav-item-has-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .dropdown-menu {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        width: 100% !important;
        min-width: 100% !important;
        margin-top: 8px !important;
        padding: 5px 0 15px 15px !important;
        /* Indent sub-items */
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        border-left: 2px solid rgba(227, 6, 19, 0.2) !important;
        /* Technical accent line */
        background: transparent !important;
        transition: none !important;
    }

    .nav-item-has-dropdown.mobile-open .dropdown-menu {
        display: block;
    }

    .nav-item-has-dropdown.mobile-open .arrow {
        transform: rotate(180deg) !important;
    }

    .nav-item-has-dropdown:hover .dropdown-menu {
        display: none;
    }

    .nav-item-has-dropdown.mobile-open:hover .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 10px 0 !important;
        white-space: normal;
        line-height: 1.35;
        font-size: 0.88rem !important;
        color: var(--text-secondary) !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.03);
    }

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

    .services-redesign-container,
    .training-grid-layout,
    .events-split-grid,
    .contact-grid,
    .empresa-about-grid,
    .empresa-departments-grid,
    .footer-grid-redesign,
    .archive-grid,
    .solutions-banners-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 550px;
        padding: 120px 0 72px;
    }

    .hero-overlay {
        background: linear-gradient(to bottom,
                rgba(15, 23, 42, 0.86) 0%,
                rgba(15, 23, 42, 0.68) 48%,
                rgba(15, 23, 42, 0.52) 100%);
    }

    .hero-title {
        max-width: 720px;
    }

    .hero-subtitle {
        max-width: 680px;
        margin-bottom: 40px;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(180px, auto);
    }

    .bento-item.large,
    .bento-item.wide {
        grid-column: span 2;
    }

    .footer-main-row {
        margin-bottom: 24px;
    }

    /* Fixed Header Compensation for Mobile Banners */
    .empresa-hero,
    .banner-section {
        padding-top: 80px !important;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 14px;
    }

    .section-padding {
        padding: 48px 0;
    }

    .header {
        position: absolute !important;
        top: 8px;
        left: 0 !important;
        right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        transform: none !important;
        width: calc(100% - 16px) !important;
        height: 60px;
        padding: 0 14px;
        transition: none !important;
    }

    .main-nav {
        display: flex !important;
        position: absolute !important;
        top: calc(100% + 10px) !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        max-height: none !important;
        overflow-y: visible !important;
        padding: 14px;
        transform: none !important;
    }

    .hero {
        min-height: 480px;
        padding: 108px 0 56px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 28px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 360px;
        gap: 12px;
    }

    .hero-btns .cta-btn,
    .cta-btn {
        width: 100%;
    }

    .bento-grid,
    .gallery-grid,
    .video-grid,
    .info-cards-grid,
    .ccad-grid,
    .events-grid,
    .faq-grid,
    .social-stats-grid {
        grid-template-columns: 1fr;
    }

    .contact-page,
    .empresa-page,
    .manuals-page,
    .services-page {
        padding-top: 100px;
    }

    .contact-premium-layout {
        margin: -20px;
    }

    .contact-brand-info,
    .contact-form-section {
        padding: 28px 20px;
    }

    .contact-brand-header h2,
    .form-header h3 {
        font-size: 1.6rem;
    }

    .subscribe-input-group {
        flex-direction: column;
        gap: 10px;
    }

    .subscribe-input-group input,
    .subscribe-input-group button {
        width: 100%;
        border-radius: 10px;
    }

    .scroll-container {
        overflow: hidden;
    }

    .whatsapp-fab {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }

    .wa-tooltip {
        display: none;
    }

    .scroll-top-btn {
        left: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
    }

    .scroll-top-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .header {
        left: 0 !important;
        right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: calc(100% - 12px) !important;
        transform: none !important;
        border-radius: 18px;
        transition: none !important;
    }

    .logo img {
        height: 38px;
    }

    .hero {
        min-height: 420px;
        padding: 100px 0 44px;
    }

    .hero-title {
        font-size: clamp(2rem, 11vw, 2.8rem);
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 7px 12px;
    }

    .contact-premium-layout {
        margin: -16px;
    }

    .services-sidebar,
    .contact-brand-info,
    .contact-form-section {
        padding: 18px;
    }

    .footer-brand-logo img {
        height: 64px;
    }

    .footer-copyright {
        font-size: 0.78rem;
    }
}

.catalog-page .catalog-container {
    width: min(calc(100% - 32px), 1720px);
    max-width: 1720px;
}

.multimedia-page-shell {
    width: min(calc(100% - 32px), 1720px);
    max-width: 1720px;
}

.events-page-shell {
    width: min(calc(100% - 32px), 1720px);
    max-width: 1720px;
}

body.homepage main>section:not(.hero)>.container {
    width: min(calc(100% - 32px), 1720px);
    max-width: 1720px;
}

/* --- Catalog Responsivity UI 2026 --- */

.mobile-controls-block {
    display: none;
    /* Hidden by default */
}

.mobile-search-container {
    display: none;
}

.mobile-filter-container {
    display: none;
    /* Hidden by default for desktop */
    width: 100%;
    padding: 0 var(--space-md);
    margin-bottom: 20px;
}

.mobile-filter-btn {
    width: 100%;
    background: #1e293b;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 0.95rem;
    display: none;
    /* Hidden on Desktop */
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.mobile-filter-btn:hover {
    background: #0f172a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.mobile-filter-btn:active {
    transform: scale(0.98);
}

.mobile-filter-btn svg {
    opacity: 0.8;
}

/* Close button for mobile sidebar */
.close-sidebar {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

@media (max-width: 992px) {
    .mobile-controls-block {
        display: block;
        background: #1e293b;
        border-radius: 16px;
        margin-bottom: 30px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 100px;
        z-index: 100;
    }

    .mobile-search-container {
        display: block;
        width: 100%;
        padding: 15px 15px 5px 15px;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .mobile-search-container .search-box {
        position: relative;
    }

    .mobile-search-container input {
        width: 100%;
        padding: 12px 18px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

    .mobile-search-container input::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }

    .mobile-search-container input:focus {
        outline: none;
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .mobile-search-container .clear-search-btn {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.4);
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
        padding: 5px;
        display: none;
        /* Hidden by default */
        z-index: 10;
    }

    .mobile-search-container .clear-search-btn.is-visible {
        display: block;
    }

    [data-theme="dark"] .mobile-search-container input {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: white;
    }

    .mobile-filter-btn {
        display: flex;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 16px;
    }

    .mobile-filter-container {
        display: block;
    }

    .catalog-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 25px;
        /* Extra breathing room from the filter button */
    }

    /* Transform Sidebar into a Drawer on Mobile */
    .catalog-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        z-index: 100000;
        transition: left 0.4s var(--ease-elastic);
        border-radius: 0;
        overflow: visible;
        background: transparent;
        box-shadow: none;
        border: none;
    }

    .sidebar-inner {
        width: 100%;
        height: 100%;
        background: #1e293b;
        border-radius: 0 30px 30px 0;
        overflow-y: auto;
    }

    .catalog-sidebar.is-active {
        left: 0;
    }

    .catalog-sidebar .close-sidebar {
        display: flex;
        right: -50px;
        /* Positions it outside the blue sidebar */
        top: 15px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Overlay when sidebar is open */
    .catalog-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        z-index: 99999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .catalog-overlay.is-active {
        opacity: 1;
        pointer-events: auto;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Fix header height on tablets/mobile */
    .header {
        top: 10px;
        left: 0 !important;
        right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: calc(100% - 20px) !important;
        transform: none !important;
        height: 60px;
        padding: 0 20px;
        transition: none !important;
    }

    .logo img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .catalog-page {
        padding-top: 90px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        /* Slightly tighter gap for 2 columns */
    }

    .product-card {
        border-radius: 20px;
    }

    .product-img-container {
        height: 140px;
        /* Reduced for 2-column layout */
    }

    .product-info {
        padding: 12px;
        min-height: auto;
    }

    .product-name {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }

    .product-action {
        padding: 10px;
        font-size: 0.85rem;
    }
}



/* --- Family Card Backgrounds (V5 Fix) --- */
.family-card.fam-spt::before {
    background-image: url('../images/01-SPT.jpg') !important;
}

.family-card.fam-pararrayos::before {
    background-image: url('../images/02-Pararrayos.jpg') !important;
}

.family-card.fam-tgone::before {
    background-image: url('../images/05.jpg') !important;
}

.family-card.fam-supresores::before {
    background-image: url('../images/04-Supresores.jpg') !important;
}

.family-card.fam-telemetria::before {
    background-image: url('../images/03.jpg') !important;
}

.family-card.fam-soldadura::before {
    background-image: url('../images/06.jpg') !important;
}

.family-card.fam-reguladores::before {
    background-image: url('../images/08-Reguladores.jpg') !important;
}

.family-card.fam-bancos::before {
    background-image: url('../images/07-BancCap.jpg') !important;
}

.family-card.fam-conectores::before {
    background-image: url('../images/09-Conectores.jpg') !important;
}

.family-card.fam-torres::before {
    background-image: url('../images/10-Torres.jpg') !important;
}

.badge-3d-catalog {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--brand-red, #e31e24);
    color: white;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(227, 30, 36, 0.4);
    pointer-events: none;
    letter-spacing: 0.5px;
}

/* --- AI Assistant (TG-Bot) Styles --- */
.ai-float-btn {
    position: fixed;
    bottom: 100px;
    /* Above WhatsApp */
    right: 30px;
    width: 60px;
    height: 60px;
    background: #1e293b;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 15000;
    /* Same level as WhatsApp */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: visible !important;
    /* Force visible for tooltip */
}

/* Image avatar inside the button */
.ai-float-btn img.ai-btn-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    z-index: 1;
}

/* Tooltip label - Exactly like WhatsApp style */
.ai-tooltip {
    position: absolute;
    right: 75px;
    background: var(--bg-primary);
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 2;
    /* Above image */
}

.ai-float-btn:hover .ai-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.ai-float-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: #e30613;
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.4);
}

.ai-chat-panel {
    position: fixed;
    bottom: 175px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ai-chat-header {
    background: #1e293b;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-header h4 {
    margin: 0;
    font-weight: 800;
    letter-spacing: 1px;
}

.ai-chat-header .close-chat {
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}

.ai-chat-header .close-chat:hover {
    opacity: 1;
}

.ai-chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
}

.chat-msg.user {
    align-self: flex-end;
    background: #e30613;
    color: white;
    border-bottom-right-radius: 2px;
}

.chat-msg.bot {
    align-self: flex-start;
    background: var(--bg-primary);
    color: #1e293b;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ai-chat-input-area {
    padding: 15px;
    background: var(--bg-primary);
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
}

.ai-chat-input-area input {
    flex-grow: 1;
    border: 1px solid #e2e8f0;
    padding: 10px 15px;
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
}

.ai-chat-input-area button {
    background: #1e293b;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.ai-chat-input-area button:hover {
    background: #e30613;
}

/* Responsive AI Chat */
@media (max-width: 480px) {
    .ai-chat-panel {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 100px;
        height: 70vh;
    }

    .ai-float-btn {
        right: 20px;
        bottom: 90px;
    }
}

/* --- Success Modal 2026 --- */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    z-index: 999999;
    /* Max priority */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.success-modal-overlay.is-active {
    opacity: 1;
}

.success-modal-card {
    background: var(--bg-primary);
    width: 92%;
    max-width: 440px;
    padding: 40px;
    border-radius: 28px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-modal-overlay.is-active .success-modal-card {
    transform: scale(1) translateY(0);
}

.success-modal-icon {
    width: 80px;
    height: 80px;
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-modal-icon svg {
    width: 40px;
    height: 40px;
}

.success-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.success-modal-message {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

.success-modal-btn {
    width: 100%;
    background: var(--text-primary);
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.success-modal-btn:hover {
    background: var(--brand);
    transform: translateY(-2px);
}

.ai-tooltip {
    position: absolute;
    right: 75px;
    background: var(--bg-primary);
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ai-float-btn:hover .ai-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Typing Indicator Animation */
.chat-msg.bot.typing-indicator {
    font-style: italic;
    color: #64748b;
    font-size: 0.85rem;
    padding: 8px 16px;
}

.typing-dots {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    animation: ellipsis steps(4, end) 1.5s infinite;
    width: 0px;
}

@keyframes ellipsis {
    to {
        width: 1.25em;
    }
}

/* --- Interactive Product Gallery Extras 2026 --- */

/* Interactive Zoom Effect */
.main-image-container {
    position: relative;
    overflow: hidden !important;
    cursor: zoom-in;
}

#main-product-image {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), transform-origin 0.15s ease-out !important;
    will-change: transform, transform-origin;
}

/* Bottom-Line 3D Loading Bar */
.progress-bar {
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    transform: none !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    z-index: 1000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease !important;
}

.progress-bar.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.loading-label-container {
    display: none !important;
}

.bar-track {
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    overflow: hidden !important;
}

.update-bar {
    background: var(--brand, #e30613) !important;
    width: 0%;
    height: 100% !important;
    transition: width 0.3s ease !important;
}




/* Mobile adjustments for zoom */
@media (max-width: 768px) {
    .main-image-container {
        cursor: default;
    }

    #main-product-image {
        transform: none !important;
        transform-origin: center center !important;
    }
}

/* ==========================================================================
   DARK MODE SYSTEM - 2026 UX
   ========================================================================== */
[data-theme="dark"] {
    /* Color Palette Overrides for Dark Mode */
    --bg-primary: #000000;
    --bg-secondary: #080808;
    --bg-floating: rgba(0, 0, 0, 0.85);

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;

    --brand: #e30613;
    /* Slightly more vibrant in dark mode */
    --brand-soft: rgba(227, 6, 19, 0.15);
    --brand-glow: rgba(227, 6, 19, 0.3);

    --border: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.6);
    --shadow-float: 0 20px 50px rgba(0, 0, 0, 0.8);
}

/* Image Filters in Dark Mode to reduce glare */
[data-theme="dark"] img:not(.logo img):not(.hero-video):not(.product-img) {
    filter: brightness(0.85) contrast(1.1);
}

/* Fixes for specific elements that might have hardcoded dark colors and need inversion or adjustments */
[data-theme="dark"] .footer {
    background: #020617;
    border-top: 1px solid var(--border);
}

[data-theme="dark"] .sidebar-inner {
    background: #0f172a;
    border: 1px solid var(--border);
}

[data-theme="dark"] .catalog-sidebar {
    background: transparent;
    border: none;
}

[data-theme="dark"] .infinite-scroll-section {
    background: var(--bg-secondary);
    border-color: var(--border);
}

[data-theme="dark"] .service-card-mini,
[data-theme="dark"] .service-card-full,
[data-theme="dark"] .bento-item,
[data-theme="dark"] .timeline-content {
    background: var(--bg-secondary);
    border-color: var(--border);
    box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .bento-item:hover,
[data-theme="dark"] .service-card-mini:hover {
    box-shadow: var(--shadow-float);
    border-color: var(--brand);
}

/* Ensure text on brand buttons remains white in both modes */
[data-theme="dark"] .cta-btn:not(.outline) {
    color: #ffffff !important;
}

[data-theme="dark"] .section-title,
[data-theme="dark"] .hero-title {
    color: var(--text-primary);
}

[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .hero-subtitle {
    color: var(--text-secondary);
}

/* Icons adjustment if needed */
[data-theme="dark"] .service-icon {
    filter: drop-shadow(0 0 10px var(--brand-glow));
}




/* --- Dark Mode Carousel Buttons Adjustments --- */
[data-theme="dark"] .carousel-nav {
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1), inset 0 0 5px rgba(255, 255, 255, 0.05);
    background: rgba(30, 41, 59, 0.9);
    color: #ffffff;
    /* Slightly translucent dark background */
}

[data-theme="dark"] .carousel-nav:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2), inset 0 0 8px rgba(255, 255, 255, 0.1);
    background: rgba(30, 41, 59, 1);
    color: #ffffff;
}


/* --- Dark Mode Highlights Section Adjustments --- */
[data-theme="dark"] .highlights-grid-section {
    background: #000000 !important;
}

[data-theme="dark"] .highlights-box {
    background: #111111;
    /* Slightly lighter than black to contrast with section */
    border-color: var(--border);
}

[data-theme="dark"] .highlights-main-title,
[data-theme="dark"] .highlights-subtitle,
[data-theme="dark"] .destacados-badge {
    color: #ffffff !important;
}

/* Also ensure the hover buttons inside remain visible */
[data-theme="dark"] .solution-banner-card .banner-btn {
    color: #ffffff;
    border-color: #ffffff;
}


/* --- Dark Mode Training Section Adjustments --- */
[data-theme="dark"] .training-section {
    background: var(--bg-secondary) !important;
}

[data-theme="dark"] .training-section::before {
    display: none;
    /* Hide any light pseudo-element background if present */
}

[data-theme="dark"] .training-description,
[data-theme="dark"] .training-footer-text {
    color: #ffffff !important;
}

[data-theme="dark"] .full-dark-btn {
    background: #333333;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .full-dark-btn:hover {
    background: #555555;
    border-color: #ffffff;
}

[data-theme="dark"] .t-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5));
}


/* --- Dark Mode What We Do Section Adjustments --- */
[data-theme="dark"] .wwd-intro,
[data-theme="dark"] .wwd-description,
[data-theme="dark"] .wwd-list li {
    color: #ffffff !important;
}


/* --- Dark Mode FAQ Section Adjustments --- */
[data-theme="dark"] .faq-section {
    background: #000000 !important;
    /* Or var(--bg-primary) depending on preference, #000 ensures high contrast */
}

[data-theme="dark"] .faq-card-box {
    background: var(--bg-secondary);
    border-color: var(--border);
    box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .faq-item {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .faq-item summary,
[data-theme="dark"] .faq-item summary span {
    color: #ffffff !important;
}

[data-theme="dark"] .faq-answer,
[data-theme="dark"] .faq-answer p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .faq-item.highlight-faq {
    background: rgba(227, 6, 19, 0.1);
    border-color: var(--brand);
}

[data-theme="dark"] .faq-item.highlight-faq:hover {
    background: rgba(227, 6, 19, 0.2);
}

[data-theme="dark"] .faq-arrow {
    border-color: #ffffff;
}


/* --- Dark Mode FAQ Section - Even Darker --- */
[data-theme="dark"] .faq-card-box {
    background: #111111 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .faq-section {
    background: #000000 !important;
}

[data-theme="dark"] .faq-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}


/* --- Dark Mode Training Card Button Adjustments --- */
[data-theme="dark"] .t-enroll-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .t-enroll-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #ffffff !important;
}

/* Fix text colors inside the training card stats row if needed */
[data-theme="dark"] .t-stats-row .t-stat span,
[data-theme="dark"] .t-stats-row .t-stat strong {
    color: #ffffff !important;
}


/* --- Dark Mode Footer Text Adjustments --- */
[data-theme="dark"] .footer p,
[data-theme="dark"] .footer li,
[data-theme="dark"] .footer .location-col p,
[data-theme="dark"] .footer span,
[data-theme="dark"] .footer-description {
    color: #ffffff !important;
}

[data-theme="dark"] .footer a,
[data-theme="dark"] .footer .links-col a,
[data-theme="dark"] .footer .tel-link {
    color: #ffffff;
    transition: color 0.3s ease;
}

[data-theme="dark"] .footer a:hover,
[data-theme="dark"] .footer .links-col a:hover,
[data-theme="dark"] .footer .tel-link:hover {
    color: var(--brand) !important;
}


/* --- High-End Hover Effect (Dark Mode) --- */
[data-theme="dark"] .product-card {
    background: #111111 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .product-card::before {
    content: "";
    position: absolute;
    width: 250%;
    height: 250%;
    background: conic-gradient(from 0deg,
            transparent 0%,
            var(--brand) 15%,
            transparent 30%,
            transparent 50%,
            #ffffff 65%,
            /* White effect for dark mode */
            transparent 80%,
            transparent 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: rotate-glow 4s infinite linear;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

[data-theme="dark"] .product-card:hover::before {
    opacity: 1;
}

[data-theme="dark"] .product-card::after {
    content: "";
    position: absolute;
    inset: 2px;
    /* Two-tone background for dark mode: slightly lighter grey on top, darker on bottom */
    background: linear-gradient(to bottom, #1a1a1a 230px, #111111 230px) !important;
    border-radius: 22px;
    z-index: 1;
    pointer-events: none;
}

[data-theme="dark"] .product-img-container,
[data-theme="dark"] .product-info {
    background: transparent !important;
}

[data-theme="dark"] .product-name {
    color: #ffffff !important;
}

[data-theme="dark"] .product-category-tag {
    color: var(--brand) !important;
    opacity: 1 !important;
}

[data-theme="dark"] .product-price {
    color: #ffffff !important;
}


/* --- Dark Mode AI Chat Adjustments --- */
[data-theme="dark"] .ai-chat-panel {
    background: #080808 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
}

[data-theme="dark"] .ai-chat-header {
    background: #111111 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .ai-chat-header h4,
[data-theme="dark"] .ai-chat-header span {
    color: #ffffff !important;
}

[data-theme="dark"] .ai-chat-header .close-chat {
    color: #ffffff !important;
}

[data-theme="dark"] .ai-chat-messages {
    background: #080808 !important;
}

[data-theme="dark"] .chat-msg.bot {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .chat-msg.user {
    background: var(--brand) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .ai-chat-input-area {
    background: #111111 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .ai-chat-input-area input {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .ai-chat-input-area input::placeholder {
    color: #888888 !important;
}

[data-theme="dark"] .ai-chat-input-area button {
    background: var(--brand) !important;
    color: #ffffff !important;
}


/* --- Dark Mode Footer Social Links Adjustments --- */
[data-theme="dark"] .footer-social-link {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .footer-social-link:hover {
    background: var(--brand) !important;
    color: #ffffff !important;
    border-color: var(--brand) !important;
}

[data-theme="dark"] .footer-social-link svg,
[data-theme="dark"] .footer-social-link i {
    color: #ffffff !important;
    fill: #ffffff !important;
}


/* --- Dark Mode AI Tooltip Adjustments --- */
[data-theme="dark"] .ai-tooltip {
    background: #111111 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .ai-tooltip::after {
    border-left-color: #111111 !important;
}


/* --- Dark Mode Carousel Logos Adjustments --- */
/* Override global image filter and make logos white/bright */
[data-theme="dark"] .scroll-item img {
    opacity: 0.7 !important;
    /* Invert(1) makes black parts white/light so they are visible on dark backgrounds */
    filter: invert(1) grayscale(100%) brightness(0.9) contrast(1.1) !important;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease !important;
}

[data-theme="dark"] .scroll-item:hover img {
    opacity: 1 !important;
    /* Invert(1) makes black parts white, and hue-rotate(180deg) + saturate(2) restores and intensifies the red color */
    filter: invert(1) hue-rotate(180deg) saturate(2) brightness(1) contrast(1.1) !important;
}

/* --- Dark Mode Catalog Sidebar Adjustments --- */
[data-theme="dark"] .filter-btn::after {
    background: #ffffff !important;
    color: var(--brand) !important;
}


/* --- Dark Mode Empresa Adjustments --- */
[data-theme="dark"] .empresa-about {
    background: #000000 !important;
}

[data-theme="dark"] .empresa-section-title {
    color: #ffffff !important;
}

[data-theme="dark"] .empresa-about-text p {
    color: #a0aec0 !important;
}

[data-theme="dark"] .empresa-dept-card {
    background: #111111 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .empresa-dept-card h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .empresa-dept-card p {
    color: #a0aec0 !important;
}

[data-theme="dark"] .empresa-cta-btn {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .empresa-cta-btn:hover {
    background: #e30613 !important;
    border-color: #e30613 !important;
}


/* --- Dark Mode ¿Qué Hacemos? Section Adjustments --- */
[data-theme="dark"] .what-we-do-section {
    background: #000000 !important;
}

[data-theme="dark"] .section-title-large {
    color: #ffffff !important;
}

[data-theme="dark"] .section-description {
    color: #a0aec0 !important;
}

[data-theme="dark"] .services-intro-text p {
    color: #a0aec0 !important;
}

[data-theme="dark"] .services-list li {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .what-we-do-box {
    background: #111111 !important;
}

/* Also ensure the FAQ section wrapper doesn't stay white */
[data-theme="dark"] .faq-section-wrapper {
    background: #111111 !important;
}


/* --- Dark Mode Empresa FAQ Section Adjustments --- */
[data-theme="dark"] .faq-section-wrapper {
    background: #000000 !important;
}

[data-theme="dark"] .faq-title {
    color: #ffffff !important;
}

[data-theme="dark"] .faq-subtitle {
    color: #a0aec0 !important;
}

[data-theme="dark"] .faq-item {
    background: #111111 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .faq-question {
    color: #ffffff !important;
}

[data-theme="dark"] .faq-question:hover {
    background: #1a1a1a !important;
    color: #e30613 !important;
}

[data-theme="dark"] .faq-answer {
    color: #a0aec0 !important;
}

[data-theme="dark"] .faq-answer p {
    color: #a0aec0 !important;
}


/* --- Dark Mode FAQ Highlight Fix --- */
[data-theme="dark"] .faq-item.highlight-faq {
    border-color: #e30613 !important;
    background: rgba(227, 6, 19, 0.1) !important;
    box-shadow: 0 0 15px rgba(227, 6, 19, 0.2) !important;
}

[data-theme="dark"] .faq-item.highlight-faq:hover {
    border-color: #e30613 !important;
    background: rgba(227, 6, 19, 0.15) !important;
    box-shadow: 0 0 20px rgba(227, 6, 19, 0.4) !important;
}


/* --- Dark Mode Misión, Visión, Valores Adjustments --- */
[data-theme="dark"] .values-card {
    background: #111111 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .values-card p {
    color: #a0aec0 !important;
}


/* --- Dark Mode Capacitaciones Page CCAD Adjustments --- */
[data-theme="dark"] .ccad-section {
    background: #000000 !important;
}

[data-theme="dark"] .ccad-title {
    color: #ffffff !important;
}

[data-theme="dark"] .ccad-intro {
    color: #a0aec0 !important;
}

[data-theme="dark"] .ccad-card,
[data-theme="dark"] .ccad-register-box {
    background: #111111 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .ccad-card-title {
    color: #ffffff !important;
}

[data-theme="dark"] .ccad-text {
    color: #a0aec0 !important;
}

[data-theme="dark"] .ccad-features span {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .ccad-register-btn {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .ccad-register-btn:hover {
    background: var(--brand) !important;
    color: #ffffff !important;
    border-color: var(--brand) !important;
}


/* --- Dark Mode Eventos Page Adjustments --- */
[data-theme="dark"] .events-section-split {
    background: #000000 !important;
}

[data-theme="dark"] .events-content .section-tag {
    color: #a0aec0 !important;
}

[data-theme="dark"] .events-content h2 {
    color: #ffffff !important;
}

[data-theme="dark"] .events-content .subtitle-bar {
    color: #a0aec0 !important;
}

[data-theme="dark"] .events-description {
    color: #a0aec0 !important;
}

[data-theme="dark"] .events-table-container {
    background: #111111 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .events-table thead {
    background: #080808 !important;
}

[data-theme="dark"] .calendar-wrapper {
    background: #111111 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .calendar-wrapper iframe {
    /* Magic CSS filter to turn standard white Google Calendar into a Dark Mode calendar! */
    filter: invert(0.92) hue-rotate(180deg) brightness(1.1);
}

[data-theme="dark"] .events-footer-note {
    background: rgba(227, 6, 19, 0.1) !important;
    color: #e2e8f0 !important;
    border-left-color: var(--brand) !important;
}

[data-theme="dark"] .events-footer-note strong {
    color: #ffffff !important;
}


/* --- Premium Dark Mode Ambient Glow for Eventos --- */
[data-theme="dark"] .events-section-split {
    position: relative;
    overflow: hidden;
}

/* Red ambient glow emanating from the right (behind the calendar) */
[data-theme="dark"] .events-section-split::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

/* Subtle white/blue ambient glow from the top left */
[data-theme="dark"] .events-section-split::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .events-section-split .container {
    position: relative;
    z-index: 1;
}

/* Add a subtle premium glow to the calendar wrapper itself */
[data-theme="dark"] .calendar-wrapper {
    box-shadow: 0 0 40px rgba(227, 6, 19, 0.08), inset 0 0 20px rgba(255, 255, 255, 0.02) !important;
}


/* --- Premium Ambient Glow for Other Sections (Empresa & Capacitaciones) --- */
[data-theme="dark"] .empresa-about,
[data-theme="dark"] .what-we-do-section,
[data-theme="dark"] .ccad-section {
    position: relative;
    overflow: hidden;
}

/* Ensure contents stay above the glow */
[data-theme="dark"] .empresa-about>*,
[data-theme="dark"] .what-we-do-section>*,
[data-theme="dark"] .ccad-section>* {
    position: relative;
    z-index: 1;
}

/* Red ambient glow from the right side */
[data-theme="dark"] .empresa-about::before,
[data-theme="dark"] .what-we-do-section::before,
[data-theme="dark"] .ccad-section::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

/* Soft white glow from the bottom-left */
[data-theme="dark"] .empresa-about::after,
[data-theme="dark"] .what-we-do-section::after,
[data-theme="dark"] .ccad-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* Add box-shadow glow to main content boxes in those sections */
[data-theme="dark"] .what-we-do-box,
[data-theme="dark"] .faq-section-wrapper {
    box-shadow: 0 0 40px rgba(227, 6, 19, 0.05), inset 0 0 20px rgba(255, 255, 255, 0.02) !important;
}


/* --- Dark Mode CCAD Form Adjustments --- */
[data-theme="dark"] .ccad-registration-card {
    background: #111111 !important;
}

[data-theme="dark"] .ccad-form-heading h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .ccad-form-heading p {
    color: #a0aec0 !important;
}

[data-theme="dark"] .ccad-field label {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .ccad-field input,
[data-theme="dark"] .ccad-field select {
    background: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .ccad-field input:hover,
[data-theme="dark"] .ccad-field select:hover {
    background: #222222 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .ccad-field input:focus,
[data-theme="dark"] .ccad-field select:focus {
    background: #222222 !important;
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.15) !important;
}

[data-theme="dark"] .ccad-field input::placeholder {
    color: #718096 !important;
}

[data-theme="dark"] .ccad-consent {
    background: rgba(227, 6, 19, 0.1) !important;
    border: 1px solid rgba(227, 6, 19, 0.2) !important;
}

[data-theme="dark"] .ccad-checkbox {
    color: #e2e8f0 !important;
}


/* --- Dark Mode CCAD Notes Adjustments --- */
[data-theme="dark"] .ccad-note {
    background: rgba(227, 6, 19, 0.1) !important;
    color: #e2e8f0 !important;
    border-left-color: var(--brand) !important;
}

[data-theme="dark"] .ccad-note strong {
    color: #ffffff !important;
}

[data-theme="dark"] .events-link-note {
    color: #a0aec0 !important;
}

[data-theme="dark"] .events-link-note a {
    color: var(--brand) !important;
}


/* --- Dark Mode Multimedia Adjustments & Glow --- */
[data-theme="dark"] .banner-section {
    background: #000000 !important;
}

[data-theme="dark"] .multimedia-section {
    background: #000000 !important;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .multimedia-section>* {
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .multimedia-section::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .multimedia-box {
    background: #111111 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 0 40px rgba(227, 6, 19, 0.05), inset 0 0 20px rgba(255, 255, 255, 0.02) !important;
}

[data-theme="dark"] .multimedia-description {
    color: #a0aec0 !important;
}

[data-theme="dark"] .multimedia-topics li {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .multimedia-cta p {
    color: #ffffff !important;
}

[data-theme="dark"] .video-title {
    color: #a0aec0 !important;
}


/* --- Dark Mode Manuales Page Adjustments --- */
/* Override global section title inline color */
[data-theme="dark"] main.section-padding h2[style*="color: #2d3748"] {
    color: #ffffff !important;
}

[data-theme="dark"] .manuals-hero {
    box-shadow: 0 0 40px rgba(227, 6, 19, 0.08) !important;
}

/* Fix Info Cards */
[data-theme="dark"] .info-card {
    background: #111111 !important;
}

[data-theme="dark"] .info-card::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.9)) !important;
}

/* Fix Resource Viewer (Inline Styles Overrides) */
[data-theme="dark"] .resource-viewer-section,
[data-theme="dark"] .catalog-viewer-section .viewer-container {
    background: #111111 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 0 40px rgba(227, 6, 19, 0.05), inset 0 0 20px rgba(255, 255, 255, 0.02) !important;
}

[data-theme="dark"] #viewerTitle {
    color: #ffffff !important;
}

/* Buttons and Inputs */
[data-theme="dark"] .back-link-btn,
[data-theme="dark"] .catalog-viewer-section .viewer-container>div>button {
    background: #1a1a1a !important;
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .resource-viewer-section>div>div[style*="background: #f8f9fa"] {
    background: #1a1a1a !important;
    color: #a0aec0 !important;
}

[data-theme="dark"] #resourceSearch {
    background: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    border-top-color: var(--brand) !important;
    color: #ffffff !important;
}

[data-theme="dark"] #resourceSearch::placeholder {
    color: #718096 !important;
}

/* Fix Javascript generated cards */
[data-theme="dark"] #resourceGrid div[style*="background: #fafafa"] {
    background: #1a1a1a !important;
}

[data-theme="dark"] #resourceGrid a[style*="background: #f1f5f9"] {
    background: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] #resourceGrid a[style*="background: #f1f5f9"]:hover {
    background: rgba(227, 6, 19, 0.1) !important;
    border-color: var(--brand) !important;
}

[data-theme="dark"] #resourceGrid span[style*="color: #334155"] {
    color: #cbd5e1 !important;
}

/* Fix iframe container and pill */
[data-theme="dark"] .catalog-viewer-section .viewer-container>div>div[style*="background: white"] {
    background: #1a1a1a !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .viewer-controls-pill {
    background: #111111 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
}

[data-theme="dark"] #pageInfo,
[data-theme="dark"] #resPageInfo {
    color: #ffffff !important;
}

/* Fix No Results text */
[data-theme="dark"] #noResults {
    color: #a0aec0 !important;
}

/* --- Resource Grid Manuales (Replaces Inline JS) --- */
.resource-grid-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #edf2f7;
    transition: all 0.2s;
}

.resource-grid-row:hover {
    background: #fafafa;
}

.resource-pdf-link {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    min-width: 0;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
}

.resource-pdf-link:hover {
    border-color: #e30613;
    background: #fff5f5;
}

.resource-pdf-text {
    font-size: 0.88rem;
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.resource-download-btn {
    background: #e30613;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
    transition: all 0.2s;
}

.resource-download-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(227, 6, 19, 0.4);
}

/* Dark Mode Overrides for Resource Grid */
[data-theme="dark"] .resource-grid-row {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .resource-grid-row:hover {
    background: #1a1a1a !important;
}

[data-theme="dark"] .resource-pdf-link {
    background: #111111 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .resource-pdf-link:hover {
    background: rgba(227, 6, 19, 0.1) !important;
    border-color: var(--brand) !important;
}

[data-theme="dark"] .resource-pdf-text {
    color: #cbd5e1 !important;
}

/* --- Dark Mode Product Details Page --- */
[data-theme="dark"] .product-detail-page {
    background: #000000 !important;
}

[data-theme="dark"] .product-main-grid {
    background: #111111 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 0 40px rgba(227, 6, 19, 0.05), inset 0 0 20px rgba(255, 255, 255, 0.02) !important;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .product-main-grid::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .product-gallery,
[data-theme="dark"] .product-info-column {
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .product-gallery {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .main-image-container {
    background: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5) !important;
}

/* Make images pop a bit more in dark mode if they are PNGs */
[data-theme="dark"] .main-image-container img {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

[data-theme="dark"] .thumbnail {
    background: #1a1a1a !important;
    border-color: transparent !important;
}

[data-theme="dark"] .thumbnail:hover {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .thumbnail.active {
    border-color: var(--brand) !important;
    box-shadow: 0 0 8px rgba(227, 6, 19, 0.4) !important;
}

[data-theme="dark"] .product-info-column h1 {
    color: #ffffff !important;
}

[data-theme="dark"] .product-info-column h3 {
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .product-category-label {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .product-description {
    color: #a0aec0 !important;
}

[data-theme="dark"] .product-info-column ul {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .specs-table th {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .specs-table td {
    color: #a0aec0 !important;
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .extra-resources {
    background: #111111 !important;
    border-left-color: var(--brand) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .extra-resources h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .pdf-item a {
    background: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #a0aec0 !important;
}

[data-theme="dark"] .pdf-item a:hover {
    background: rgba(227, 6, 19, 0.1) !important;
    border-color: var(--brand) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-secondary {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .btn-secondary:hover {
    background: #333333 !important;
    border-color: #ffffff !important;
}

[data-theme="dark"] .breadcrumb {
    color: #a0aec0 !important;
}

[data-theme="dark"] .breadcrumb a {
    color: #ffffff !important;
}

[data-theme="dark"] .breadcrumb a:hover {
    color: var(--brand) !important;
}

/* --- Dark Mode Pagination Adjustments --- */
[data-theme="dark"] .page-btn {
    background: #111111 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .page-btn:hover:not(:disabled) {
    background: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .page-btn.active {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(227, 6, 19, 0.4) !important;
}

[data-theme="dark"] .page-ellipsis {
    color: #718096 !important;
}

[data-theme="dark"] .pagination-summary {
    color: #a0aec0 !important;
}

/* --- Dark Mode Mobile Nav Adjustments --- */
@media (max-width: 1024px) {
    [data-theme="dark"] .main-nav {
        background: #0f172a !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8) !important;
    }

    [data-theme="dark"] .main-nav .nav-link {
        background: #1e293b !important;
        color: #f8fafc !important;
    }

    [data-theme="dark"] .main-nav .nav-link:hover,
    [data-theme="dark"] .main-nav .nav-link.active {
        color: var(--brand) !important;
    }

    [data-theme="dark"] .main-nav .nav-link.nav-menu-cta {
        background: linear-gradient(135deg, var(--brand), #a5040e) !important;
        color: white !important;
    }

    [data-theme="dark"] .dropdown-item {
        color: #cbd5e1 !important;
        border-bottom-color: rgba(255, 255, 255, 0.05) !important;
    }

    [data-theme="dark"] .dropdown-item:hover {
        color: var(--brand) !important;
    }
}

/* Spacing fix for product detail pages */
.product-detail-page {
    padding-bottom: 100px !important;
}

/* --- Reusable Global Back Button 2026 --- */
.back-btn-container {
    padding: 10px 0 25px;
    display: flex;
    justify-content: flex-start;
}

.global-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.global-back-btn:hover {
    background: rgba(227, 6, 19, 0.05);
    border-color: #e30613;
    color: #e30613;
    transform: translateX(-5px);
    box-shadow: 0 8px 20px rgba(227, 6, 19, 0.15);
}

.global-back-btn svg {
    transition: transform 0.3s ease;
}

.global-back-btn:hover svg {
    transform: translateX(-3px);
}

/* Dark Mode Support for Global Back Button */
[data-theme="dark"] .global-back-btn {
    background: #111111 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .global-back-btn:hover {
    background: rgba(227, 6, 19, 0.1) !important;
    border-color: #e30613 !important;
}

/* --- Header Specific Back Button --- */
.header-back-nav {
    margin-right: 15px;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    box-shadow: none !important;
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    flex-shrink: 0;
    height: 40px;
}

.header-back-nav:hover {
    background: #e30613 !important;
    color: white !important;
    transform: translateX(-3px) !important;
    border-color: #e30613 !important;
}

[data-theme="dark"] .header-back-nav {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .header-back-nav {
        margin-right: 8px;
        padding: 8px !important;
        width: 40px;
        justify-content: center;
    }

    .header-back-nav .back-text {
        display: none;
    }

    .nav-container {
        gap: 5px;
    }
}

/* --- Floating Circular Back Button 2026 --- */
.floating-back-btn {
    position: fixed;
    top: 120px;
    right: 40px;
    width: 54px;
    height: 54px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.floating-back-btn:hover {
    background: #e30613;
    color: #ffffff;
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 15px 35px rgba(227, 6, 19, 0.35);
    border-color: #e30613;
}

.floating-back-btn svg {
    width: 26px;
    height: 26px;
    transition: transform 0.3s ease;
}

.floating-back-btn:hover svg {
    transform: translateX(-3px);
}

[data-theme="dark"] .floating-back-btn {
    background: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .floating-back-btn:hover {
    background: #e30613 !important;
    border-color: #e30613 !important;
}

@media (max-width: 768px) {
    .floating-back-btn {
        top: 100px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .floating-back-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* --- Header Side Back Button 2026 --- */
.header-side-back-btn {
    position: absolute;
    left: 15px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 10010;
    cursor: pointer;
}

.header-side-back-btn:hover {
    background: #e30613;
    color: #ffffff;
    border-color: #e30613;
    transform: scale(1.1);
}

.header-side-back-btn svg {
    width: 22px;
    height: 22px;
}

[data-theme="dark"] .header-side-back-btn {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .header-side-back-btn:hover {
    background: #e30613;
    border-color: #e30613;
}

/* Adjust header padding ONLY to prevent logo overlap when back button is present */
.header:has(.header-side-back-btn) {
    padding-left: 75px !important;
}

@media (max-width: 768px) {
    .header:has(.header-side-back-btn) {
        padding-left: 60px !important;
        padding-right: 20px !important;
    }

    .header-side-back-btn {
        width: 36px;
        height: 36px;
        left: 12px;
    }

    .header-side-back-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* --- Dark Mode Toggle (FAB & Header Integration) --- */
.dark-mode-fab {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    z-index: 10005;
    padding: 0;
}

.dark-mode-fab:hover {
    transform: scale(1.05);
    background: #f8fafc;
    border-color: var(--brand);
    color: var(--brand);
}

.dark-mode-fab svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.dark-mode-fab .moon-icon {
    display: none;
}

.dark-mode-fab .sun-icon {
    display: block;
}

[data-theme="dark"] .dark-mode-fab .moon-icon {
    display: block;
}

[data-theme="dark"] .dark-mode-fab .sun-icon {
    display: none;
}

/* Desktop: High-Fidelity Glassmorphism Side Tab */
@media (min-width: 1025px) {
    .dark-mode-fab {
        position: fixed !important;
        top: 60% !important;
        right: 0 !important;
        transform: translateY(-50%) !important;
        width: auto !important;
        height: auto !important;
        padding: 12px 15px !important;
        background: rgba(255, 255, 255, 0.85) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        border-right: none !important;
        border-radius: 12px 0 0 12px !important;
        box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.1) !important;
        color: #0f172a !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer !important;
        z-index: 10001 !important;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
        margin: 0 !important;
    }

    .dark-mode-fab:hover {
        padding-right: 20px !important;
        background: rgba(241, 245, 249, 0.9) !important;
        color: var(--brand, #e30613) !important;
        transform: translateY(-50%) !important;
        /* Keep it centered, no scale/rotate */
    }

    .dark-mode-fab svg {
        width: 24px !important;
        height: 24px !important;
        transition: transform 0.5s ease !important;
    }

    [data-theme="dark"] .dark-mode-fab {
        background: rgba(15, 23, 42, 0.8) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: #f8fafc !important;
        box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.4) !important;
    }

    [data-theme="dark"] .dark-mode-fab:hover {
        background: rgba(30, 41, 59, 0.9) !important;
        color: var(--brand, #e30613) !important;
    }
}

/* Mobile Header Integration (Next to Hamburger) */
@media (max-width: 1024px) {
    .dark-mode-fab {
        position: static !important;
        width: 46px !important;
        height: 46px !important;
        margin: 0 10px 0 auto !important;
        background: rgba(15, 23, 42, 0.06) !important;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
        border-radius: 14px !important;
        box-shadow: none !important;
        order: 10;
        transition: none !important;
        transform: none !important;
        display: flex !important;
    }

    .mobile-toggle {
        order: 11;
        margin-left: 0 !important;
        display: flex !important;
    }

    /* Dark Mode Support for Mobile Integration */
    [data-theme="dark"] .dark-mode-fab {
        background: rgba(255, 255, 255, 0.08) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }

    [data-theme="dark"] .mobile-toggle {
        background: rgba(255, 255, 255, 0.08) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }

    [data-theme="dark"] .mobile-toggle span {
        background: #ffffff !important;
    }

    [data-theme="dark"] .dark-mode-fab:hover {
        background: rgba(255, 255, 255, 0.15) !important;
    }
}


/* --- Global Product Detail Gallery --- */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-container {
    width: 100%;
    height: 400px;
    background: #fdfdfd;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    cursor: zoom-in;
}

.main-image-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.2s ease-out, opacity 0.3s ease;
    transform-origin: center center;
}

.thumbnails-container {
    min-height: 105px;
}

.thumbnails-container::-webkit-scrollbar {
    display: none !important;
    /* Chrome, Safari, Opera */
    width: 0 !important;
    height: 0 !important;
}

.thumbnail {
    width: 80px !important;
    height: 80px !important;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    position: relative !important;
}

.thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail:hover {
    border-color: var(--brand, #e30613);
}

.thumbnail.active {
    border-color: var(--brand, #e30613);
    box-shadow: 0 0 8px rgba(227, 6, 19, 0.3);
}

.thumbnail-badge {
    position: absolute;
    right: 4px;
    bottom: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(227, 6, 19, 0.9);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

/* Gallery Navigation Arrows */
.thumbnails-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 15px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gallery-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    color: #333;
    flex-shrink: 0;
}

.gallery-nav-btn:hover {
    background: var(--brand, #e30613);
    color: #fff;
    border-color: var(--brand, #e30613);
    transform: scale(1.1);
}

.gallery-nav-btn:active {
    transform: scale(0.95);
}

.gallery-nav-btn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

[data-theme="dark"] .gallery-nav-btn {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .gallery-nav-btn:hover {
    background: var(--brand, #e30613);
    border-color: var(--brand, #e30613);
}

@media (max-width: 768px) {
    .main-image-container {
        height: 280px;
        cursor: default;
    }
}

/* --- Comprehensive Product Detail Styles (Global Overhaul) --- */
body .product-detail-page {
    padding-top: 110px !important;
    background: #f8f9fa !important;
    min-height: 100vh !important;
}

[data-theme="dark"] body .product-detail-page {
    background: #080808 !important;
}

body .product-detail-page .container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.breadcrumb {
    margin-bottom: 25px !important;
    font-size: 0.9rem !important;
    color: #666 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
}

[data-theme="dark"] .breadcrumb {
    color: #888 !important;
}

.product-main-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    background: #fff !important;
    padding: 40px !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06) !important;
    width: 100% !important;
    margin-bottom: 50px !important;
}

[data-theme="dark"] .product-main-grid {
    background: #111111 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

.product-gallery {
    width: 100% !important;
}

.main-image-container {
    height: 450px !important;
    background: #fdfdfd !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #eee !important;
}

[data-theme="dark"] .main-image-container {
    background: #161616 !important;
    border-color: #222 !important;
}

.product-info-column h1 {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    margin-bottom: 15px !important;
    color: #0f172a !important;
}

[data-theme="dark"] .product-info-column h1 {
    color: #fff !important;
}

@media (max-width: 992px) {
    .product-main-grid {
        grid-template-columns: 1fr !important;
        padding: 30px !important;
    }
}

@media (max-width: 768px) {
    body .product-detail-page .container {
        padding: 0 10px !important;
    }

    .product-main-grid {
        padding: 20px 15px !important;
        gap: 25px !important;
        border-radius: 0 !important;
        /* Full width edge to edge on small mobile */
        margin-left: -10px !important;
        margin-right: -10px !important;
        width: calc(100% + 20px) !important;
        box-shadow: none !important;
    }

    .main-image-container {
        height: 320px !important;
        border-radius: 12px !important;
    }

    .product-info-column h1 {
        font-size: 1.8rem !important;
    }
}

/* --- THE ULTIMATE RESPONSIVE OVERRIDE (v1.1.1) --- */
@media (max-width: 768px) {

    /* Target the exact structure to override internal <style> blocks */
    html body main.product-detail-page div.container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        margin: 0 !important;
    }

    html body main.product-detail-page section.product-main-grid {
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: 1fr !important;
        padding: 15px 10px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column !important;
    }

    html body main.product-detail-page div.product-gallery,
    html body main.product-detail-page div.product-info-column {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .main-image-container {
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        width: 100% !important;
    }

    .thumbnails-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important;
    }

    /* Ensure breadcrumb also takes full width */
    .breadcrumb {
        width: 100% !important;
        padding: 0 5px !important;
    }
}

/* ========================================================================== 
   COOKIE BANNER - INDUSTRIAL DARK TECH 2026 
   ============================================================/* ========================================================================== 
   COOKIE BANNER - INDUSTRIAL DARK MODAL 2026 
   ========================================================================== */
#cookie-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#cookie-banner-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* ========================================================================== 
   COOKIE BANNER - THEMED MODAL (LIGHT & DARK) 
   ========================================================================== */
:root {
    --cookie-bg: #ffffff;
    --cookie-text-h: #111827;
    --cookie-text-p: #4b5563;
    --cookie-border: rgba(0, 0, 0, 0.1);
    --cookie-overlay: rgba(0, 0, 0, 0.4);
    --cookie-btn-outline: #111827;
    --cookie-btn-outline-border: rgba(0, 0, 0, 0.15);
    --cookie-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --cookie-bg: #0a0f19;
    --cookie-text-h: #ffffff;
    --cookie-text-p: #a1a1a8;
    --cookie-border: rgba(227, 6, 19, 0.3);
    --cookie-overlay: rgba(0, 0, 0, 0.7);
    --cookie-btn-outline: #ffffff;
    --cookie-btn-outline-border: rgba(255, 255, 255, 0.15);
    --cookie-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

#cookie-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cookie-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#cookie-banner-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

#cookie-banner.cookie-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 90%;
    max-width: 550px;
    background: var(--cookie-bg);
    border: 1px solid var(--cookie-border);
    border-radius: 28px;
    padding: 40px;
    text-align: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: var(--cookie-shadow);
}

#cookie-banner.cookie-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

#cookie-banner .cookie-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: #e30613;
}

#cookie-banner .cookie-icon svg {
    width: 100%;
    height: 100%;
}

#cookie-banner h2 {
    color: var(--cookie-text-h);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

#cookie-banner p {
    color: var(--cookie-text-p);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 35px;
    font-family: 'Inter', sans-serif;
}

#cookie-banner .cookie-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 25px;
}

.cookie-btn-primary {
    background: #e30613;
    color: #ffffff;
    border: none;
    padding: 14px 60px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    width: auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

.cookie-btn-outline {
    background: transparent;
    color: var(--cookie-btn-outline);
    border: 1px solid var(--cookie-btn-outline-border);
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s ease;
}

.cookie-btn-primary:hover {
    background: #b3050f;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.5);
}

.cookie-btn-outline:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--cookie-btn-outline);
    transform: translateY(-3px);
}

[data-theme="dark"] .cookie-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cookie-policy-link {
    display: inline-block;
    color: #e30613;
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-policy-link:hover {
    color: #ff362f;
    text-decoration: underline;
}

@media (max-width: 600px) {
    #cookie-banner.cookie-modal {
        padding: 25px 15px;
        width: 92%;
        border-radius: 20px;
    }

    #cookie-banner .cookie-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 15px;
    }

    #cookie-banner h2 {
        font-size: 1.5rem;
    }

    #cookie-banner p {
        font-size: 0.8rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    #cookie-banner .cookie-actions {
        flex-direction: row;
        /* Keep horizontal like desktop */
        flex-wrap: wrap;
        gap: 8px;
    }

    .cookie-btn-primary,
    .cookie-btn-outline {
        width: auto;
        flex: 1;
        padding: 10px 8px;
        font-size: 0.75rem;
        min-width: 80px;
    }

    .cookie-btn-primary {
        padding: 10px 40px;
        flex: none;
        width: auto;
    }

    .cookie-policy-link {
        font-size: 0.8rem;
    }
}

/* Ocultar thumbnails por defecto para evitar cuadros vacíos al cargar (usando opacity para permitir lazy loading) */
.thumbnail {
    opacity: 0;
}

/* Solo mostrar cuando la imagen cargue con éxito */
.thumbnail.is-visible {
    opacity: 1;
}

/* Unified Gallery Container Styles */
.thumbnails-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-height: 90px;
    justify-content: flex-start;
    align-items: center;
}

.thumbnails-container::-webkit-scrollbar {
    display: none;
}

.thumbnails-container> :first-child {
    margin-left: auto;
}

.thumbnails-container> :last-child {
    margin-right: auto;
}

/* Asegurar que el render 3D ocupe todo el espacio de su contenedor */
model-viewer {
    width: 100% !important;
    height: 100% !important;
    min-height: 100%;
}