/* SOMOS Holding Custom CSS - Design Tokens & Styles (Redesigned V4) */

:root {
    --color-black: #000000;
    --color-dark-bg: #050505;
    --color-dark-card: #0d0d0d;
    --color-dark-border: #1e1e1e;
    --color-red: #e31b1b;
    --color-red-hover: #ff3333;
    --color-red-glow: rgba(227, 27, 27, 0.35);
    --color-white: #ffffff;
    --color-light-grey: #b7bdc6;
    --color-dark-grey: #666666;
    
    --font-headings: 'Oswald', sans-serif;
    --font-subheadings: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-display: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-fast: all 0.25s ease;
}

/* Base Styles */
html {
    scroll-behavior: initial; /* Managed by Lenis */
}

body {
    background-color: var(--color-dark-bg);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-black);
}
::-webkit-scrollbar-thumb {
    background: var(--color-dark-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-red);
}

/* Custom Selection */
::selection {
    background-color: var(--color-red);
    color: var(--color-white);
}

/* Typography Hierarchy (Premium Sports / Aggressive Italic style) */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-style: italic;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    padding: 0.05em 0.25em 0.05em 0.02em; /* Prevents vertical and horizontal cutoff of italic glyphs */
}

h1 {
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1.15;
    color: var(--color-white);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2.accent-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--color-red);
    box-shadow: 0 0 10px var(--color-red-glow);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.75rem);
    color: var(--color-white);
    margin-bottom: 1rem;
}

p {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--color-light-grey);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.text-accent {
    background: linear-gradient(135deg, #ff4f4f 0%, var(--color-red) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    padding-right: 0.20em; /* Prevents italic clipping in background-clip text */
    display: inline-block;
}

a {
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 3rem;
}

.section {
    padding: 11rem 0;
    position: relative;
    border-bottom: 1px solid var(--color-dark-border);
    overflow: hidden;
}

.section-dark {
    background-color: var(--color-black);
}

.section-hero-split {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 140px;
    overflow: hidden;
}

/* Background image grids */
.img-overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,5,5,0.98) 0%, rgba(5,5,5,0.85) 45%, rgba(5,5,5,0.4) 100%), linear-gradient(to top, rgba(5,5,5,1) 0%, transparent 20%);
    z-index: 1;
    pointer-events: none;
}

.section-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
    filter: contrast(1.25) brightness(0.7) saturate(1.05);
    transition: var(--transition-smooth);
}

/* Flex & Grid helpers */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3.5rem;
}

@media (max-width: 991px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .section {
        padding: 5rem 0;
    }
}

/* Skew Buttons (Raptor style diagonal buttons) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.8rem;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transform: skewX(-10deg);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn span {
    display: block;
    transform: skewX(10deg); /* Un-skew text */
    position: relative;
    z-index: 2;
    transition: var(--transition-fast);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -115%;
    width: 115%;
    height: 100%;
    z-index: 0;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-red);
    color: var(--color-white);
    border-color: var(--color-red);
}

.btn-primary::before {
    background-color: var(--color-white);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    color: var(--color-black) !important;
    border-color: var(--color-white);
    transform: skewX(-10deg) translateY(-3px);
    box-shadow: 0 10px 25px var(--color-red-glow);
}

.btn-primary:hover span {
    color: var(--color-black) !important;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-white);
    color: var(--color-white);
}

.btn-outline::before {
    background-color: var(--color-red);
}

.btn-outline:hover::before {
    left: 0;
}

.btn-outline:hover {
    color: var(--color-white) !important;
    border-color: var(--color-red);
    transform: skewX(-10deg) translateY(-3px);
    box-shadow: 0 10px 25px var(--color-red-glow);
}

.btn-red-outline {
    background-color: transparent;
    border: 1px solid var(--color-red);
    color: var(--color-white);
}

.btn-red-outline::before {
    background-color: var(--color-red);
}

.btn-red-outline:hover::before {
    left: 0;
}

.btn-red-outline:hover {
    color: var(--color-white) !important;
    border-color: var(--color-red);
    transform: skewX(-10deg) translateY(-3px);
    box-shadow: 0 10px 25px var(--color-red-glow);
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(5, 5, 5, 0.85);
    border-bottom: 1px solid var(--color-dark-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 3rem;
    transition: var(--transition-smooth);
}

.logo-wrap img {
    height: 72px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: var(--transition-smooth);
}

.site-header.header-scrolled .logo-wrap img {
    height: 58px;
}

@media (max-width: 991px) {
    .header-container {
        height: 75px;
        padding: 0 1.5rem;
    }
    .logo-wrap img {
        height: 60px;
    }
}

.site-nav {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    padding: 0.5rem 0;
    color: var(--color-light-grey);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-red);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
}

