/* --- Variables de Diseño Futurista --- */
:root {
    --bg-dark: #050508;
    --bg-card: rgba(15, 15, 25, 0.7);
    --accent-cyan: #00f3ff;
    --accent-purple: #7000ff;
    --text-main: #f0f2f5;
    --text-muted: #8a8f98;
    --border-color: rgba(0, 243, 255, 0.2);
}

/* --- Reseteo Estructural --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Fondo con brillos difusos (Neon Glow) */
.glow-bg {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 80% 20%, rgba(112, 0, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(0, 243, 255, 0.12) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* --- Navegación --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 40px 5px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    /* background: #bdbdbd99; */
    background: white;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links a {
    /* color: var(--text-main); */
    color: #375a90;
    text-decoration: none;
    font-weight: 500;
    font-size: 20px;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
}

.nav-links a:hover, .nav-links a.active {
    color: white;
    background: #375a90;
}

.btn-nav {
    background: transparent;
    border: 1px solid #375a90;
    color: #375a90;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
    box-shadow: inset 0 0 0 0 var(--accent-cyan);
    transition: all 0.4s ease;
}

.btn-nav:hover {
    color: white;
    background: #375a90;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    padding-top: 80px;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.badge {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--accent-cyan);
    padding: 0.4rem 1rem;
    display: inline-block;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(112, 0, 255, 0.3);
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tarjeta Holográmica para el Robot */
.robot-glow-card {
    width: 400px;
    height: 450px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.robot-placeholder-icon {
    font-size: 8rem;
    color: rgba(0, 243, 255, 0.15);
    animation: floating 4s ease-in-out infinite;
}

/* Efecto de línea láser de escaneo */
.laser-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan);
    top: 0;
    animation: scan 3.5s linear infinite;
}

/* --- Especificaciones (Glassmorphism) --- */
.specs-section {
    padding: 6rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.spec-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.spec-card:hover {
    border-color: var(--border-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.05);
}

.card-icon {
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}

.spec-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.spec-card p {
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Simulador de Telemetría (Sección Interactiva) --- */
.simulator-section {
    padding: 6rem 5%;
    background: rgba(10, 10, 18, 0.5);
}

.simulator-container {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    background: #09090e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
}

.sim-preview {
    flex: 1;
    background: #020204;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.telemetry-screen {
    width: 100%;
    background: #000;
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
}

.status-indicator {
    border-bottom: 1px solid #1a1a2e;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

#status-text {
    color: var(--accent-cyan);
    font-weight: bold;
}

.telemetry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.robot-status-box {
    margin-top: 2rem;
    width: 100%;
    height: 180px; /* Ajusta según el tamaño de tu panel */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#robot-icon {
    font-size: 4rem;
    color: var(--accent-cyan);
    transition: all 0.4s ease;
}

.pulse-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0;
}

.sim-controls {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sim-controls h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.sim-controls p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.control-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-ctrl {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    padding: 1rem;
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-ctrl:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-ctrl.active {
    background: rgba(0, 243, 255, 0.05);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.1);
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Animaciones de Keyframes --- */
@keyframes scan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(0.6); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0; }
}

/* --- Responsivo básico --- */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding-top: 120px;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .robot-glow-card {
        width: 300px;
        height: 300px;
    }
    .simulator-container {
        flex-direction: column;
    }
    .nav-links {
        display: none; /* Simplificado para el ejemplo */
    }
}

.robot-image {
    width: 800px;
    animation: floating 4s ease-in-out infinite;
}

/* Form de cotización */

/* --- Sección de Cotización (Formulario) --- */
.quote-section {
    padding: 6rem 5%;
    position: relative;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

/* Filas del formulario */
.form-group-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group-row .form-group {
    margin-bottom: 0;
}

/* Etiquetas e Inputs */
.form-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background: rgba(5, 5, 8, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1rem;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

/* Estilo para los menús desplegables */
.form-group select option {
    background: var(--bg-dark);
    color: var(--text-main);
}

/* Efectos Focus (Interactivo y avanzado) */
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.2);
    background: rgba(0, 243, 255, 0.02);
}

/* Botón de Envío Futurista */
.btn-submit {
    width: 100%;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    color: white;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(112, 0, 255, 0.2);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 243, 255, 0.4);
    letter-spacing: 0.5px;
}

/* Mensaje de éxito interactivo */
.form-success-card {
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.5s ease forwards;
}

.form-success-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.form-success-card p {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 550px;
    margin: 0 auto 2rem auto;
}

.success-icon {
    font-size: 4rem;
    color: #00ff88;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.ticket-number {
    font-family: 'Courier New', Courier, monospace;
    background: #000;
    border: 1px solid #1a1a2e;
    padding: 0.6rem 1.5rem;
    display: inline-block;
    border-radius: 4px;
    color: var(--accent-cyan);
}

/* Utilidades */
.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Adaptación responsive */
@media (max-width: 600px) {
    .form-group-row {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Estilos para los títulos de los grupos en el selector */
.form-group select optgroup {
    background-color: var(--bg-dark); /* Fondo oscuro */
    color: var(--accent-cyan);        /* Texto cian tecnológico */
    font-weight: 700;
    font-style: normal;
    margin-top: 0.5rem;
}

/* Estilos para las opciones dentro del grupo para que contrasten */
.form-group select optgroup option {
    color: var(--text-main);          /* Texto gris claro/blanco para los robots */
    background-color: #0b0b11;        /* Un tono sutilmente diferente para las opciones */
    font-weight: normal;
    padding: 0.5rem;
}

/* --- Estilos para la imagen PNG del robot en el simulador --- */
.robot-status-box {
    position: relative;
    width: 100%;
    height: auto; /* Ajusta según el tamaño de tu panel */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Mantiene la imagen dentro */
}

.robot-sim-image {
    max-width: 95%; /* La imagen no ocupará todo el ancho, dejando aire */
    max-height: 95%; /* Ajusta la altura máxima */
    object-fit: contain; /* Mantiene la proporción de la imagen sin deformarla */
    
    /* Efecto avanzado: Brillo de neón alrededor de la silueta del robot */
    /* Esto funciona mejor si el PNG tiene un fondo transparente y la silueta del robot es de color claro o tiene un borde */
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.4)) 
            drop-shadow(0 0 20px rgba(0, 243, 255, 0.1));
            
    animation: floating 4s ease-in-out infinite; /* Reutilizamos la animación de flotar */
    transition: all 0.5s ease; /* Transición suave al cambiar de modelo */
}

/* Opcional: Ajuste para el pulse-ring con imágenes */
.robot-status-box .pulse-ring {
    width: 180px; /* Un poco más grande para las imágenes */
    height: 180px;
    border-width: 3px;
    z-index: 1; /* Detrás de la imagen */
}

/* --- Sección de Catálogo de Modelos (Premium layout) --- */
.models-section {
    padding: 6rem 5%;
    background: linear-gradient(180deg, rgba(5,5,8,0) 0%, rgba(9,9,14,0.8) 100%);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

/* Estructura Base de la Tarjeta */
.model-card {
    background: rgba(15, 15, 25, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(12px);
    position: relative;
}

.model-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 243, 255, 0.05);
}

/* Tarjetas Destacadas (Lynx / Humanoide) */
.highlight-card {
    border-color: var(--border-color);
    box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.05);
}

