/* --- Color Palette Constants & Typography --- */
:root {
    --bg-black: #0a0a0a;
    --bg-card: #141414;
    --accent-red: #dc3545;
    --accent-red-hover: #b02a37;
    --text-white: #ffffff;
    --text-muted: #a0a0a0;
    --nav-height: 56px; /* header height used for fixed positioning */
    --promo-height: 48px; /* promotion banner height */
    
    /* Adobe Web Project Verified Typography Slugs */
    --title-font: "good-times", sans-serif; 
    --body-font: "all-round-gothic", sans-serif; 
}

/* --- Global Structural Rules --- */
html {
    scroll-behavior: smooth;
}
body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* --- Forzar Fuente de Títulos --- */
h1, h2, h3, h4, h5, h6, .navbar-brand, .lang-btn {
    font-family: var(--title-font) !important;
}

/* --- News Grid Scroll Area --- */
.news-horizontal-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.75rem;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(220, 53, 69, 0.75) rgba(255, 255, 255, 0.06);
}
.news-horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}
.news-horizontal-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}
.news-horizontal-scroll::-webkit-scrollbar-thumb {
    background: rgba(220, 53, 69, 0.75);
    border-radius: 999px;
}
.news-horizontal-scroll > .news-card-item {
    flex: 0 0 min(320px, 78vw);
    scroll-snap-align: start;
}

/* --- PNG Logo Sizing and Magnetic Perspective Hover Animation --- */
.brand-logo-img {
    display: inline-block !important;
    height: 45px !important;
    width: auto !important;
    min-width: 40px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
    filter: drop-shadow(0 0 0px rgba(220, 53, 69, 0));
}
.navbar-brand:hover .brand-logo-img {
    transform: scale(1.1) perspective(100px) rotateX(4deg) rotateY(12deg);
    filter: drop-shadow(0 4px 10px rgba(220, 53, 69, 0.6));
}

.nav-icon {
    font-size: 0.95rem;
    opacity: 0.9;
}

.navbar-nav .nav-link {
    padding: 0.35rem 0.6rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.navbar-nav {
    gap: 0.15rem !important;
}

.lang-switcher-wrap {
    margin-left: 0.5rem !important;
}


/* --- HEADER Y NAVBAR --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1060;
    background-color: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(10px);
}

.navbar {
    background-color: rgba(10, 10, 10, 0.95) !important;
    border-bottom: 2px solid var(--accent-red);
}

.navbar-collapse {
    flex-grow: 1;
}

.navbar-nav {
    align-items: center;
}

.news-ticker-banner {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    position: relative;
    z-index: 1040;
    background-color: #000000;
    border-top: 1px solid rgba(220, 53, 69, 0.25);
}

.hero-discount-banner {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    border-top: 0;
    border-bottom: 1px solid rgba(220, 53, 69, 0.35);
    background-color: rgba(0, 0, 0, 0.86);
    margin-top: 0;
}

.hero-discount-banner.fixed-under-nav {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    height: auto;
    z-index: auto;
    display: flex;
    align-items: center;
}

.ticker-wrapper {
    display: flex;
    width: max-content;
}

.ticker-track {
    display: flex;
    align-items: center;
    animation: tickerLoop 25s linear infinite;
    padding-right: 2rem;
}

.news-ticker-banner:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

@keyframes tickerLoop {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}


/* --- Audited Architecture Display Rules --- */
#page-root.show-en .lang-es { display: none !important; }
#page-root.show-es .lang-en { display: none !important; }

/* Language Switcher Styling */
.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 3px 8px;
    font-size: 0.75rem;
    line-height: 1.1;
    z-index: 1100;
    position: relative;
    transition: all 0.2s ease;
}
#page-root.show-en .btn-en,
#page-root.show-es .btn-es {
    background-color: var(--accent-red) !important;
    color: var(--text-white) !important;
    border-color: var(--accent-red) !important;
}