/* Transform toggle to X when active */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }
    
    .site-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
        transition: all 0.3s ease;
        padding: 2rem;
    }
    
    .site-nav.active {
        display: flex;
    }
    
    .nav-link {
        font-size: 1.2rem;
        letter-spacing: 0.15em;
    }
    
    /* Increase card number contrast for mobile */
    .card-number {
        color: rgba(227, 27, 27, 0.45) !important;
    }
}

/* Hero Sections */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding-top: 120px;
    background-color: var(--color-dark-bg);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 2.5vw, 1.25rem);
    font-weight: 800;
    color: var(--color-red);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
}

/* Glass Card / Premium Box styling */
.premium-card {
    background: var(--color-dark-card);
    border: 1px solid var(--color-dark-border);
    padding: 3.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background-color: var(--color-red);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.premium-card:hover::before {
    transform: scaleY(1);
}

.premium-card:hover {
    border-color: var(--color-red) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(227, 27, 27, 0.3);
    transform: scale(1.03) translateY(-5px);
}

.card-number {
    font-family: var(--font-headings);
    font-size: 3rem;
    color: rgba(227, 27, 27, 0.15);
    margin-bottom: 1rem;
    font-style: italic;
}

/* Subsidiary Presentation (Conglomerado) */
.subsidiary-card {
    background-color: var(--color-black);
    border: 1px solid var(--color-dark-border);
    padding: 4rem;
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
    transition: var(--transition-smooth);
}

.subsidiary-card:hover {
    border-color: var(--color-red);
    box-shadow: 0 15px 40px rgba(227, 27, 27, 0.1);
}

.subsidiary-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #090909;
    padding: 3rem;
    border-radius: 4px;
    border: 1px solid var(--color-dark-border);
    height: 220px;
    transition: var(--transition-smooth);
}

.subsidiary-card:hover .subsidiary-logo-wrap {
    border-color: rgba(227, 27, 27, 0.4);
    background: #000;
}

.subsidiary-logo-wrap img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.85);
    transition: var(--transition-smooth);
}

.subsidiary-card:hover .subsidiary-logo-wrap img {
    filter: brightness(0) invert(1) opacity(1) drop-shadow(0 0 12px rgba(227, 27, 27, 0.9));
}

.subsidiary-info h3 {
    font-family: var(--font-subheadings);
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.subsidiary-tag {
    display: inline-block;
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    transform: skewX(-10deg);
}

.subsidiary-tag span {
    display: block;
    transform: skewX(10deg);
}

/* Financial Projections Dashboard Page */
.finance-metric {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: var(--color-dark-card);
    border: 1px solid var(--color-dark-border);
}

@media (max-width: 768px) {
    .finance-metric {
        padding: 2rem 1rem !important;
    }
}

.finance-metric-value {
    font-family: var(--font-headings);
    font-size: clamp(2.2rem, 7vw, 3.8rem);
    color: var(--color-red);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px var(--color-red-glow);
    white-space: nowrap;
}

.finance-metric-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-light-grey);
}

.chart-wrapper {
    background-color: var(--color-dark-card);
    border: 1px solid var(--color-dark-border);
    padding: 4rem 3rem;
    margin-top: 4rem;
    position: relative;
    border-top: 4px solid var(--color-red);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.chart-container {
    position: relative;
    width: 100%;
    height: 450px;
}

/* Forms (Contacto Inversionistas) */
.inversion-form-wrap {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-dark-card);
    border: 1px solid var(--color-dark-border);
    padding: 4rem;
    border-top: 4px solid var(--color-red);
}

.form-group-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-control {
    margin-bottom: 2rem;
}

.form-control label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
    color: var(--color-white);
}

.form-input {
    width: 100%;
    background-color: var(--color-black);
    border: 1px solid var(--color-dark-border);
    padding: 1.2rem;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-red);
    box-shadow: 0 0 15px var(--color-red-glow);
}

select.form-input {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.2rem;
}

