:root {
    --primary-color: #0D6EFF;
    --background-color: #0a0a0a;
    --text-color: #ffffff;
    --secondary-text-color: #a0a0a0;
    --focus-ring-color: #0d6eff80; /* Color para el anillo de foco */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow: hidden; 
}

header {
    padding: 20px 50px;
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.honeypot {
    position: absolute;
    left: -5000px;
    opacity: 0;
}

.header-logo-icon {
    height: 40px;
    width: auto;
}

.header-logo-text {
    font-size: 28px;
    font-weight: 900;
    margin: 0;
}

.main-container {
    display: flex;
    height: calc(100vh - 90px);
}

.left-panel {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
}

.content {
    max-width: 550px;
}

#dynamic-headline {
    position: relative;
    min-height: 180px; 
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.headline-text {
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.25;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    position: absolute;
    width: 100%;
}

.headline-text.active {
    opacity: 1;
    position: relative;
}

.headline-text .highlight {
    color: var(--primary-color);
}

.content .subtitle {
    font-size: 18px;
    color: var(--secondary-text-color);
    line-height: 1.7;
    margin-bottom: 30px;
}

#signup-form {
    display: flex;
    flex-direction: column;
}

#email-input {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #1a1a1a;
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#email-input:focus,
#email-input:focus-visible {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--focus-ring-color);
}

#submit-button {
    padding: 15px;
    border-radius: 8px;
    border: none;
    background-color: var(--primary-color);
    color: var(--text-color);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

#submit-button:hover {
    background-color: #0b5ed7;
}

#submit-button:focus,
#submit-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--focus-ring-color);
}

.trust-text {
    font-size: 14px;
    color: var(--secondary-text-color);
    margin-top: 15px;
}

#response-message {
    margin-top: 10px;
    font-weight: bold;
    min-height: 1.2em;
}

.right-panel {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.floating-logo {
    position: absolute;
    width: 200px;
    height: auto;
    top: 15%; 
    left: 15%;
    opacity: 0.8;
    filter: drop-shadow(0 0 20px rgba(13, 110, 255, 0.5));
    animation: float 6s ease-in-out infinite;
    z-index: 5;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -15px) rotate(5deg); }
    66% { transform: translate(-10px, 10px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background-color: #111;
    border-radius: 40px;
    border: 10px solid #222;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.video-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(100%); 
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.carousel-video.active {
    transform: translateY(0%);
    z-index: 2;
}

.carousel-video.exiting {
    transform: translateY(-100%);
    z-index: 1;
}

.brand-tagline {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(5px);
    padding: 10px 15px;
    border-radius: 10px;
    z-index: 10;
}

@media (max-width: 1100px) {
    .left-panel {
        padding: 0 4%;
    }
    .floating-logo {
        width: 150px;
        top: 10%;
        left: 10%;
    }
}

@media (max-width: 900px) {
    body {
        overflow: auto;
    }
    
    header {
        padding: 20px;
    }

    .main-container {
        flex-direction: column;
        height: auto;
    }

    .left-panel, .right-panel {
        width: 100%;
        padding: 40px 20px;
        text-align: center;
    }

    .content {
        max-width: 100%;
    }

    #dynamic-headline {
        min-height: 140px;
    }
    
    #signup-form {
        align-items: center;
    }

    #email-input, #submit-button {
        width: 100%;
        max-width: 400px;
    }

    .right-panel {
        padding-top: 0;
    }

    .floating-logo {
        width: 100px;
        top: -20px;
        left: 5%;
    }

    .phone-mockup {
        margin: 0 auto;
        width: 250px;
        height: 500px;
    }

    .brand-tagline {
        position: relative;
        margin: 20px auto 0;
        bottom: auto;
        right: auto;
        display: inline-block;
    }
}