@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    --primary-color: #4B96D1;
    --secondary-color: #FFFFFF;
    --tertiary-color: #565656;
    --dark-bg: #111111;
    --text-dark: #222222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--dark-bg);
    overflow-x: hidden;
    overflow-y: auto;
}

.hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Permite crecer si el contenido es mucho */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    overflow: hidden;
}

/* Background Grid Animation */
.background-animation {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 150%;
    height: 200%;
    transform: rotate(-15deg);
    display: flex;
    flex-direction: column;
    z-index: 1;
    opacity: 0.75;
    /* Más claridad para el fondo */
}

.grid-row {
    display: flex;
    width: max-content;
    animation: scrollLeft 10s linear infinite alternate;
    margin-bottom: 20px;
}

.grid-row.reverse {
    animation: scrollRight 10s linear infinite alternate;
}

.grid-row img {
    width: 480px;
    /* 320px * 1.5 */
    height: 315px;
    /* 210px * 1.5 */
    object-fit: cover;
    border-radius: 12px;
    margin-right: 20px;
    /* Instead of gap, for perfect 50% translation math */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    filter: brightness(0.8) contrast(1.1);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.grid-row img:hover {
    filter: brightness(1) contrast(1.1);
    transform: scale(1.02);
}

@keyframes scrollLeft {
    0% {
        transform: translateX(-500px); /* Corte imagen 1 y 2 */
    }

    100% {
        transform: translateX(calc(100vw - 3500px)); /* Corte imagen 7 y 8 (7*500) */
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(calc(100vw - 3500px));
    }

    100% {
        transform: translateX(-500px);
    }
}

/* Content Overlay */
.content-overlay {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    padding: 0px 20px;
}

.logo-container {
    margin-bottom: 50px;
}

.logo {
    max-height: 180px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.cards-container {
    display: flex;
    flex-direction: row; /* Horizontal en desktop */
    gap: 30px;
    width: 100%;
    justify-content: center;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .cards-container {
        flex-direction: column; /* Vertical en tablets y móviles */
        align-items: center;
    }
    
    .hero-wrapper {
        height: auto;
        padding: 80px 20px;
    }

    .text-card, .action-card {
        width: 100%;
        max-width: 600px; /* Tamaño más cómodo para lectura en una columna */
    }
}

@media (max-width: 768px) {
    .text-card h1 {
        font-size: 2.2rem;
    }
    
    .action-card h2 {
        font-size: 1.8rem;
    }

    .text-card, .action-card {
        padding: 30px 25px;
    }

    .logo {
        max-height: 120px;
    }

    .background-animation {
        transform: rotate(-10deg) scale(1.8);
    }

    .grid-row {
        animation: scrollLeftMobile 45s linear infinite alternate;
    }
    
    .grid-row.reverse {
        animation: scrollRightMobile 45s linear infinite alternate;
    }

    .grid-row img {
        width: 300px;
        height: 200px;
    }
}

@keyframes scrollLeftMobile {
    0% {
        transform: translateX(-320px); /* Corte imagen 1 y 2 en móvil */
    }

    100% {
        transform: translateX(calc(100vw - 2240px)); /* Corte imagen 7 y 8 en móvil (7*320) */
    }
}

@keyframes scrollRightMobile {
    0% {
        transform: translateX(calc(100vw - 2240px));
    }

    100% {
        transform: translateX(-320px);
    }
}

.text-card,
.action-card {
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-card {
    flex: 6; /* 60% */
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.text-card h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--secondary-color);
    font-weight: 800;
    letter-spacing: -1px;
}

.text-card p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.action-card {
    flex: 4; /* 40% */
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.action-card h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 800;
    color: var(--tertiary-color);
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.signup-form input {
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 1.05rem;
    outline: none;
    background-color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.signup-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(75, 150, 209, 0.2);
}

.signup-form button {
    padding: 18px 20px;
    border-radius: 12px;
    border: none;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.signup-form button:hover {
    background-color: #3d84ba;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.signup-form button:active {
    transform: translateY(0);
}

.terms {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
    text-align: center;
}

/* Social Media Section */
.social-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin: 20px 0;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, filter 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    filter: brightness(1.1);
}

/* Brand Colors */
.social-btn.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-btn.facebook { background-color: #1877f2; }
.social-btn.youtube { background-color: #ff0000; }
.social-btn.x-twitter { background-color: #000000; }
.social-btn.kick { 
    background-color: #53fc18; 
    color: #FFFFFF; 
    font-weight: 900;
    font-size: 1.8rem;
    font-family: 'Inter', sans-serif;
} /* Kick's signature green with white K */

@media (max-width: 768px) {
    .social-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

.site-footer {
    background-color: var(--tertiary-color);
    color: var(--secondary-color);
    padding: 30px 20px;
    width: 100%;
    position: relative;
    z-index: 20;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}