@media (max-width: 767px) {
    .form-group-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Site Footer */
.site-footer {
    background-color: var(--color-black);
    border-top: 1px solid var(--color-dark-border);
    padding: 6rem 0 3rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (max-width: 767px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.footer-logo img,
.footer-logo-img {
    height: 75px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
}

/* Ensure the isologo in sponsor cards / other cards is white on dark background */
.sponsor-card img[src*="isologo.png"],
.brand-column-logo img[src*="isologo.png"] {
    filter: brightness(0) invert(1) opacity(0.8) !important;
    transition: var(--transition-smooth) !important;
}

.sponsor-card:hover img[src*="isologo.png"],
.brand-column-card:hover .brand-column-logo img[src*="isologo.png"] {
    filter: brightness(0) invert(1) opacity(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.7)) !important;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--color-light-grey);
}

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    color: var(--color-white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--color-light-grey);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--color-red);
}

.footer-bottom {
    border-top: 1px solid var(--color-dark-border);
    padding-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.95rem;
    color: var(--color-light-grey);
    margin-bottom: 0;
    line-height: 1.6;
    order: 2;
}

.footer-meta-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    order: 1;
}

@media (max-width: 768px) {
    .footer-meta-links {
        gap: 1rem 1.5rem;
    }
}

.footer-meta-links a {
    font-size: 0.9rem;
    color: var(--color-light-grey);
    font-weight: 500;
    transition: color 0.3s;
}

.footer-meta-links a:hover {
    color: var(--color-red);
}

/* GSAP Scroll Reveal Classes */
.reveal-text, .reveal-box, .reveal-card {
    opacity: 0;
    transform: translateY(40px);
}

/* Diagonal Text Accents ("Letra de lado" rotated backing text) */
.diagonal-bg-text {
    position: absolute;
    font-family: var(--font-headings);
    font-size: clamp(8rem, 15vw, 16rem);
    font-weight: 900;
    font-style: italic;
    color: rgba(255, 255, 255, 0.02);
    text-transform: uppercase;
    transform: rotate(-7deg) translate(-10%, -20%);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

/* Custom video player mockup styling */
.video-mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-dark-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    background-color: #000;
    aspect-ratio: 16/9;
}

.video-mockup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.video-mockup-wrapper:hover .video-mockup-image {
    opacity: 0.7;
    transform: scale(1.02);
}

.video-overlay-play {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    cursor: pointer;
}

.play-btn-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-red);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(227, 27, 27, 0.6);
    transition: var(--transition-smooth);
}

.play-btn-circle svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
    margin-left: 5px; /* Offset to center triangle */
}

.video-mockup-wrapper:hover .play-btn-circle {
    transform: scale(1.1);
    background-color: #ffffff;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.8);
}

.video-mockup-wrapper:hover .play-btn-circle svg {
    fill: var(--color-red);
}

.video-player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 11;
}

.video-progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.video-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background-color: var(--color-red);
    box-shadow: 0 0 10px var(--color-red);
    border-radius: 2px;
}

.video-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-control-left, .video-control-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--color-light-grey);
    font-size: 0.875rem;
}

.video-control-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    cursor: pointer;
    transition: var(--transition-fast);
}

.video-control-icon:hover {
    color: #ffffff;
}

/* Extra decorative animations */
.glow-on-hover {
    position: relative;
}

.glow-on-hover::after {
    content: '';
    position: absolute;
    inset: -5px;
    background: var(--color-red);
    filter: blur(15px);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -2;
    border-radius: 4px;
}

.glow-on-hover:hover::after {
    opacity: 0.45;
}

/* Vertical Integration Loop SVG styles */
.integration-loop-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loop-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.loop-node {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.loop-node .node-bg {
    fill: var(--color-black);
    transition: var(--transition-fast);
}

.loop-node .node-border {
    fill: none;
    stroke: var(--color-dark-border);
    stroke-width: 2;
    transition: var(--transition-fast);
}

.loop-node text {
    text-anchor: middle;
    font-family: var(--font-headings);
    font-weight: 700;
    fill: var(--color-white);
    font-style: italic;
    pointer-events: none;
}

.loop-node .node-title {
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.loop-node .node-subtitle {
    font-size: 8px;
    fill: var(--color-light-grey);
    letter-spacing: 0.05em;
    font-family: var(--font-display);
    font-weight: 800;
}

/* Hover effects */
.loop-node:hover {
    /* Scaled transform removed to prevent coordinate jitter and stuck states in SVG */
}

.loop-node:hover .node-bg {
    fill: #0c0202;
}

.loop-node:hover .node-border {
    stroke: var(--color-red);
    stroke-width: 4.5px;
}

.loop-node:hover .node-title {
    fill: var(--color-red);
}

.rotating-track {
    transform-origin: 250px 250px;
    animation: rotateTrack 40s linear infinite;
}

@keyframes rotateTrack {
    100% {
        transform: rotate(360deg);
    }
}

.loop-info-box {
    background: var(--color-dark-card);
    border: 1px solid var(--color-dark-border);
    border-top: 3px solid var(--color-red);
    padding: 2rem;
    width: 100%;
    text-align: center;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.loop-info-box h4 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: var(--color-white);
    font-size: 1.1rem;
    font-family: var(--font-headings);
    font-style: italic;
}

.loop-info-box p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-light-grey);
    font-weight: 300;
    line-height: 1.6;
}

