:root {
    --blue: #5dafe2;
    --black: #0a0a0a;
    --gray: #1a1a1a;
    --white: #ffffff;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
}

#rfid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Navegación */
.navbar {
    padding: 30px 5%;
    display: flex;
    justify-content: center;
}

.nav-logo { height: 80px; filter: brightness(1.2); }

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.badge {
    background: rgba(93, 175, 226, 0.1);
    color: var(--blue);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
}

.text-blue { color: var(--blue); }

.hero p {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 40px;
}
.main-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.btn {
    padding: 16px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.4s ease;
}

.btn-primary { background: var(--blue); color: var(--black); }
.btn-primary:hover { background: var(--white); transform: translateY(-5px); }

.btn-secondary { border: 1px solid #444; color: var(--white); }
.btn-secondary:hover { background: rgba(255,255,255,0.05); }

.features { padding: 100px 5%; }
.container { max-width: 1200px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.card {
    background: var(--gray);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #333;
    transition: 0.3s;
}

.card:hover { border-color: var(--blue); background: #1f1f1f; }

.card-icon {
    font-size: 2.5rem;
    color: var(--blue);
    margin-bottom: 20px;
}

.card h3 { margin-bottom: 15px; font-size: 1.5rem; }
.card p { color: #888; line-height: 1.6; }

footer {
    padding: 1% 5%;
    background: #000;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.copy { color: #555; font-size: 0.9rem; }

.hero-text {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.info-container {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/*Texto a la izquierda, imagen a la derecha */
.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 100px;
}

/*Imagen a la izquierda, texto a la derecha */
.info-row.reverse {
    flex-direction: row-reverse;
}

.info-text {
    flex: 1;
}

.info-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-text p {
    font-size: 1.1rem;
    color: #aaaaaa;
    line-height: 1.7;
}

/* Contenedor de la imagen */
.info-image-wrapper {
    flex: 1;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(93, 175, 226, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: #1a1a1a;
    aspect-ratio: 16 / 9; 
}

.info-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

.info-image-wrapper:hover .info-image {
    transform: scale(1.05); 
}

@media (max-width: 900px) {
    .info-row, 
    .info-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        margin-bottom: 70px;
    }

    .info-text h2 {
        justify-content: center;
        font-size: 1.8rem;
    }
    
    .info-image-wrapper {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .footer-info { flex-direction: column; gap: 15px; }
}