.special-card {
    border-color: rgba(112, 0, 255, 0.3);
    box-shadow: inset 0 0 15px rgba(112, 0, 255, 0.05);
}

/* Área de Imagen */
.model-img-container {
    height: 220px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}

/* Si usas tus imágenes reales recortadas, reemplaza la clase .model-placeholder por estilos <img> comunes */
.model-placeholder {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.1);
    transition: color 0.3s;
}

.model-card:hover .model-placeholder {
    color: var(--accent-cyan);
}

.special-card:hover .model-placeholder {
    color: var(--accent-purple);
}

/* Badges Flotantes */
.model-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #00f3ff;
    color: #050508;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.tech-badge {
    background: var(--accent-purple);
    color: #fff;
    box-shadow: 0 0 10px rgba(112, 0, 255, 0.5);
}

/* Cuerpo de la Información */
.model-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.model-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.sub-model {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 500;
    margin-top: 0.2rem;
}

.special-card .sub-model {
    color: #a366ff;
}

.model-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Tabla de Especificaciones Técnicas Interna */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    margin-top: auto; /* Empuja la tabla hacia abajo equitativamente */
}

.specs-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 0.6rem 0;
    font-size: 0.9rem;
}

.specs-table td:first-child {
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.specs-table td:last-child {
    color: #fff;
    text-align: right;
    font-family: monospace;
    font-weight: 600;
}

/* Botón Interno de la Tarjeta */
.btn-model-quote {
    display: block;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-model-quote:hover {
    background: var(--text-main);
    color: var(--bg-dark);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.05);
}

.highlight-card .btn-model-quote {
    border-color: rgba(0, 243, 255, 0.4);
    color: var(--accent-cyan);
}

.highlight-card .btn-model-quote:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    box-shadow: 0 10px 20px rgba(0, 243, 255, 0.2);
}