/* Hero Video Background styling */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-video-background iframe,
.hero-video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16/9 = 1.777 */
    transform: translate(-50%, -50%);
    opacity: 0.65; /* Blend with black background */
    object-fit: cover;
}

/* Brand Card Flex Accordion for Homepage (Dynamic 4-Brand Display V6) */
.brand-accordion-container {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-top: 4rem;
}

.brand-column-card {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--color-dark-border);
    background: var(--color-dark-card);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3.5rem 2.5rem;
    transition: flex 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s, box-shadow 0.4s;
    cursor: pointer;
    z-index: 1;
}

.brand-column-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.08;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s ease;
    filter: brightness(0.6) contrast(1.15) saturate(1.1);
}

.brand-column-card:hover {
    flex: 2.8;
    border-color: var(--color-red) !important;
    box-shadow: 0 25px 60px rgba(227, 27, 27, 0.28);
}

.brand-column-card:hover .brand-column-bg {
    transform: scale(1.08);
    opacity: 0.28;
}

.brand-column-card::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 4px;
    background-color: var(--color-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.brand-column-card:hover::before {
    transform: scaleX(1);
}

.brand-column-logo {
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(9, 9, 9, 0.95);
    border: 1px solid var(--color-dark-border);
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.6);
}

.brand-column-card:hover .brand-column-logo {
    background: #000;
    border-color: rgba(227, 27, 27, 0.4);
    box-shadow: 0 0 20px rgba(227, 27, 27, 0.15);
    transform: translateY(-5px);
}

.brand-column-logo img {
    max-height: 80px;
    max-width: 95%;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.85);
    transition: var(--transition-smooth);
}

.brand-column-card:hover .brand-column-logo img {
    filter: brightness(0) invert(1) opacity(1) drop-shadow(0 0 12px rgba(227, 27, 27, 0.95));
}

.brand-column-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
    z-index: 2;
}

.brand-column-tag {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-red);
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
}

.brand-column-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.brand-column-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(30px);
    transition: max-height 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.5s ease, transform 0.5s ease;
}

.brand-column-card:hover .brand-column-details {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
}

.brand-column-details p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--color-light-grey);
}

.brand-column-stats {
    border-top: 1px solid var(--color-dark-border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.brand-column-metric-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-dark-grey);
    letter-spacing: 0.05em;
}

.brand-column-metric-val {
    font-family: var(--font-headings);
    font-size: 1.35rem;
    color: var(--color-red);
    font-style: italic;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(227, 27, 27, 0.2);
}

.brand-column-action {
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease 0.1s;
}

.brand-column-card:hover .brand-column-action {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .brand-accordion-container {
        flex-direction: column;
        height: auto;
        gap: 1.5rem;
    }
    .brand-column-card {
        flex: none;
        width: 100%;
        height: 380px;
        justify-content: flex-end;
        padding: 2.5rem;
    }
    .brand-column-card:hover {
        flex: none;
        transform: translateY(-5px);
    }
    .brand-column-details {
        max-height: 300px;
        opacity: 1;
        transform: translateY(0);
    }
    .brand-column-bg {
        opacity: 0.22;
    }
    .brand-column-action {
        opacity: 1;
        transform: translateY(0);
        margin-top: 1rem;
    }
}

/* Dynamic background layers, floating effects and highlights V6 */
.dynamic-interactive-section {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.dynamic-interactive-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,5,5,0.92) 0%, rgba(13,2,2,0.85) 50%, rgba(5,5,5,0.92) 100%);
    z-index: 1;
    pointer-events: none;
}

.floating-interactive-grid {
    position: relative;
    z-index: 2;
}

.floating-card-item {
    background: rgba(13, 13, 13, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid var(--color-dark-border) !important;
    border-radius: 8px;
    padding: 3rem 2rem;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.floating-card-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(227, 27, 27, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.floating-card-item:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--color-red) !important;
    box-shadow: 0 20px 45px rgba(227, 27, 27, 0.22);
}

.floating-card-item:hover::after {
    opacity: 1;
}

/* Background skew details for separation */
.geometric-split-accent {
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(227,27,27,0.03) 50%, transparent 100%);
    top: 50%;
    left: -50%;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 0;
}

