/* --- Reseteo básico y variables de color --- */
:root {
    --main-bg-color: #010101;
    --section-alt-bg-color: #1f1f1f;
    --main-text-color: #e8e8e8;
    --hero-title-color: #FFFFFF;
    --hero-subtitle-color: #b0b0b0;
    --logo-blue: #328eb3;
    --logo-blue-rgb: 50, 139, 179;
    --logo-red: #d11523;
    --logo-red-darker: #a70f1a;
    --text-on-accent-color: #FFFFFF;
    --font-titles: 'Lato', 'Montserrat', sans-serif;
    --font-navigation: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
    --font-feature-box: "Lato", sans-serif;
    --font-exo: 'Exo 2', sans-serif;
    --font-roboto: 'Roboto', sans-serif;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
    line-height: 1.7;
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* --- Cabecera y Navegación --- */
.site-header {
    background-image: url('../img/header-bg.webp');
    background-color: #000000;
    background-size: cover;
    background-position: center 75%;
    background-repeat: no-repeat;
    height: 90px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
    transition: height 0.3s ease;
}

.logo-container { flex-shrink: 0; }
.logo-container #site-logo {
    max-height: 80px;
    width: auto;
    display: block;
    transition: max-height 0.3s ease;
}

.main-navigation {
    margin-left: auto;
    display: flex;
    align-items: center;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}
.main-navigation li { margin-left: 20px; }
.main-navigation ul li a {
    text-decoration: none;
    font-family: var(--font-navigation) !important;
    font-weight: 700 !important;
    font-size: 0.95em !important;
    padding: 10px 5px !important;
    position: relative;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9) !important;
    letter-spacing: 0.5px;
    color: var(--main-text-color) !important;
    white-space: nowrap;
}
.main-navigation ul li a:hover { color: var(--logo-blue) !important; }
.main-navigation ul li a.nav-action-link { color: var(--logo-red) !important; }
.main-navigation ul li a.nav-action-link:hover { color: var(--logo-red-darker) !important; }
.main-navigation ul li a.nav-cta-button {
    background-color: var(--logo-red);
    color: var(--text-on-accent-color) !important;
    padding: 8px 18px !important;
    border-radius: 5px;
    font-family: var(--font-navigation) !important;
    font-weight: 700;
    font-size: 0.85em !important;
    margin-left: 15px;
    letter-spacing: 0.5px;
    text-shadow: none !important;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}
.main-navigation ul li a.nav-cta-button:hover {
    background-color: var(--logo-red-darker);
    color: var(--text-on-accent-color) !important;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}
.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--main-text-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}
.menu-toggle span:not(:last-child) { margin-bottom: 6px; }

/* --- Sección Héroe --- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 90px;
    box-sizing: border-box;
    overflow: hidden;
}
.hero-video-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}
#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 2;
}
.hero-content-container {
    position: relative;
    z-index: 3;
}
.hero-text-content h1 {
    font-family: var(--font-titles);
    font-size: 3em;
    color: var(--hero-title-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 900;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}
.hero-text-content h2 {
    font-size: 1.3em;
    color: var(--hero-subtitle-color);
    margin-bottom: 35px;
    font-weight: 400;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}
#countdown-container {
    background-color: rgba(10, 10, 10, 0.5);
    padding: 20px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.countdown-title {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: var(--logo-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
#countdown-timer {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--hero-title-color);
    letter-spacing: 3px;
}
.cta-button {
    display: inline-block;
    background-color: var(--logo-red);
    color: var(--text-on-accent-color);
    padding: 18px 30px;
    font-size: 1.25em;
    font-family: var(--font-titles);
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.cta-button:hover,
.cta-button:focus {
    background-color: var(--logo-red-darker);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* --- Secciones Generales --- */