/* --- Safe Layout Entry Animations --- */
.fade-in-entry {
    animation: softFadeIn 0.8s ease-out forwards;
}
@keyframes softFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#hero {
    position: relative;
    background-image: none;
    color: var(--text-white);
}

.hero-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    z-index: 0; /* place the img beneath the overlay but above the page background */
}

#hero > .container,
#hero .row {
    position: relative;
    z-index: 2; /* ensure content sits above overlay */
}

.hero-carousel {
    position: relative;
    height: calc(100vh - var(--nav-height) - var(--promo-height));
    min-height: 540px;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 60px;
}

/* Ensure hero content is not covered by fixed header + promo banner */
.hero-carousel.with-fixed-banner {
    padding-top: 0;
}

.hero-slides {
    position: relative;
    height: 100%;
    min-height: 540px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(-6%); /* start slightly left for reveal */
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    z-index: 0;
    overflow: hidden;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.72) 60%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-slide > .container,
.hero-slide .row,
.hero-slide .hero-copy {
    position: relative;
    z-index: 2;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.panorama-viewer {
    position: absolute;
    inset: 5% 4%;
    z-index: 35;
    display: none;
    padding: 1rem;
    background: rgba(5, 5, 5, 0.96);
    border: 1px solid rgba(220, 53, 69, 0.7);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.75);
}
.panorama-viewer.visible { display: block; }
.panorama-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.panorama-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
}
.panorama-stage {
    position: relative;
    height: min(62vh, 520px);
    overflow: hidden;
    background: #050505;
}
.panorama-stage .pnlm-container { background: #050505; }
.panorama-stage .pnlm-controls-container { z-index: 4; }
.panorama-hint {
    margin: 0.75rem 0 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    text-align: center;
}

.hero-copy {
    max-width: 720px;
}

.hero-copy h1 {
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.05;
    max-width: 100%;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .site-header {
        position: fixed;
        top: 0;
    }

    .hero-carousel {
        padding-top: 128px;
        min-height: 92vh;
    }

    .hero-copy {
        max-width: 100%;
    }

    .hero-copy h1 {
        font-size: clamp(1.9rem, 7vw, 2.9rem);
    }

    .hero-slide-image {
        object-position: center center;
        transform: scale(1.02);
    }

    .navbar-nav {
        padding-bottom: 0.5rem;
    }

    .navbar-nav .nav-link {
        justify-content: center;
        padding: 0.6rem 0.8rem;
    }

    .lang-overlay {
        right: 0.75rem;
        top: 4.9rem;
    }
}

.hero-carousel-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: block;
    z-index: 20;
    pointer-events: none; /* allow clicks through except for buttons which enable pointer-events */
}

.hero-carousel-nav {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    background: rgba(10, 10, 10, 0.55);
    color: #ffffff;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    pointer-events: auto; /* re-enable pointer events on buttons */
}
.hero-carousel-nav:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: scale(1.05);
}

/* Position prev/next vertically centered on left and right */
.hero-carousel-nav.hero-prev {
    position: absolute;
    left: 1.5rem; /* left side, centered vertically */
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
}
.hero-carousel-nav.hero-next {
    position: absolute;
    right: 1.5rem; /* right side, centered vertically */
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
}

/* Show arrow icons again and style them */
.hero-carousel-nav i { display: inline-block; font-size: 1.25rem; }
.hero-carousel-nav::before { content: none; }

.hero-carousel-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 2rem;
    display: flex;
    gap: 0.8rem;
    z-index: 2;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-dot.active,
.hero-dot:hover {
    background: var(--accent-red);
    transform: scale(1.15);
}

/* --- Scroll-Triggered Section Animations --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Card Stagger Animation */
.stat-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* --- Layout Utilities & Core Classes --- */
.text-accent { color: var(--accent-red); }
.border-accent { border-color: var(--accent-red) !important; }
.text-muted-custom { color: var(--text-muted) !important; }