/* Interactive Video Gallery (Raptor MMA) */
.video-gallery-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

.video-gallery-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-dark-border);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    aspect-ratio: 16/9;
    background-color: #000;
}

.video-gallery-main iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-gallery-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.video-gallery-item {
    background: var(--color-dark-card);
    border: 1px solid var(--color-dark-border);
    padding: 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.video-gallery-item:hover, .video-gallery-item.active {
    border-color: var(--color-red);
    background: rgba(227, 27, 27, 0.05);
    transform: translateX(5px);
}

.video-gallery-item h5 {
    margin: 0;
    font-size: 1.05rem;
    font-family: var(--font-headings);
    color: var(--color-white);
    font-style: italic;
    transition: var(--transition-fast);
}

.video-gallery-item:hover h5, .video-gallery-item.active h5 {
    color: var(--color-red);
}

.video-gallery-item span {
    font-size: 0.75rem;
    color: var(--color-dark-grey);
    text-transform: uppercase;
    font-family: var(--font-display);
    font-weight: 700;
}

/* Sponsors Section */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.sponsor-card {
    background: var(--color-dark-card);
    border: 1px solid var(--color-dark-border);
    padding: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    height: 120px;
    transition: var(--transition-smooth);
}

.sponsor-card img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(1) brightness(0.75) contrast(1.2);
    transition: var(--transition-smooth);
}

.sponsor-card:hover {
    border-color: var(--color-red);
    box-shadow: 0 10px 25px var(--color-red-glow);
    transform: translateY(-5px);
}

.sponsor-card:hover img {
    filter: none;
}

@media (max-width: 991px) {
    .video-gallery-wrapper {
        grid-template-columns: 1fr;
    }
    .video-gallery-list {
        max-height: 300px;
    }
}

/* Infinite Scrolling Marquee for Sponsors */
.sponsors-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    background: transparent;
    padding: 3rem 0;
    margin-top: 2rem;
}

.sponsors-marquee::before,
.sponsors-marquee::after {
    background: linear-gradient(to right, var(--color-dark-bg) 0%, transparent 100%);
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.sponsors-marquee::before {
    left: 0;
    top: 0;
}

.sponsors-marquee::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.sponsors-track {
    display: flex;
    width: calc(320px * 16);
    animation: scrollSponsors 26s linear infinite;
}

.sponsors-marquee:hover .sponsors-track {
    animation-play-state: paused;
}

.sponsor-slide {
    width: 320px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    flex-shrink: 0;
}

.sponsor-slide img {
    max-width: 95%;
    max-height: 110px;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(1) !important;
    transition: var(--transition-smooth) !important;
}

.sponsor-slide img:hover {
    filter: brightness(0) invert(1) opacity(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.95)) !important;
    transform: scale(1.08);
}

.sponsor-text {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--color-white);
    opacity: 0.8;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
}

.sponsor-text:hover {
    color: var(--color-red) !important;
    opacity: 1;
    text-shadow: 0 0 15px var(--color-red-glow);
    transform: scale(1.08);
}

@keyframes scrollSponsors {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-320px * 8));
    }
}

/* Responsive Contact Links and Card adjustments */
@media (max-width: 768px) {
    .premium-card {
        padding: 2.5rem 1.5rem !important;
    }
}

.premium-card p a,
.premium-card a {
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
#cookie-consent-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 480px;
    width: calc(100% - 48px);
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(227, 27, 27, 0.3);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    padding: 1.8rem;
    z-index: 9999;
    display: none;
    flex-direction: column;
    gap: 1.2rem;
    animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#cookie-consent-banner p {
    font-size: 0.95rem;
    color: var(--color-light-grey);
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.cookie-btn-primary {
    background: var(--color-red);
    color: var(--color-white);
}

.cookie-btn-primary:hover {
    background: var(--color-white);
    color: var(--color-black);
}

.cookie-btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.cookie-btn-outline:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
}

.cookie-btn-link {
    background: transparent;
    color: var(--color-red);
    text-decoration: underline;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    padding: 0.5rem 0;
    cursor: pointer;
}

/* Modal de Preferencias */
#cookie-preferences-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-container {
    background: #0d0d0d;
    border: 1px solid rgba(227, 27, 27, 0.4);
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

.cookie-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-dark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
    font-family: var(--font-headings);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--color-white);
}

.cookie-modal-close {
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.cookie-modal-close:hover {
    color: var(--color-red);
}

.cookie-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cookie-category-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-dark-border);
}

