:root {
    --primary: #FFD700;
    --primary-glow: rgba(255, 215, 0, 0.3);
    --secondary: #FE4C33;
    --accent: #FF4D4D;
    --bg-dark: #0B0F19;
    --bg-darker: #05070A;
    --text-light: #F0F0F0;
    --text-muted: #A0A0A0;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

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

.section-tag {
    display: inline-block;
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.text-center {
    text-align: center;
}

/* --- Loader --- */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--glass);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(15px);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo a {
    text-decoration: none;
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
    /* Reducido para dar protagonismo al logo */
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    color: var(--primary);
}

.nav-logo-img {
    height: 180px;
    /* Tamaño máximo para un impacto total */
    width: auto;
    filter: drop-shadow(0 0 15px var(--primary-glow));
    transition: var(--transition);
}

.navbar.scrolled .nav-logo-img {
    height: 80px;
    /* Se reduce un poco al hacer scroll para no tapar contenido */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    color: var(--bg-dark) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700 !important;
    opacity: 1 !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.6;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 7, 10, 0.9) 0%, rgba(11, 15, 25, 0.7) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
}

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

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 5px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.sub-highlight {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-style: italic;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary-outline:hover {
    background: white;
    color: var(--bg-dark);
    border-color: white;
}

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

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    background: white;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0;
    }
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--bg-darker);
    padding: 3rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Sections Common --- */
section {
    padding: 8rem 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-2-rev {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* --- Innovation Section --- */
.roulette-visual-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.roulette-visual-placeholder i {
    font-size: 15rem;
    color: var(--primary);
    opacity: 0.8;
    animation: rotate 20s linear infinite;
}

.glow-circle {
    position: absolute;
    width: 80%;
    height: 80%;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.1;
    }
}

.innovation-img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 0 30px var(--primary-glow));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

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

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.feature-list i {
    color: var(--primary);
}

/* --- Products Showcase --- */
.products {
    background: var(--bg-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.product-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-item:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.product-img {
    width: 90%;
    height: auto;
    filter: drop-shadow(0 0 20px var(--primary-glow));
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
}

.model-name {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 0.5rem 1rem;
    font-weight: 800;
    font-size: 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.product-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.product-info p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

/* Scroll Animations */
.scroll-animate-rotate {
    transform: rotate(-15deg) scale(0.8);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.active-reveal .scroll-animate-rotate {
    transform: rotate(0deg) scale(1.1);
    opacity: 1;
}

.reveal-up {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s ease-out;
}

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

/* --- Features Grid --- */
.features {
    background: var(--bg-darker);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--glass);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

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

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

/* --- Video Showcase --- */
.video-showcase {
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.video-container {
    max-width: 900px;
    margin: 4rem auto 0;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--glass-border);
}

.showcase-video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.video-overlay-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 50%, rgba(11, 15, 25, 0.4) 100%);
    pointer-events: none;
}

/* --- Analytics Showcase --- */
.dashboard-preview {
    background: #1a1f2e;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.dash-header {
    height: 40px;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--glass-border);
}

.dash-body {
    padding: 2rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: calc(100% - 40px);
    gap: 10px;
}

.dash-bar {
    width: 40px;
    background: linear-gradient(to top, var(--primary), var(--secondary));
    border-radius: 4px 4px 0 0;
    animation: grow 2s ease-out forwards;
}

@keyframes grow {
    from {
        height: 0;
    }
}

.a-feat {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

.a-feat i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 5px;
}

.a-feat h4 {
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

/* --- Contact Section --- */
.contact-container {
    max-width: 1000px;
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: var(--glass);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.contact-info {
    padding: 4rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, transparent 100%);
}

.info-items {
    margin: 2.5rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.info-item i {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary);
}

.contact-form-wrapper {
    padding: 4rem;
    background: rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.btn-block {
    width: 100%;
}

.form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
    animation: fadeInStatus 0.5s ease forwards;
}

.form-status.success {
    display: block;
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-status.error {
    display: block;
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

@keyframes fadeInStatus {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Footer --- */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-darker);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo .logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    animation: whatsapp-float-anim 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: #FFF;
}

@keyframes whatsapp-float-anim {
    0% {
        transform: translateY(0);
    }

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

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

/* --- Responsive --- */
@media (max-width: 992px) {

    .grid-2,
    .grid-2-rev {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .grid-2 div,
    .grid-2-rev div {
        order: 2;
    }

    .grid-2 .innovation-image,
    .grid-2-rev .analytics-visual {
        order: 1;
    }

    .contact-card {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        /* Mobile menu needed */
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        align-items: flex-start;
        /* Alineamos arriba para controlar mejor el espacio con el logo */
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .nav-logo-img {
        height: 130px;
        /* Logo más grande en móviles */
    }

    .hero-content {
        padding-top: 280px;
        /* Espacio extendido para el nuevo tamaño del logo */
    }

    .hero-buttons {
        justify-content: center;
    }

    section {
        padding: 5rem 0;
    }
}