/* Service Details Dropdown Animations */
.service-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.4s ease;
    display: block !important;
}
.service-details.d-none {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}
.service-details.show {
    max-height: 300px;
    opacity: 1;
    display: block !important;
}
.service-details ul {
    list-style: none;
    padding-left: 1rem;
}
.service-details li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.service-details li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: bold;
}

.service-toggle {
    transition: all 0.3s ease;
    font-size: 0.85rem;
}
.service-toggle i {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}
.service-toggle.active i {
    transform: rotate(180deg);
}

.estimator-panel,
.estimator-summary {
    background-color: rgba(20, 20, 20, 0.95);
    border-color: rgba(220, 53, 69, 0.25) !important;
}

/* Step styles for estimator funnel */
.est-step { display: none; }
.est-step.active { display: block; }
.est-controls { display:flex; gap:0.5rem; margin-top:1rem; }
.est-controls .btn { min-width: 110px; }

.estimator-addon-wrap {
    transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
    overflow: hidden;
}
.estimator-addon-wrap.d-none {
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
}
.estimator-addon-wrap:not(.d-none) {
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
}

.estimate-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#quote-form-alert {
    min-height: 54px;
    margin-bottom: 1rem;
}

.text-accent {
    color: var(--accent-red);
}

.photo-reveal {
    position: relative;
    overflow: hidden;
}
.photo-reveal img {
    transform: translateY(-25%);
    opacity: 0;
    transition: opacity 0.8s ease;
}
.photo-reveal img {
    transform: translateY(-12%);
    opacity: 1;
    transition: transform 0.2s ease-out;
    will-change: transform;
}

.photo-reveal img.loaded {
    opacity: 1;
}

section {
    padding: 100px 0;
    border-bottom: 1px solid rgba(220, 53, 69, 0.2);
    position: relative;
    clear: both;
}

/* Discount popup */
.discount-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.72);
    z-index: 1200;
}
.discount-popup.visible { display: flex; }
.discount-popup-card {
    position: relative;
    width: min(100%, 460px);
    background: rgba(10,10,10,0.98);
    border: 1px solid rgba(220,53,69,0.35);
    border-radius: 16px;
    padding: 1.4rem 1.3rem 1.2rem;
    box-shadow: 0 16px 40px rgba(0,0,0,0.55);
    color: #fff;
}
.discount-content {
    display: flex;
    gap: 14px;
    align-items: center;
}
.discount-left {
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-right: 1px solid rgba(255,255,255,0.04);
}
.discount-percent {
    font-size: 2.6rem;
    line-height: 1;
    font-weight: 800;
    color: var(--accent-red);
    margin: 6px 0;
}
.discount-percent small { font-size: 0.6rem; margin-left: 6px; font-weight:700; }
.discount-sub { font-size: 0.9rem; color: rgba(255,255,255,0.85); margin:0; text-align:center }
.discount-right { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.discount-panel { display: none; }
.discount-panel:not(.hidden) { display: block; }
.discount-panel .discount-popup-title { font-size: 1rem; margin: 0 0 6px; }
.discount-actions { display:flex; gap:8px; margin-top:8px }

/* show both language panels when both are visible on small screens stacked */
@media (max-width: 560px) {
    .discount-content { flex-direction: column; align-items: stretch; }
    .discount-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.04); padding-bottom: 12px }
    .discount-panel { display: block; }
}
.discount-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.8rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.25rem;
}
.discount-popup-badge {
    display: inline-block;
    margin: 0 0 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(220,53,69,0.18);
    color: #ff7d7d;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.discount-popup-title {
    margin: 0 0 0.65rem;
    font-size: 1.2rem;
    line-height: 1.3;
}
.discount-popup-copy {
    margin: 0;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

/* Language overlay popup */
.lang-overlay {
    position: fixed;
    right: 1rem;
    top: 5.2rem;
    transform: translateY(0);
    background: rgba(10,10,10,0.98);
    border: 1px solid rgba(220,53,69,0.32);
    padding: 0.9rem 1rem;
    border-radius: 8px;
    color: #fff;
    z-index: 1100;
    box-shadow: 0 8px 26px rgba(0,0,0,0.7);
    max-width: 340px;
    display: none;
}

/* Image lightbox for service images */
.image-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1300;
    background: rgba(0,0,0,0.85);
}
.image-lightbox.visible { display: flex; }
.image-lightbox .lightbox-img {
    max-width: 94vw;
    max-height: 92vh;
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.8);
    object-fit: contain;
}
.image-lightbox .lightbox-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.6rem;
}
.allow-zoom { cursor: zoom-in; }
.lang-overlay.visible { display: block; }
.lang-overlay .close-overlay {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.9rem;
    position: absolute;
    top: 6px;
    right: 8px;
}
.lang-overlay .popup-message { margin: 0; font-size: 0.95rem; display: none; }
.lang-overlay .popup-message:not([hidden]) { display: block; }
.lang-overlay .text-accent { font-weight: 700; }