.cookie-category-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-category-title {
    font-weight: 700;
    color: var(--color-white);
    font-size: 1rem;
}

.cookie-category-desc {
    font-size: 0.85rem;
    color: var(--color-light-grey);
    line-height: 1.4;
    margin: 0;
}

/* Switch styling */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #333;
    transition: .3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: var(--color-red);
}

.cookie-switch input:focus + .cookie-slider {
    box-shadow: 0 0 1px var(--color-red);
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(22px);
}

.cookie-switch input:disabled + .cookie-slider {
    background-color: #222;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-dark-border);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: #090909;
}

@media (max-width: 576px) {
    #cookie-consent-banner {
        bottom: 12px;
        right: 12px;
        width: calc(100% - 24px);
        padding: 1.2rem;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   NUEVAS SECCIONES - QUIÉNES SOMOS REDISEÑO
   ========================================================================== */

/* 1. TIMELINE - LÍNEA DE TIEMPO INTERACTIVA */
.timeline-wrapper {
    position: relative;
    padding: 3rem 0;
    margin: 2rem 0;
}

.timeline-line {
    position: absolute;
    top: 55px;
    left: 4%;
    right: 4%;
    height: 3px;
    background: linear-gradient(90deg, rgba(225,27,34,0.2) 0%, rgba(225,27,34,1) 50%, rgba(225,27,34,0.2) 100%);
    z-index: 1;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.timeline-node-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.timeline-node-dot {
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #0f0f0f;
    border: 2px solid var(--color-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-red);
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 0 15px rgba(225, 27, 34, 0.4);
}

.timeline-node-dot svg {
    transition: transform 0.4s ease;
}

.timeline-card {
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid var(--color-dark-border);
    padding: 2rem 1.5rem;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.timeline-year {
    font-family: var(--font-headings);
    font-size: 2.25rem;
    font-weight: 800;
    font-style: italic;
    color: var(--color-red);
    margin-bottom: 0.8rem;
    display: block;
    line-height: 1;
}

.timeline-card h4 {
    color: #fff;
    font-family: var(--font-headings);
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.timeline-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-light-grey);
    margin-bottom: 0;
}

/* Hover effects timeline */
.timeline-node-item:hover .timeline-node-dot {
    transform: scale(1.15);
    background: var(--color-red);
    color: #fff;
    box-shadow: 0 0 25px rgba(225, 27, 34, 0.8);
    border-color: #fff;
}

.timeline-node-item:hover .timeline-node-dot svg {
    transform: rotate(15deg);
}

.timeline-node-item:hover .timeline-card {
    transform: translateY(-8px);
    border-color: rgba(225, 27, 34, 0.5);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

/* 2. VALUES GRID */
.values-flex-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.values-row-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.values-row-bottom {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.values-row-bottom .premium-card {
    width: calc(33.33% - 1.33rem);
    flex-shrink: 0;
}

/* 3. ALLIES GRID */
.allies-flex-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.allies-row-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.allies-row-bottom {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.allies-row-bottom .ally-item-wrap {
    width: calc(25% - 1.5rem);
    flex-shrink: 0;
}

.ally-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--color-dark-border);
    border-radius: 8px;
    min-height: 160px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.ally-logo-container img {
    filter: grayscale(1) brightness(0.6) contrast(1.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.ally-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-light-grey);
    margin-top: 1.2rem;
    display: block;
    transition: color 0.3s ease;
}

/* Hover effects allies */
.ally-logo-container:hover {
    border-color: var(--color-red);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
    background: rgba(20, 20, 20, 0.98);
}

.ally-logo-container:hover img {
    filter: grayscale(0) brightness(1) contrast(1);
    transform: scale(1.03);
}

.ally-logo-container:hover .ally-category {
    color: var(--color-red);
}

/* Responsive adjustements */
@media (max-width: 991px) {
    /* Timeline Tablet */
    .timeline-line {
        left: 27px;
        top: 2rem;
        bottom: 2rem;
        width: 3px;
        height: auto;
        background: linear-gradient(180deg, rgba(225,27,34,0.2) 0%, rgba(225,27,34,1) 50%, rgba(225,27,34,0.2) 100%);
    }
    
    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .timeline-node-item {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .timeline-node-dot {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .timeline-card {
        width: 100%;
    }
    
    /* Values Tablet */
    .values-row-top {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-row-bottom {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-row-bottom .premium-card {
        width: 100%;
    }
    
    .values-row-bottom .premium-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
    
    /* Allies Tablet */
    .allies-row-top {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .allies-row-bottom {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .allies-row-bottom .ally-item-wrap {
        width: 100%;
    }
    
    .allies-row-bottom .ally-item-wrap:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .timeline-node-item {
        gap: 1.25rem;
    }
    
    .values-row-top {
        grid-template-columns: 1fr;
    }
    
    .values-row-bottom {
        grid-template-columns: 1fr;
    }
    
    .values-row-bottom .premium-card:last-child {
        max-width: 100%;
    }
    
    .allies-row-top, .allies-row-bottom {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .allies-row-bottom .ally-item-wrap:last-child {
        grid-column: span 2;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .allies-row-top, .allies-row-bottom {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .allies-row-bottom .ally-item-wrap:last-child {
        grid-column: span 1;
    }
    
    .timeline-node-item {
        gap: 1rem;
    }
    
    .timeline-node-dot {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .timeline-line {
        left: 22px;
    }
}





/* Additional Redesign Refinements for Quiénes Somos */
@media (min-width: 992px) {
    .timeline-node-item {
        position: relative;
    }
    .timeline-node-item::after {
        content: '';
        position: absolute;
        top: 54px;
        left: 50%;
        transform: translateX(-50%);
        width: 1px;
        height: 2rem;
        border-left: 2px dotted var(--color-red);
        z-index: 1;
        opacity: 0.6;
        pointer-events: none;
    }
}

.zoom-on-hover {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s ease !important;
}
.zoom-on-hover:hover {
    transform: scale(1.05) !important;
    filter: brightness(1) contrast(1.05) !important;
}

.ally-logo-container:hover .piso3-text-box,
.ally-logo-container:hover .secre-text-box {
    border-color: var(--color-red) !important;
    color: #fff !important;
}

/* Adjustments for assets layout collage */
@media (max-width: 991px) {
    .grid-layout-split {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
}


/* Redesign refinements part 2 */
.allies-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    background: transparent;
    padding: 3rem 0;
    margin-top: 2rem;
}

.allies-marquee::before,
.allies-marquee::after {
    background: linear-gradient(to right, var(--color-dark-bg) 0%, transparent 100%);
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.allies-marquee::before {
    left: 0;
    top: 0;
}

.allies-marquee::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.allies-track {
    display: flex;
    width: calc(320px * 20);
    animation: scrollAllies 30s linear infinite;
}

.allies-marquee:hover .allies-track {
    animation-play-state: paused;
}

@keyframes scrollAllies {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-320px * 10));
    }
}

.felipe-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(5,5,5,1) 0%, rgba(5,5,5,0.92) 35%, rgba(5,5,5,0.3) 65%, rgba(5,5,5,0) 100%), linear-gradient(180deg, rgba(5,5,5,0.1) 0%, rgba(5,5,5,0.9) 100%);
    pointer-events: none;
}

@media (max-width: 991px) {
    .felipe-hero-overlay {
        background: linear-gradient(180deg, rgba(5,5,5,0.35) 0%, rgba(5,5,5,0.85) 60%, rgba(5,5,5,0.98) 100%);
    }
}


/* Redesign refinements part 3: Categorized Assets Grid & Interactive Hovers */
.assets-categories-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.assets-category-column {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.assets-category-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.5rem;
}

.assets-category-title {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.assets-category-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-red);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-red);
}

.assets-interactive-card {
    background: rgba(13, 13, 13, 0.95);
    border: 1px solid var(--color-dark-border);
    border-left: 3px solid var(--color-red) !important;
    padding: 2.2rem 1.8rem;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    height: auto;
}

.assets-interactive-card:hover {
    transform: translateY(-5px);
    border-color: rgba(227, 27, 27, 0.3) !important;
    border-left-color: var(--color-white) !important;
    box-shadow: 0 8px 25px rgba(227, 27, 27, 0.15), 0 0 15px rgba(227, 27, 27, 0.05);
    background: rgba(18, 18, 18, 0.98);
}

.assets-interactive-card .icon-wrapper {
    color: var(--color-red);
    margin-bottom: 1.2rem;
    transition: transform 0.3s ease;
}



/* Additional Redesign Refinements for Quiénes Somos */
@media (min-width: 992px) {
    .timeline-node-item {
        position: relative;
    }
    .timeline-node-item::after {
        content: '';
        position: absolute;
        top: 54px;
        left: 50%;
        transform: translateX(-50%);
        width: 1px;
        height: 2rem;
        border-left: 2px dotted var(--color-red);
        z-index: 1;
        opacity: 0.6;
        pointer-events: none;
    }
}

.zoom-on-hover {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s ease !important;
}
.zoom-on-hover:hover {
    transform: scale(1.05) !important;
    filter: brightness(1) contrast(1.05) !important;
}

.ally-logo-container:hover .piso3-text-box,
.ally-logo-container:hover .secre-text-box {
    border-color: var(--color-red) !important;
    color: #fff !important;
}

/* Adjustments for assets layout collage */
@media (max-width: 991px) {
    .grid-layout-split {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
}


/* Redesign refinements part 2 */
.allies-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    background: transparent;
    padding: 3rem 0;
    margin-top: 2rem;
}

.allies-marquee::before,
.allies-marquee::after {
    background: linear-gradient(to right, var(--color-dark-bg) 0%, transparent 100%);
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.allies-marquee::before {
    left: 0;
    top: 0;
}

.allies-marquee::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.allies-track {
    display: flex;
    width: calc(320px * 20);
    animation: scrollAllies 30s linear infinite;
}

.allies-marquee:hover .allies-track {
    animation-play-state: paused;
}

@keyframes scrollAllies {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-320px * 10));
    }
}

.felipe-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(5,5,5,1) 0%, rgba(5,5,5,0.92) 35%, rgba(5,5,5,0.3) 65%, rgba(5,5,5,0) 100%), linear-gradient(180deg, rgba(5,5,5,0.1) 0%, rgba(5,5,5,0.9) 100%);
    pointer-events: none;
}

@media (max-width: 991px) {
    .felipe-hero-overlay {
        background: linear-gradient(180deg, rgba(5,5,5,0.35) 0%, rgba(5,5,5,0.85) 60%, rgba(5,5,5,0.98) 100%);
    }
}


/* Redesign refinements part 3: Categorized Assets Grid & Interactive Hovers */
.assets-categories-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.assets-category-column {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.assets-category-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.5rem;
}

.assets-category-title {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.assets-category-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-red);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-red);
}

.assets-interactive-card {
    background: rgba(13, 13, 13, 0.95);
    border: 1px solid var(--color-dark-border);
    border-left: 3px solid var(--color-red) !important;
    padding: 2.2rem 1.8rem;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    height: auto;
}

.assets-interactive-card:hover {
    transform: translateY(-5px);
    border-color: rgba(227, 27, 27, 0.3) !important;
    border-left-color: var(--color-white) !important;
    box-shadow: 0 8px 25px rgba(227, 27, 27, 0.15), 0 0 15px rgba(227, 27, 27, 0.05);
    background: rgba(18, 18, 18, 0.98);
}

.assets-interactive-card .icon-wrapper {
    color: var(--color-red);
    margin-bottom: 1.2rem;
    transition: transform 0.3s ease;
}

.assets-interactive-card:hover .icon-wrapper {
    transform: scale(1.08) rotate(5deg);
    color: var(--color-white);
}

@media (max-width: 991px) {
    .assets-categories-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Ecosistema Sub Nav Mobile Scrollable */
@media (max-width: 767px) {
    .ecosistema-sub-nav .container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    .ecosistema-sub-nav .container::-webkit-scrollbar {
        display: none !important;
    }
    .ecosistema-sub-nav a {
        display: inline-block !important;
        flex-shrink: 0 !important;
    }
}


/* --- Actualizacion 5 Ecosistema Responsiveness Refinements --- */

/* Matrix Grid Desktop & Mobile Reflow */
.matrix-grid-desktop {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
@media (max-width: 991px) {
    .matrix-grid-desktop {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}
@media (max-width: 767px) {
    .matrix-grid-desktop {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Ecosistema Sub Nav Container */
.ecosistema-sub-nav-container {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
@media (max-width: 767px) {
    .ecosistema-sub-nav-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        gap: 1.5rem !important;
        padding: 0 1.5rem !important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    .ecosistema-sub-nav-container::-webkit-scrollbar {
        display: none !important;
    }
    .ecosistema-sub-nav-container a {
        display: inline-block !important;
        flex-shrink: 0 !important;
    }
}

/* Centrado de footer en movil y ajustes responsivos */
@media (max-width: 767px) {
    .site-footer {
        text-align: center !important;
        padding: 4rem 0 2rem !important;
    }
    .footer-top {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    .footer-about {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .footer-logo {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }
    .footer-logo img,
    .footer-logo-img {
        margin-left: auto !important;
        margin-right: auto !important;
        height: 70px !important; /* Slightly smaller on mobile but still prominent */
    }
    .footer-column {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .footer-column ul {
        align-items: center !important;
        text-align: center !important;
        padding-left: 0 !important;
    }
    .footer-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .footer-links li {
        text-align: center !important;
    }
}
