/* === VARIABLES & RESET === */
:root {
    --bg-main: #050505;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;

    /* Neon Accents */
    --accent-primary: #6366f1;
    /* Indigo */
    --accent-glow: rgba(99, 102, 241, 0.6);
    --accent-secondary: #ec4899;
    /* Pink */
    --accent-tertiary: #10b981;
    /* Emerald */

    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --glass: blur(20px);

    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
}

/* === BACKGROUND EFFECTS === */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: floating 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-secondary), transparent 70%);
    animation-delay: -5s;
}

@keyframes floating {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* === UTILITIES === */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s var(--easing);
}

ul {
    list-style: none;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 5, 5, 0.7);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.dot {
    color: var(--accent-primary);
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    font-weight: 500;
}

.nav-link span {
    color: var(--accent-primary);
    font-size: 0.8em;
    margin-right: 5px;
}

.nav-link:hover {
    color: var(--text-primary);
}

.btn-cotizar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border: 1px solid var(--card-border);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-cotizar:hover {
    background: var(--text-primary);
    color: var(--bg-main);
    border-color: var(--text-primary);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: white;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    /* Full screen min-height */
    /* height: 100vh;  Removed fixed height to prevent overlap on smaller screens */
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    padding-bottom: 120px;
    /* Space for scroll indicator */
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    /* Massive Heading */
    line-height: 0.9;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.reveal-text .line {
    display: block;
    overflow: hidden;
    /* Animation handled by JS/CSS class */
}

.indent {
    margin-left: 80px;
    color: var(--text-secondary);
}

.hero-description {
    max-width: 500px;
    margin-left: auto;
    /* Align right */
}

.hero-description p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-primary {
    position: relative;
    padding: 16px 32px;
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--text-primary);
    font-weight: 600;
    overflow: hidden;
    z-index: 1;
    display: inline-block;
}

.btn-primary .btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-primary);
    z-index: -1;
    transition: width 0.4s var(--easing);
}

.btn-primary:hover .btn-bg {
    width: 100%;
    border: none;
}

.btn-primary:hover {
    border-color: transparent;
}

.btn-text {
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-text:hover {
    color: var(--accent-tertiary);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
}

.hero-scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #fff, transparent);
}

/* === MARQUEE === */
.marquee-section {
    padding: 20px 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    background: var(--bg-secondary);
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.marquee-content span {
    margin: 0 20px;
}

.marquee-content .separator {
    color: var(--accent-primary);
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* === BENTO GRID SERVICES === */
.services {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 60px;
}

.subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.1;
}

.accent-text {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-secondary);
    /* Alternative gradient text if preferred */
    /* background: linear-gradient(90deg, #fff, #666); -webkit-background-clip: text; -webkit-text-fill-color: transparent; */
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    /* Removed fixed rows to allow auto sizing */
}

/* Grid Spanning - Reset for auto-flow mostly, desktop query below */
.large {
    grid-column: auto;
}

.medium {
    grid-column: auto;
}

.tall {
    grid-row: auto;
}

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

    .large {
        grid-column: span 2;
    }

    .tall {
        grid-row: span 2;
    }
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    transition: all 0.4s var(--easing);
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Card Images - Layout Top */
.card-image {
    position: relative;
    width: 100%;
    height: auto;
    /* Allow image to define height */
    z-index: 0;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    opacity: 1;
    /* Fully visible */
    transition: transform 0.6s var(--easing);
}

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

.card-overlay {
    display: none;
    /* Removed as requested */
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0) 0%, rgba(5, 5, 5, 1) 100%);
    flex-grow: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-card:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.card-bg-shape {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.bento-card:hover .card-bg-shape {
    opacity: 0.5;
}

/* Grid Spanning */
.large {
    grid-column: span 2;
}

.medium {
    grid-column: span 1;
}

.tall {
    grid-row: span 2;
}

/* Grid item content */
.icon-box {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.bento-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.price {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: 0.3s;
}

.btn-icon:hover {
    background: var(--text-primary);
    color: var(--bg-main);
    border-color: var(--text-primary);
}

/* Button Whatsapp in Cards */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--card-border);
    transition: all 0.3s var(--easing);
}

.btn-whatsapp:hover {
    background: #25D366;
    /* WhatsApp Green */
    color: white;
    border-color: #25D366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

.btn-whatsapp i {
    font-size: 1.1em;
}

/* Price Label "Desde" */
.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Quote Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #0f1116;
    border: 1px solid var(--card-border);
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent-primary);
}

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

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.3s;
}

.btn-submit:hover {
    opacity: 0.9;
}

/* Feature List inside cards */
.feature-list li {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.feature-list li::before {
    content: "•";
    color: var(--accent-primary);
    margin-right: 10px;
}

/* === APPS SECTION === */
.apps-section {
    padding: 80px 0;
    border-top: 1px solid var(--card-border);
    background: var(--bg-secondary);
}

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

.badge-new {
    background: var(--accent-tertiary);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 10px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 20px 0 40px;
    max-width: 500px;
}

.pricing-card-dark {
    background: #000;
    border: 1px solid var(--card-border);
    padding: 40px;
    position: relative;
}

.pricing-card-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-tertiary);
}