/* Multi-step contact form */
.form-breadcrumbs {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.25rem 0 1rem;
    margin-bottom: 1rem;
    scrollbar-width: thin;
}
.form-crumb {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.58);
    padding: 0.45rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}
.form-crumb.active,
.form-crumb.visited {
    border-color: var(--accent-red);
    color: #fff;
}
.form-crumb:not(.visited):not(.active) { cursor: default; }
.form-crumb.visited { cursor: pointer; }
.form-step { display: none; border: 0; padding: 0; margin: 0; }
.form-step.active { display: block; }
.form-step legend {
    float: none;
    width: 100%;
    color: #fff;
    font-family: var(--title-font);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.form-help { color: var(--text-muted); margin-bottom: 1rem; }
.form-choice-group { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.form-choice-group label,
.service-checklist label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.form-choice-group label {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.4rem;
    padding: 0.55rem 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}
.service-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}
.service-checklist label {
    min-height: 3.1rem;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.4rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
}
.service-checklist label:has(input:checked),
.form-choice-group label:has(input:checked) {
    border-color: var(--accent-red);
    background: rgba(220, 53, 69, 0.12);
    color: #fff;
}
.service-checklist i { color: var(--accent-red); font-size: 1.1rem; }
.media-slide video,
.portfolio-card video {
    background: #050505;
}
.form-step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.5rem;
}
.form-submit { display: none; }
.form-step[data-form-panel="6"].active ~ .form-step-actions .form-next { display: none; }
.form-step[data-form-panel="6"].active ~ .form-step-actions .form-submit { display: inline-flex; }

@media (max-width: 576px) {
    .service-checklist { grid-template-columns: 1fr; }
    .form-step-actions { justify-content: stretch; }
    .form-step-actions .btn { flex: 1; }
}

/* Navigation System Layout */
.navbar {
    background-color: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-red);
    z-index: 1050;
}
.navbar-collapse.position-relative {
    position: relative;
}
.nav-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border: 1px solid rgba(220, 53, 69, 0.9);
    border-radius: 1.2rem;
    box-shadow: 0 0 24px rgba(220, 53, 69, 0.18);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
    will-change: transform, width, height;
    backface-visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}
.navbar-nav {
    position: relative;
    z-index: 2;
}
.navbar-nav .nav-link {
    position: relative;
    z-index: 3;
}
.navbar-nav .nav-link.active-section {
    color: #ffffff !important;
}
.navbar-brand, .nav-link {
    color: var(--text-white) !important;
    position: relative;
    z-index: 1060;
}
.nav-link:hover, .navbar-brand:hover {
    color: var(--accent-red) !important;
}