section {
    padding: 80px 0;
}
.section-title {
    font-family: var(--font-titles);
    font-size: 2.5em;
    color: var(--hero-title-color);
    margin: 0 auto 40px auto;
    text-align: center;
    max-width: 800px;
}
#features-section {
    background-color: var(--section-alt-bg-color);
}
#features-section .section-title { margin-bottom: 50px; }
.feature-video-container {
    max-width: 853px;
    margin: 0 auto 60px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.video-responsive {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}
.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.features-columns-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.feature-box {
    background-color: var(--main-bg-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: var(--font-feature-box);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}
.feature-box .feature-title {
    font-family: var(--font-titles);
    font-size: 1.3em;
    color: var(--logo-blue);
    margin-bottom: 10px;
}
.feature-box p {
    font-size: 0.9em;
    line-height: 1.6;
    color: var(--hero-subtitle-color);
    flex-grow: 1;
}

#interactive-demo {
    text-align: center;
}
#interactive-demo .section-title { margin-bottom: 15px; }
#interactive-demo .section-subtitle {
    font-size: 1.1em;
    color: var(--hero-subtitle-color);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.simulator-area {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid #333;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    background-color: #000;
    overflow: hidden;
}
.simulator-bg-image {
    display: block;
    width: 100%;
    height: auto;
}
.rocketbabel-device-on-simulator {
    position: absolute;
    width: 51%;
    bottom: -12.8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.device-simulator-image {
    width: 100%;
    height: auto;
    display: block;
}
.sim-button-hotspot {
    position: absolute;
    background-color: rgba(255, 223, 0, 0);
    border-radius: 20%;
    cursor: pointer;
    transition: background-color 0.1s ease-out;
}
#sim-chat-log-container {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 40%;
    max-height: 160px;
    background-color: transparent;
    padding: 10px 15px;
    z-index: 5;
    text-align: left;
    font-size: 13px;
}
#sim-chat-log-container p {
    margin: 0 0 5px 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.4;
    word-wrap: break-word;
    color: #dfe3f0;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 2px 2px 3px #000, 2px 2px 4px #000, 2px 2px 2px #000;
}
#interactive-demo .note {
    font-size: 0.85em;
    color: #777;
    margin-top: 40px;
}

#preorder-section {
    background-color: var(--section-alt-bg-color);
}
#preorder-section .section-title {
    text-align: center;
    margin-bottom: 20px;
}
#preorder-section .preorder-intro {
    text-align: center;
    font-size: 1.1em;
    color: var(--hero-subtitle-color);
    max-width: 750px;
    margin: 0 auto 50px auto;
    line-height: 1.8;
}
.product-showcase-preorder {
    max-width: 450px;
    margin: 0 auto 50px auto;
}
.product-showcase-preorder img {
    width: 100%;
    display: block;
}
.preorder-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 960px;
    margin: 0 auto 60px auto;
}
.preorder-column h3 {
    font-family: var(--font-titles);
    font-size: 1.5em;
    color: var(--logo-blue);
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--logo-blue);
    padding-bottom: 10px;
    display: inline-block;
}
.preorder-column p {
    margin-bottom: 20px;
    font-size: 0.95em;
    line-height: 1.7;
}
.preorder-column strong {
    color: var(--hero-subtitle-color);
    font-weight: 700;
}
.shipping-info {
    font-size: 1em;
    padding: 20px;
    background-color: rgba(var(--logo-blue-rgb), 0.15);
    border-left: 5px solid var(--logo-blue);
    border-radius: 0 6px 6px 0;
    margin-top: 25px;
    line-height: 1.6;
}
.shipping-info strong { color: var(--logo-blue); }

#preorder-form {
    max-width: 750px;
    margin: 50px auto 0 auto;
    background-color: var(--main-bg-color);
    padding: 35px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}
.form-section { margin-bottom: 35px; }
.form-section:last-child { margin-bottom: 0; }
.form-section h3 {
    font-family: var(--font-titles);
    font-size: 1.7em;
    color: var(--logo-blue);
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}
.form-section p.form-step-description {
    font-size: 0.9em;
    color: var(--hero-subtitle-color);
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.5;
}
.phrase-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}
#preorder-form input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 18px;
    border: 1px solid #555;
    background-color: #1e1e1e;
    color: var(--main-text-color);
    border-radius: 6px;
    box-sizing: border-box;
    font-family: var(--font-body);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#preorder-form input:focus {
    outline: none;
    border-color: var(--logo-blue);
    box-shadow: 0 0 0 3px rgba(var(--logo-blue-rgb), 0.3);
}