/* ==========================================================================
   MEDIA QUERIES - DISEÑO RESPONSIVO (itcrobotic.cl)
   ========================================================================== */

/* --- TABLETS Y PANTALLAS MEDIANAS (Menos de 1024px) --- */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
        gap: 3rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .robot-glow-card {
        width: 350px;
        height: 350px;
    }

    .simulator-container {
        flex-direction: column;
    }

    .sim-preview {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .sim-controls {
        padding: 2rem;
    }
}

/* --- CELULARES Y SMARTPHONES (Menos de 768px) --- */
@media (max-width: 768px) {
    /* Ajustes de Tipografía General */
    .hero-content h1 {
        font-size: 2.4rem; /* Texto más cómodo para leer en vertical */
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    /* Barra de Navegación Móvil */
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        display: none; /* Oculto por defecto para diseño limpio. Se puede activar con un menú hamburguesa */
    }

    .btn-nav {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Hero */
    .hero-buttons {
        flex-direction: column; /* Botones uno sobre otro en celulares */
        gap: 1rem;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .robot-glow-card {
        width: 280px;
        height: 280px;
    }

    /* Cuadrículas (Grids) de Contenido */
    .specs-grid, .models-grid {
        grid-template-columns: 1fr; /* Una sola columna para que las tarjetas ocupen todo el ancho */
        gap: 1.5rem;
    }

    .spec-card, .model-info {
        padding: 1.5rem;
    }

    .model-img-container {
        height: 180px;
    }

    /* Simulador de Telemetría */
    .telemetry-screen {
        max-width: 100%;
        padding: 1rem;
    }

    .robot-status-box {
        height: 200px; /* Reducción de escala para pantallas pequeñas */
    }

    .robot-status-box .pulse-ring {
        width: 130px;
        height: 130px;
    }

    /* Formulario de Cotización */
    .quote-container {
        padding: 1.5rem;
    }

    .form-group-row {
        flex-direction: column; /* Apila los campos dobles (Ej: Nombre y Empresa) */
        gap: 0;
    }

    .form-group input, 
    .form-group select, 
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .btn-submit {
        font-size: 1rem;
        padding: 1rem;
    }
}

/* --- CELULARES PEQUEÑOS (Menos de 400px) --- */
@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .robot-glow-card {
        width: 240px;
        height: 240px;
    }
}

/* Alerta de Error de Envío */
.form-error-alert {
    background: rgba(255, 0, 85, 0.1);
    border: 1px solid #ff0055;
    color: #ff0055;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-shadow: 0 0 5px rgba(255, 0, 85, 0.2);
}

/* --- Contenedor de la Imagen en la Tarjeta --- */
.model-img-container {
    height: 240px; /* Altura fija ideal para que todas las tarjetas midan lo mismo */
    background: radial-gradient(circle at center, rgba(15, 15, 25, 0.2) 0%, rgba(5, 5, 8, 0.6) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    padding: 1.5rem; /* Evita que la imagen toque los bordes del contenedor */
}

/* --- Estilos para la Imagen del Robot (PNG Transparente) --- */
.model-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Clave: Mantiene la proporción original del robot sin estirarlo */
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* Brillo sutil por defecto en la silueta del robot */
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

/* --- Efecto de Interacción (Hover) --- */
/* Cuando el usuario pasa el mouse sobre la tarjeta, el robot reacciona */
.model-card:hover .model-image {
    transform: scale(1.06) translateY(-4px); /* Se agranda un poco y flota hacia arriba */
    
    /* Filtro de iluminación Cyberpunk (Cian para tarjetas normales/destacadas) */
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.35)) 
            drop-shadow(0 0 30px rgba(0, 243, 255, 0.1));
}

/* Si es la tarjeta especial (como la del Humanoide DR-02), usamos brillo morado */
.special-card:hover .model-image {
    filter: drop-shadow(0 0 15px rgba(112, 0, 255, 0.4)) 
            drop-shadow(0 0 30px rgba(112, 0, 255, 0.15));
}

/* --- Fondo Decorativo de Glitch (Opcional) --- */
.model-glitch-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px; /* Rejilla tecnológica de fondo */
    opacity: 0.4;
    z-index: 1;
}