#collaborators {
    position: relative;
}
.collab-slider {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 24px;
    padding: 1.25rem 0;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 42px rgba(0, 0, 0, 0.28);
}
.collab-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0) 12%, rgba(10, 10, 10, 0) 88%, rgba(10, 10, 10, 0.92));
}
.collab-track {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    min-width: calc(200% + 1px);
    animation: partnerScroll 32s linear infinite;
    will-change: transform;
    position: relative;
    padding: 0 1rem;
}
.collab-slider:hover .collab-track {
    animation-play-state: paused;
}
.collab-item {
    flex: 0 0 170px;
    height: 100px;
    border-radius: 18px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    position: relative;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.collab-name-slider {
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
    padding: 0.8rem 0;
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}
.collab-name-slider::before,
.collab-name-slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10%;
    z-index: 1;
    pointer-events: none;
}
.collab-name-slider::before {
    left: 0;
    background: linear-gradient(90deg, #0a0a0a, transparent);
}
.collab-name-slider::after {
    right: 0;
    background: linear-gradient(270deg, #0a0a0a, transparent);
}
.collab-name-slider:hover .collab-name-track {
    animation-play-state: paused;
}
.collab-name-track {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: max-content;
    padding: 0 1rem;
    animation: partnerScroll 52s linear infinite;
    will-change: transform;
}
.collab-name {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(220, 53, 69, 0.28);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(220, 53, 69, 0.08));
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.25;
    text-align: center;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
.collab-name:hover {
    border-color: rgba(220, 53, 69, 0.8);
    background-color: rgba(220, 53, 69, 0.14);
    color: #fff;
    transform: translateY(-2px);
}
@keyframes partnerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.btn-outline-accent {
    color: var(--text-white);
    border: 2px solid var(--accent-red);
    background: transparent;
    position: relative;
    z-index: 1060;
    transition: all 0.3s ease;
}
.btn-outline-accent:hover {
    background-color: var(--accent-red);
    color: var(--text-white);
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.5);
}

.custom-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.custom-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.affiliate-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.75rem;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(220, 53, 69, 0.75) rgba(255, 255, 255, 0.06);
}
.affiliate-track::-webkit-scrollbar {
    height: 8px;
}
.affiliate-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}
.affiliate-track::-webkit-scrollbar-thumb {
    background: rgba(220, 53, 69, 0.75);
    border-radius: 999px;
}
.affiliate-item {
    flex: 0 0 min(320px, 80vw);
    scroll-snap-align: start;
}
.affiliate-card {
    display: block;
    padding: 1.35rem;
    border-radius: 1.1rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(220,53,69,0.08));
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-white);
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.affiliate-card:hover {
    transform: translateY(-4px);
    border-color: rgba(220, 53, 69, 0.7);
    box-shadow: 0 12px 30px rgba(220, 53, 69, 0.16);
    color: var(--text-white);
}
.affiliate-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 53, 69, 0.16);
    color: var(--accent-red);
    font-size: 1.25rem;
    margin-bottom: 0.9rem;
}
.affiliate-link-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-red);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.media-placeholder {
    background: linear-gradient(45deg, #141414, #222);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--accent-red);
}

.media-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    touch-action: pan-y;
    margin-top: 0.75rem;
}
.media-track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
}
.media-slide {
    min-width: 100%;
    display: block;
}
.media-slide img,
.media-slide video {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 0.9rem;
}
.media-carousel-controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
    pointer-events: none;
}
.media-nav {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.8);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: background 0.2s ease, transform 0.2s ease;
}
.media-nav:hover {
    background: rgba(220, 53, 69, 0.95);
    transform: scale(1.05);
}
.media-dots {
    position: absolute;
    left: 50%;
    bottom: 0.65rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.35rem;
}
.media-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    padding: 0;
}
.media-dot.active {
    background: var(--accent-red);
}

/* Footer Icon Hover Effects */
.footer-icon-link {
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-block;
}
.footer-icon-link:hover {
    color: var(--accent-red) !important;
    transform: translateY(-3px);
}

/* --- Forzar Color Blanco en los Números del Contador Animado --- */
.metric-container h3,
.metric-container .counter-value,
.metric-container .text-accent {
    color: #ffffff !important; /* Fuerza el color blanco sobre el fondo oscuro */
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1); /* Agrega un sutil reflejo premium */
}

