:root {
    /* Colores extraídos del logo */
    --brand-blue: #1b4379;
    /* Azul del texto y la moto */
    --brand-red: #c92127;
    /* Rojo del QR y el pulso */

    /* Colores de estructura */
    --bg-color: #ffffff;
    --surface-color: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --red-glow: rgba(201, 33, 39, 0.3);
    --blue-glow: rgba(27, 67, 121, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    /* Patrón sutil de fondo para que no sea un blanco plano */
    background-image: radial-gradient(var(--surface-color) 2px, transparent 2px);
    background-size: 30px 30px;
}

/* Navegación */
nav {
    display: flex;
    justify-content: flex-start;
    padding: 1.5rem 5%;
    align-items: center;
}

.logo-img {
    height: 60px;
    /* Ajusta este valor según necesites escalar el logo */
    width: auto;
    object-fit: contain;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    padding: 0 5%;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-content h1 {
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--brand-blue);
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 520px;
    line-height: 1.6;
}

/* Botón de Acción Principal - Usa el rojo para urgencia/atención */
.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--brand-red);
    border-radius: 8px;
    /* Bordes menos redondeados para un aspecto más técnico */
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px var(--red-glow);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px var(--red-glow);
    background-color: #b01c22;
}

/* Visual Innovador del QR */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
}

.qr-mockup {
    width: 320px;
    height: 320px;
    background: #ffffff;
    border: 2px solid var(--surface-color);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 50px var(--blue-glow);
}

/* Efecto de escaneo láser en Rojo */
.qr-mockup::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--brand-red);
    box-shadow: 0 0 15px var(--brand-red);
    animation: scan 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    border-radius: 50%;
    z-index: 2;
}

/* Representación del QR en Azul */
.qr-core {
    width: 220px;
    height: 220px;
    background-image:
        repeating-linear-gradient(45deg, var(--brand-blue) 25%, transparent 25%, transparent 75%, var(--brand-blue) 75%, var(--brand-blue)),
        repeating-linear-gradient(45deg, var(--brand-blue) 25%, transparent 25%, transparent 75%, var(--brand-blue) 75%, var(--brand-blue));
    background-position: 0 0, 15px 15px;
    background-size: 30px 30px;
    border-radius: 12px;
    opacity: 0.8;
    position: relative;
}

/* Cuadros de posición del QR */
.qr-core::before,
.qr-core::after,
.qr-corner {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 6px solid var(--brand-blue);
    background: #fff;
    border-radius: 8px;
}

.qr-core::before {
    top: 10px;
    left: 10px;
}

.qr-core::after {
    top: 10px;
    right: 10px;
}

.qr-corner {
    bottom: 10px;
    left: 10px;
}

/* Animaciones */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes scan {
    0% {
        top: 10%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        top: 90%;
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero {
        text-align: center;
        justify-content: center;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    nav {
        justify-content: center;
    }
}