/* =========================================
   VARIABLES Y FUENTES
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #0f172a;        /* Fondo oscuro moderno */
    --card-bg: #1e293b;         /* Fondo de tarjetas */
    --text-main: #f8fafc;       /* Texto blanco/gris claro */
    --text-muted: #94a3b8;      /* Texto secundario */
    --accent-cyan: #00f2fe;     /* Azul neón */
    --accent-purple: #4facfe;   /* Morado/Azul */
    --gradient: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   HEADER & NAVEGACIÓN
========================================= */
header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px); /* Efecto cristal */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.logo h1 {
    font-weight: 800;
}

.logo span {
    color: var(--text-main);
}

/* Menú Móvil - Botón Hamburgesa */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--accent-cyan);
    cursor: pointer;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-cyan);
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
}

.language-selector select {
    background: transparent;
    color: var(--text-main);
    border: none;
    outline: none;
    font-weight: 600;
    cursor: pointer;
}

.language-selector select option {
    background: var(--bg-color);
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text-area {
    flex: 1;
}

.hero-text-area h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text-area p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
    text-align: center;
}

.primary-btn {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 242, 254, 0.5);
    color: white;
}

.secondary-btn {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--accent-cyan);
}

.secondary-btn:hover {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
}

.hero-image-area {
    flex: 1;
    display: flex;
    justify-content: center;
}

.floating-robot {
    max-width: 100%;
    width: 400px;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 242, 254, 0.4));
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   SECCIONES COMUNES
========================================= */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* =========================================
   MARCADOR AR
========================================= */
.marker-container {
    display: flex;
    justify-content: center;
}

.marker-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}

.marker-card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.marker-image {
    width: 100%;
    max-width: 250px;
    margin: 0 auto 20px;
    border: 4px dashed var(--accent-cyan);
    padding: 10px;
    border-radius: 10px;
}

.instructions {
    text-align: left;
    margin: 20px 0;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 10px;
}

.instructions ol {
    margin-left: 20px;
    margin-top: 10px;
    color: var(--text-muted);
}

.instructions li {
    margin-bottom: 8px;
}

/* =========================================
   CARRUSEL DE CARACTERÍSTICAS
========================================= */
.features-carousel .slick-slide {
    margin: 0 15px;
}

.feature-slide {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.feature-slide:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent-purple);
    margin-bottom: 20px;
}

.feature-slide h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-slide p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Cambiar color de los puntitos del carrusel */
.slick-dots li button:before {
    color: var(--text-muted) !important;
}
.slick-dots li.slick-active button:before {
    color: var(--accent-cyan) !important;
}

/* =========================================
   CÓMO FUNCIONA (STEPS)
========================================= */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    position: relative;
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.02);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.step h3 {
    margin-bottom: 10px;
    color: var(--text-main);
}

.step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   FOOTER
========================================= */
footer {
    background: #0b1121;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.footer-column p, .footer-column ul {
    color: var(--text-muted);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--accent-cyan);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--accent-cyan);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    color: rgba(255,255,255,0.4);
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
========================================= */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        margin-top: 20px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-text-area h2 {
        font-size: 2.8rem;
    }
    
    .menu-toggle {
        display: block; /* Muestra el icono hamburguesa */
    }

    nav ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: -100%; /* Menú oculto a la izquierda */
        width: 100%;
        background: var(--bg-color);
        text-align: center;
        padding: 20px 0;
        transition: left 0.3s ease;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    nav ul.active {
        left: 0; /* Muestra el menú */
    }
}

@media (max-width: 576px) {
    .hero-text-area h2 {
        font-size: 2rem;
    }
    .header-content {
        flex-wrap: wrap;
    }
    .language-selector {
        display: none; /* Ocultar selector en pantallas muy pequeñas para ahorrar espacio */
    }
}

/* =========================================
   SECCIÓN DE CONTENIDOS DINÁMICOS (JSON)
========================================= */
.grid-contenidos {
    display: grid;
    /* Esto hace que las tarjetas se acomoden automáticamente según el ancho de pantalla */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.contenido-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.contenido-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 242, 254, 0.2);
    border-color: var(--accent-cyan);
}

.card-img-container {
    width: 100%;
    height: 220px;
    background: #0b1121; /* Fondo ligeramente más oscuro para resaltar los modelos 3D */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo de fondo detrás del modelo */
.card-img-container::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent-cyan);
    filter: blur(80px);
    opacity: 0.2;
    border-radius: 50%;
}

.card-imagen {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}

.contenido-card:hover .card-imagen {
    transform: scale(1.1); /* Efecto zoom sutil al pasar el mouse */
}

.card-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-info h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.card-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
    flex: 1; /* Empuja el botón hacia abajo */
}

/* Versión más pequeña del botón principal para las tarjetas */
.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    align-self: flex-start; /* Evita que el botón ocupe todo el ancho */
}