.price-and-payment {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 35px;
    margin-top: 20px;
}
.price-display p:first-child { font-size: 1.1em; }
.price-display .price-amount {
    font-size: 3em;
    font-weight: 900;
    color: var(--logo-red);
    margin: 8px 0;
    line-height: 1;
}
.price-display .price-note {
    font-size: 0.9em;
    color: #999;
}
.form-submit-button {
    margin-top: 25px;
    min-width: 280px;
    border: none;
}
#preorder-submit-button:focus, 
#preorder-submit-button:active,
#preorder-submit-button:focus-visible {
    outline: none;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* --- Footer --- */
footer {
    border-top: 1px solid #333;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
    background-color: #1f2228;
}
.footer-legal-nav { margin-top: 15px; }
.footer-legal-nav a {
    color: #999;
    text-decoration: none;
    font-size: 0.85em;
    margin: 0 12px;
    transition: color 0.3s ease;
    display: inline-block;
    margin-bottom: 5px;
}
.footer-legal-nav a:hover { color: var(--logo-blue); }

/* --- Botón Flotante --- */
.back-to-luxfatum-fab {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background-color: var(--logo-red);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    font-size: 24px;
    text-decoration: none;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
.back-to-luxfatum-fab:hover {
    background-color: var(--logo-red-darker);
    transform: scale(1.1);
}

.post-purchase-config {
    max-width: 750px;
    margin: 80px auto 0 auto;
    padding: 30px 40px;
    border-top: 2px solid var(--logo-blue);
    text-align: center;
    background-color: #111;
    border-radius: 0 0 10px 10px;
}
.post-purchase-config h3 {
    font-family: var(--font-titles);
    font-size: 1.8em;
    color: var(--hero-title-color);
    margin-top: 0;
    margin-bottom: 15px;
}
.post-purchase-config p {
    color: var(--hero-subtitle-color);
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 25px;
}
.post-purchase-config .config-button {
    background-color: var(--logo-blue);
    box-shadow: 0 4px 10px rgba(var(--logo-blue-rgb), 0.2);
}
.post-purchase-config .config-button:hover {
    background-color: #2a7394;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(var(--logo-blue-rgb), 0.3);
}

/*
=====================================================
--- INICIO DE LOS ESTILOS RESPONSIVE ---
=====================================================
*/

@media (max-width: 992px) {
    body { font-size: 15px; }
    section { padding: 60px 0; }
    .section-title { font-size: 2.2em; }

    .site-header {
        padding: 0 20px;
        height: 70px;
    }
    .logo-container #site-logo { max-height: 55px; }
    
    .menu-toggle { display: block; }
    
    .main-navigation {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(15, 15, 15, 0.65);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    .main-navigation.active {
        transform: translateX(0);
    }
    .main-navigation ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    .main-navigation li {
        margin: 15px 0;
        width: 100%;
    }
    .main-navigation ul li a {
        font-size: 1.4em !important;
        display: block;
        padding: 15px 0 !important;
    }
    .main-navigation ul li a.nav-cta-button {
        display: inline-block;
        width: auto;
        padding: 12px 25px !important;
        margin-top: 15px;
    }

    .features-columns-wrapper { grid-template-columns: 1fr 1fr; }
    .preorder-details { grid-template-columns: 1fr; }
    #preorder-form { padding: 25px 20px; }
}

@media (max-width: 768px) {
    body { font-size: 14px; }
    section { padding: 50px 0; }
    .section-title { font-size: 2em; }
    .container { width: 95%; }

    #hero {
        min-height: 90vh;
        padding-bottom: 30px;
    }
    .hero-text-content h1 { font-size: 2.2em; }
    .hero-text-content h2 { font-size: 1em; }
    #countdown-timer { font-size: 1.6em; }
    .cta-button {
        padding: 15px 25px;
        font-size: 1.1em;
    }
    
    .features-columns-wrapper { grid-template-columns: 1fr; }

    #sim-chat-log-container {
        width: auto;
        max-width: 60%;
        font-size: 11px;
        top: 15px;
        left: 15px;
    }
    #sim-chat-log-container p {
        font-size: 11px;
        word-break: break-word;
    }
    .rocketbabel-device-on-simulator {
        width: 60%;
        bottom: -15%;
    }

    .preorder-column h3 { font-size: 1.3em; }
    .price-display .price-amount { font-size: 2.5em; }

    .cookie-content-container { flex-direction: column; gap: 15px; text-align: center; }
    .cta-button-cookie { width: 80%; max-width: 250px; }
    
    .back-to-luxfatum-fab {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 20px;
        left: 20px;
    }
}