.price-header {
    font-family: var(--font-heading);
    margin-bottom: 30px;
}

.price-header .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.price-header .amount {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.price-header .period {
    color: var(--text-secondary);
    display: block;
    margin-top: 5px;
}

.check-list li {
    margin-bottom: 15px;
    color: #ccc;
    display: flex;
    gap: 10px;
    align-items: center;
}

.check-list i {
    color: var(--accent-tertiary);
    font-size: 0.8rem;
}

.full-width {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    border-color: var(--text-primary);
}

/* App Visual */
.apps-visual {
    position: relative;
}

.phone-wrapper {
    position: relative;
    width: 300px;
    margin: 0 auto;
    perspective: 1000px;
}

.phone-frame {
    width: 300px;
    height: 600px;
    border: 12px solid #333;
    border-radius: 40px;
    background: #000;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.5s ease-out;
}

.phone-wrapper:hover .phone-frame {
    transform: rotateY(0deg) rotateX(0deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #111, #222);
    border-radius: 28px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Abstract UI inside phone */
.ui-header {
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
}

.ui-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.ui-item {
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.ui-chart {
    height: 150px;
    background: linear-gradient(to top, rgba(99, 102, 241, 0.2), transparent);
    border-bottom: 2px solid var(--accent-primary);
    border-radius: 0 0 10px 10px;
}

.floating-notif {
    position: absolute;
    left: 20px;
    right: -40px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float-note 4s infinite ease-in-out;
}

.notif-1 {
    bottom: 120px;
    animation-delay: 0s;
}

.notif-2 {
    bottom: 70px;
    animation-delay: 2s;
    right: 10px;
    left: auto;
}

@keyframes float-note {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* === CUSTOM PROJECT === */
.custom-section {
    padding: 100px 0;
    text-align: center;
}

.custom-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.custom-section p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.btn-outline-large {
    display: inline-block;
    padding: 20px 40px;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-outline-large:hover {
    background: var(--text-primary);
    color: var(--bg-main);
    transform: scale(1.05);
}

/* === FOOTER === */
.footer {
    padding: 80px 0 20px;
    border-top: 1px solid var(--card-border);
    background: #000;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.logo-footer {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    display: block;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.contact-link {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.contact-link:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* === ANIMATIONS (Utility Classes) === */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--easing), transform 0.8s var(--easing);
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s var(--easing), transform 0.8s var(--easing);
}

.fade-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 1s var(--easing), transform 1s var(--easing);
}

.fade-in-right.active {
    opacity: 1;
    transform: translateX(0);
}


/* === RESPONSIVE === */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        padding-top: 100px;
        transition: 0.4s;
    }

    .nav.active {
        right: 0;
    }

    .hero h1 {
        font-size: 2.3rem;
        /* Reduced to fit mobile screens better */
        word-break: break-word;
        /* Prevent long words from overflowing */
        hyphens: auto;
    }

    .indent {
        margin-left: 0;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .large,
    .medium,
    .tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .apps-visual {
        display: none;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .hero-cta {
        align-items: center;
        /* Center align CTA buttons on mobile */
    }
}

/* === TRUST / EDUCATIONAL SECTION === */
.trust-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

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

.trust-header h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.trust-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff4d4d;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    color: #ff4d4d;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
}

.channel-btn:hover {
    color: #ff6b6b;
    border-color: #ff6b6b;
    gap: 15px;
}

/* Video Carousel */
/* Video Carousel Animation */
.video-carousel-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.video-carousel {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    width: max-content;
    /* Ensure width fits all cards */
    animation: scrollCarousel 40s linear infinite;
    /* Auto Scroll Animation */
}

/* Pause animation on hover so user can click */
.video-carousel:hover {
    animation-play-state: paused;
}

@keyframes scrollCarousel {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
        /* Scroll halfway because content is duplicated */
    }
}

.video-card {
    cursor: pointer;
    flex: 0 0 320px;
    /* Card Width */
    background: #121212;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: block;
}

/* Video Modal Specifics */
.video-modal-content {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    max-width: 900px;
    width: 95%;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Close button to right */
}

.video-frame-container {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 4px solid transparent;
    background: #000;

    /* "Bonito con marcos de colores" - Animated Gradient Border */
    background: linear-gradient(#000, #000) padding-box,
        linear-gradient(45deg, #FF0000, #FF7300, #FFFB00, #48FF00, #00FFD5, #002BFF, #7A00FF, #FF00C8, #FF0000) border-box;
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.5);
    /* Glow */
}

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

.video-modal-content .close-modal {
    position: relative;
    top: -10px;
    right: -10px;
    color: white;
    background: rgba(255, 0, 0, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.video-modal-content .close-modal:hover {
    background: red;
    transform: scale(1.1);
}



.video-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-card:hover .thumbnail-wrapper img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

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

.video-info {
    padding: 20px;
}

.video-info h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 600;
}

.video-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive adjustments for Carousel */
@media (max-width: 768px) {
    .trust-section {
        padding: 60px 0;
    }

    .trust-header h2 {
        font-size: 2.2rem;
    }

    .video-card {
        flex: 0 0 280px;
    }
}