/* --- La Tarjeta Contenedora de Uso (Asegurar orden) --- */
.spec-card {
    max-width: 650px;
    background: rgba(15, 15, 25, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    overflow: hidden; /* ¡CRUCIAL! Esto obliga a la imagen a recortarse con las esquinas redondeadas de la tarjeta */
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(12px);
}

/* --- Estilos para la Imagen JPG superior --- */
.spec-card img {
    width: 100%;
    height: 250px;        /* Altura de cabecera fija ideal para que todas las tarjetas se alineen perfectamente */
    object-fit: cover;     /* Llena todo el ancho de la tarjeta sin aplastarse */
    object-position: center;
    border-bottom: 2px solid rgba(0, 243, 255, 0.1); /* Línea de separación sutil cyberpunk */
    transition: all 0.4s ease;
}

/* --- Margen interno exclusivo para los textos (h3 y p) --- */
.spec-card h3 {
    font-size: 1.35rem;
    color: #fff;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem; /* Margen separado para no tocar los bordes */
    margin: 0;
}

.spec-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 1.5rem 1.5rem 1.5rem; /* Margen inferior para cerrar la tarjeta limpio */
    margin: 0;
}

/* --- Efectos de Interacción (Hover) para toda la tarjeta --- */
.spec-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 243, 255, 0.08);
}

/* Micro-zoom cinematográfico a la foto al pasar por la tarjeta */
.spec-card:hover img {
    transform: scale(1.04);
    border-bottom-color: var(--accent-cyan); /* El neón de la línea brilla más */
}

.title_up {
    margin-top: 30px;
}

.title_ARRIBA {
    margin-top: 200px;
}

@media (max-width: 768px) {
    .spec-card {
        align-items: center;
        text-align: center;
    }

    .robot-image {
        width: 450px;
    }

    #tecnologia {
        padding-bottom: 0;
    }

    .simulator-section {
        padding: 0;
    }

    .title_ARRIBA {
        margin-top: 100px;

    }

    .models-section {
        padding-top: 0;
    }
}

/* --- Sección de Descarga de Presentación (Dossier) --- */
.download-section {
    padding: 4rem 5%;
    background: linear-gradient(180deg, rgba(9,9,14,0.4) 0%, rgba(5,5,8,0.8) 100%);
}

.download-container {
    max-width: 1100px;
    margin: 0 auto;
    background: radial-gradient(circle at top left, rgba(0, 243, 255, 0.03), transparent 70%), 
                rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tech-tag {
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-content h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.download-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 650px;
    margin-bottom: 1.5rem;
}

/* Metadata del archivo (Tamaño, formato) */
.file-meta {
    display: flex;
    gap: 1.5rem;
}

.file-meta span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: monospace;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Botón Premium de Descarga */
.btn-download {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: linear-gradient(135deg, #00f3ff 0%, #00a8ff 100%);
    color: #050508;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap; /* Evita que el botón se desarme */
}

.btn-download i {
    font-size: 2rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 500;
}

/* Hover del botón */
.btn-download:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
    background: linear-gradient(135deg, #2bf7ff 0%, #29b6ff 100%);
}

/* --- Agrega esto DENTRO de tu Media Query de celulares (max-width: 768px) --- */
@media (max-width: 768px) {
    .download-container {
        flex-direction: column; /* Cambia a layout vertical en smartphones */
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .download-content h2 {
        font-size: 1.8rem;
    }

    .download-content p {
        font-size: 0.95rem;
    }

    .file-meta {
        justify-content: center;
        flex-wrap: wrap; /* Si no caben en una línea, bajan ordenadamente */
        gap: 0.8rem;
    }

    .btn-download {
        width: 100%; /* El botón ocupa todo el ancho disponible en la pantalla touch */
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .btn-download i {
        font-size: 1.6rem;
    }
    
    .btn-title {
        font-size: 1rem;
    }
}

.contenido-productos {
    display: flex;
    flex-direction: column;
}

/*=========================================
VIDEO CINEMÁTICO
=========================================*/

.video-section {
    margin-top: 75px;
}

.hero-video{
    width:100%;
    height:80vh;
    overflow:hidden;
    position:relative;
    background:#000;
}

.hero-video video{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* ==========================
   Tablets (hasta 1024px)
========================== */

@media (max-width:1024px){

    .hero-video{
        height:60vh;
    }

        .video-section{
        margin-top: 125px;
    }

    .hero-section {
    padding-top: 50px;
}

}

/* ==========================
   Celulares (hasta 768px)
========================== */

@media (max-width:768px){

    .video-section{
        margin-top:85px;
    }

    .hero-video{
        height:45vh;
    }
    .hero-section {
    padding-top: 50px;
}

}

/* ==========================
   Celulares pequeños
========================== */

@media (max-width:480px){

    .hero-video{
        height:35vh;
    }

    .video-section {
    margin-top: 85px;
}

.hero-section {
    padding-top: 50px;
}

}

/* ==========================================================================
   SECCIÓN DE INVESTIGACIÓN Y DESARROLLO (I+D)
   ========================================================================== */
.id-section {
    padding: 6rem 5%;
    background: #050508;
}

.id-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Dos columnas: consola a la izquierda, enlaces a la derecha */
    gap: 3rem;
    align-items: start;
}

/* --- Terminal de Comandos (Estilo Geek/Tech) --- */
.id-terminal {
    background: #09090e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.terminal-body .cmd {
    color: #fff;
    margin-bottom: 0.8rem;
}

.terminal-body .cmd .user {
    color: #00f3ff;
}

.terminal-body .output {
    color: rgba(255, 255, 255, 0.6);
    margin: 0.2rem 0;
}

/* Métricas internas de la terminal */
.terminal-stats {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    color: #00f3ff;
    font-weight: 700;
    font-size: 1.1rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* --- Cuadrícula de Enlaces de GitHub/Documentación --- */
.id-links-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dev-card {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dev-card-icon {
    font-size: 2rem;
    color: #00f3ff;
    background: rgba(0, 243, 255, 0.05);
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0, 243, 255, 0.1);
    transition: all 0.3s ease;
}

.dev-card-info h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.dev-card-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.dev-link-text {
    color: #00f3ff;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Hover de las tarjetas */
.dev-card:hover {
    transform: translateX(5px);
    border-color: rgba(0, 243, 255, 0.2);
    background: rgba(20, 20, 35, 0.8);
    box-shadow: 0 10px 25px rgba(0, 243, 255, 0.04);
}

.dev-card:hover .dev-card-icon {
    background: #00f3ff;
    color: #050508;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

/* --- Agrega esto DENTRO de tu Media Query de celulares (max-width: 768px) --- */
@media (max-width: 768px) {
    .id-container {
        grid-template-columns: 1fr; /* Apila la terminal sobre las tarjetas en móviles */
        gap: 2rem;
    }

    .terminal-body {
        font-size: 0.8rem; /* Letra ligeramente más compacta para que los comandos queden en una línea */
        padding: 1rem;
    }

    .terminal-stats {
        gap: 1.2rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .dev-card {
        flex-direction: column; /* El icono se posiciona arriba del texto en pantallas angostas */
        gap: 1rem;
        padding: 1.2rem;
    }

    .dev-card-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 1.6rem;
    }

    .dev-card-info h3 {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   SECCIÓN DE GALERÍA DE SIMULACIÓN
   ========================================================================== */
.sim-section {
    padding: 6rem 5%;
    background: linear-gradient(180deg, #050508 0%, rgba(15, 15, 25, 0.4) 100%);
}

/* Grilla de 2 columnas para Escritorio */
.sim-grid {
    max-width: 1200px;
    margin: 3rem auto 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.sim-item {
    background: rgba(15, 15, 25, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    padding: 1rem;
    transition: all 0.4s ease;
}

/* Contenedor de la foto con corte estricto */
.sim-img-wrapper {
    position: relative;
    width: 100%;
    height: 260px; /* Altura ideal de captura de pantalla */
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 243, 255, 0.1);
}

.sim-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la captura de simulación para que llene el espacio sin estirarse */
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Etiquetas flotantes sobre la imagen (Estilo HUD tecnológico) */
.sim-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(300deg, rgba(5, 5, 8, 0.85) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2;
}

.sim-model-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.sim-env {
    color: #00f3ff;
    font-family: monospace;
    font-size: 0.8rem;
    background: rgba(0, 243, 255, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

/* Texto descriptivo inferior fuera de la imagen */
.sim-desc {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 0.5rem;
}

/* --- Efectos de Interacción (Hover) --- */
.sim-item:hover {
    border-color: rgba(0, 243, 255, 0.15);
    background: rgba(15, 15, 25, 0.6);
    transform: translateY(-4px);
}

.sim-item:hover .sim-img-wrapper img {
    transform: scale(1.03); /* Zoom cinematográfico suave al pasar el cursor */
}

/* --- Agrega esto DENTRO de tu Media Query de celulares (max-width: 768px) --- */
@media (max-width: 768px) {
    .sim-grid {
        grid-template-columns: 1fr; /* Pasa de 2 columnas a 1 columna única */
        gap: 1.8rem;
    }

    .sim-img-wrapper {
        height: 180px; /* Reducimos la altura en celulares para evitar exceso de scroll */
    }

    .sim-model-name {
        font-size: 1rem;
    }

    .sim-desc {
        font-size: 0.88rem;
        margin-top: 0.8rem;
    }
}