/* --- VARIABLES & RESET --- */
:root {
    /* Paleta de Colores */
    --bg-dark: #121212;
    --bg-dark-secondary: #1E1E1E;
    --accent-neon: #00E676; /* Verde Neón */
    --accent-glow: rgba(0, 230, 118, 0.15); /* Versión translúcida para brillos */
    
    --text-white: #FFFFFF;
    --text-grey: #A0A0A0;
    
    /* Tipografía */
    --font-main: 'Inter', sans-serif;
    
    /* Layout */
    --nav-height: 80px;
    --container-width: 1200px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden; /* Evita scroll lateral accidental */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- COMPONENTES UI --- */

/* Botón Primario (Llamativo) */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px; /* Bordes sutilmente redondeados, estilo técnico */
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-neon);
    color: var(--bg-dark); /* Texto oscuro para contraste alto */
    border: 1px solid var(--accent-neon);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-neon);
    box-shadow: 0 0 25px var(--accent-glow);
}

/* Botón Outline (Para el Header) */
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.btn-outline:hover {
    border-color: var(--accent-neon);
    color: var(--accent-neon);
}

/* Botón Texto (Enlace simple) */
.btn-text {
    color: var(--text-grey);
    margin-left: 20px;
}
.btn-text:hover {
    color: var(--text-white);
}

/* --- NAVBAR (GLASSMORPHISM) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    
    /* Efecto Vidrio */
    background: rgba(18, 18, 18, 0.7); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Safari support */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    
    display: flex;
    align-items: center;
}

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

.logo-img {
    /* Altura máxima aumentada para que se vea más grande */
    max-height: 65px; 
    width: auto; /* Mantiene la proporción */
    display: block;
    transition: transform 0.3s ease;
}

/* OPCIONAL: Ajuste para celulares (Móvil) */
@media (max-width: 768px) {
    .logo-img {
        height: 40px; /* Un poco más chico en pantallas pequeñas */
    }
}

.logo .dot {
    color: var(--accent-neon);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-grey);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-white);
}

/* Indicador sutil de hover */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-neon);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Background Gradiente Sutil (Verde oscuro) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 230, 118, 0.08) 0%, rgba(18, 18, 18, 0) 60%);
    z-index: -1;
}

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

.hero-title {
    font-size: 4rem; /* Grande e impactante */
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.text-highlight {
    background: linear-gradient(90deg, #ffffff 0%, var(--text-grey) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Opcional: Si quieres que sea verde, cambia el gradiente */
    /* color: var(--accent-neon); */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-grey);
    margin-bottom: 40px;
    font-weight: 300;
}
/* --- LAYOUT GENERAL --- */
.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
    text-align: center; /* Títulos centrados para balance */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.text-neon {
    color: var(--accent-neon);
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

.section-desc {
    color: var(--text-grey);
    font-size: 1.1rem;
}

/* --- GRID SYSTEM MAGIA --- */
.grid-layout {
    display: grid;
    /* Esto crea columnas automáticas que nunca bajan de 320px */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px;
    align-items: stretch; /* Todas las tarjetas misma altura */
}

/* --- TECH CARD DESIGN --- */
.tech-card {
    background-color: var(--bg-dark-secondary); /* #1E1E1E */
    border: 1px solid rgba(255, 255, 255, 0.05); /* Borde sutil casi invisible */
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto rebote sutil */
    position: relative;
    display: flex;
    flex-direction: column;
}

/* EFECTO HOVER (CRÍTICO) */
.tech-card:hover {
    transform: translateY(-8px); /* Levantar tarjeta */
    border-color: var(--accent-neon);
    box-shadow: 0 10px 30px rgba(0, 230, 118, 0.15); /* Glow verde */
}

/* Imagen */
.card-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    
    /* --- AGREGA ESTO PARA DAR MÁS BRILLO --- */
    /* 1.0 es el original. 1.15 es un 15% más de brillo. */
    /* También puedes subir un poco el contraste para que no se vean "lavadas" */
    filter: brightness(1.15) contrast(1.05); 
}

/* Zoom suave en la imagen al hacer hover en la tarjeta */
.tech-card:hover .card-img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(18,18,18,0.8) 100%);
}

/* Contenido */
.card-content {
    padding: 25px;
    flex-grow: 1; /* Empuja el botón al fondo si hay poco texto */
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text-white);
}

.card-specs {
    font-size: 0.9rem;
    color: var(--text-grey);
    margin-bottom: 20px;
}

/* Lista de características */
.feature-list {
    margin-bottom: 25px;
    flex-grow: 1;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #E0E0E0;
}

.icon-check {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    fill: none;
    stroke: var(--accent-neon);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Botón Full Width en tarjeta */
.full-width {
    width: 100%;
    text-align: center;
    display: block;
}
/* --- MODAL SYSTEM --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Fondo oscuro profundo */
    backdrop-filter: blur(8px); /* Desenfoque del fondo */
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Estado activo (JavaScript lo activa) */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #1E1E1E;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 230, 118, 0.2); /* Borde verde sutil */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    background: none;
    border: none;
    color: var(--text-grey);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}
.modal-close:hover { color: var(--accent-neon); }

.modal-header { margin-bottom: 25px; text-align: center; }
.modal-header h3 { font-size: 1.8rem; margin-bottom: 10px; }
.modal-header p { color: var(--text-grey); font-size: 0.9rem; }

/* --- FORM STYLES --- */
.form-group { margin-bottom: 20px; text-align: left; }
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-grey);
    font-weight: 500;
}

input, textarea {
    width: 100%;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-neon);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.1);
}
/* --- CHAT WIDGET STYLES --- */

/* Contenedor principal posicionado */
.chat-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999; /* Siempre arriba */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

/* Botón Flotante (FAB) */
.chat-fab {
    width: 60px;
    height: 60px;
    background-color: var(--accent-neon); /* #00E676 */
    color: var(--bg-dark); /* Icono oscuro sobre fondo neón */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Animación de latido */
    animation: pulse-neon 2s infinite;
}

/* Pausar animación al hacer hover */
.chat-fab:hover {
    animation: none;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 230, 118, 0.6);
}

/* Estado Activo (Cuando el chat está abierto) */
.chat-fab.active {
    background-color: #333; /* Se oscurece al abrir */
    color: var(--text-white);
    animation: none;
    transform: rotate(90deg); /* Efecto giro cool */
}

/* SVG Iconos */
.chat-fab svg {
    width: 28px;
    height: 28px;
    position: absolute;
    transition: opacity 0.3s, transform 0.3s;
}

/* Lógica de cambio de icono */
.chat-fab .icon-close { opacity: 0; transform: scale(0.5); }
.chat-fab.active .icon-robot { opacity: 0; transform: scale(0.5); }
.chat-fab.active .icon-close { opacity: 1; transform: scale(1); }

/* --- VENTANA DEL CHAT --- */
.chat-window {
    width: 350px;
    height: 450px;
    background: rgba(30, 30, 30, 0.95); /* Muy oscuro */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 230, 118, 0.3); /* Borde neón sutil */
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    
    /* Estado inicial: Oculto y pequeño */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    transform-origin: bottom right;
}

.chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(90deg, #1E1E1E 0%, #252525 100%);
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--accent-neon);
    font-weight: 600;
}

.chat-body {
    flex-grow: 1;
    background-color: var(--bg-dark);
    padding: 15px;
    /* Esto asegura que el scroll sea interno si el chat es largo */
    overflow-y: auto; 
}

/* --- ANIMACIÓN KEYFRAMES --- */
@keyframes pulse-neon {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 230, 118, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
    }
}

/* Responsive para Móvil */
@media (max-width: 480px) {
    .chat-window {
        width: 85vw;
        height: 60vh;
        right: 0; /* Ajuste para que no se salga en pantallas pequeñas */
    }
}
/* --- CHAT INTERNO --- */
.chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Scrollbar fina para el chat */
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

/* Mensaje del Bot */
.bot-msg {
    background-color: #2A2A2A;
    color: #E0E0E0;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

/* Mensaje del Usuario */
.user-msg {
    background-color: var(--accent-neon); /* #00E676 */
    color: #121212; /* Texto oscuro para contraste */
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

/* Área de Input */
.chat-input-area {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(18,18,18,0.95);
    display: flex;
    gap: 10px;
}

#user-input {
    flex-grow: 1;
    background: #121212;
    border: 1px solid #333;
    padding: 8px 12px;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
}

#user-input:focus { border-color: var(--accent-neon); }

#send-btn {
    background: none;
    border: none;
    color: var(--accent-neon);
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}
#send-btn:hover { transform: scale(1.1); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.typing-indicator {
    font-size: 0.8rem;
    color: #666;
    margin-left: 10px;
    font-style: italic;
}
/* --- ESTILOS TABLAS DE CONSUMO --- */
.consumption-table-wrapper {
    overflow-x: auto; /* Scroll lateral en móviles */
    margin-top: 20px;
    background: var(--bg-dark-secondary);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px; /* Asegura que no se rompa en pantallas chicas */
}

.tech-table th, .tech-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-table th {
    background-color: rgba(0, 230, 118, 0.1);
    color: var(--accent-neon);
    font-weight: 600;
}

.tech-table tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.table-total {
    font-weight: 700;
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- ESTILOS CONDICIONES COMERCIALES --- */
.terms-box {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--accent-neon);
    padding: 25px;
    margin-top: 40px;
    border-radius: 4px;
}

.terms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .terms-grid { grid-template-columns: 1fr; }
}

/* --- FOOTER GLOBAL --- */
.site-footer {
    background-color: #0a0a0a;
    border-top: 1px solid #333;
    padding: 60px 0 30px;
    margin-top: 80px;
    font-size: 0.9rem;
    color: var(--text-grey);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h4 { color: white; font-size: 1.5rem; margin-bottom: 15px; }
.footer-col h5 { color: var(--accent-neon); margin-bottom: 20px; font-size: 1.1rem; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--accent-neon); text-decoration: underline; }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
}
/* --- ESTILOS RESPONSIVE PARA EL MENÚ MÓVIL --- */

/* Contenedor derecho: Alinea el botón Contacto y la Hamburguesa */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre botón contacto y hamburguesa */
}

/* Estilo del botón Contacto (Visible en móvil) */
.btn-mobile-contact {
    background-color: var(--primary-color); 
    color: white; 
    
    /* Letra más chica */
    font-size: 0.85rem; 
    /* Menos relleno para que el botón sea más pequeño */
    padding: 8px 16px; 
    
    border-radius: 50px; 
    border: none; 
    text-decoration: none;
    font-weight: 700; 
    
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* Asegura que no se rompa en una línea nueva */
    white-space: nowrap; 
}

/* Efecto al tocarlo */
.btn-mobile-contact:hover,
.btn-mobile-contact:active {
    background-color: #218838; /* Un verde un poco más oscuro */
    color: white;
    transform: translateY(-2px); /* Se mueve un poquito arriba */
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
/* El botón hamburguesa se oculta en PC */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 5px;
}

/* --- MEDIA QUERY: PANTALLAS MÓVILES (Tablets y Celulares) --- */
@media (max-width: 992px) {
    
    /* Mostrar botón hamburguesa */
    .hamburger-btn {
        display: block;
    }

    /* Transformar el menú (.nav-links) en un panel lateral */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto fuera de la pantalla a la derecha */
        width: 75%;   /* Ancho del menú desplegable */
        height: 100vh; /* Altura completa */
        background-color: rgba(20, 20, 20, 0.98); /* Fondo oscuro casi opaco */
        backdrop-filter: blur(10px); /* Efecto borroso moderno */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    /* Clase activa para mostrar el menú */
    .nav-links.active {
        right: 0;
    }

    /* Estilo de los enlaces dentro del menú móvil */
    .nav-links .nav-link {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        color: white; /* Asegurar contraste */
    }
    
    /* Opcional: Ajuste del logo en móvil para ganar espacio */
    .logo-img {
        max-height: 40px; 
    }
}
/* --- ESTILOS DEL CARROUSEL DE CAMIONETAS --- */

.carousel-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 0 40px rgba(0,230,118,0.1);
}

/* Las diapositivas se ocultan por defecto (JS las activa) */
.carousel-slide {
    display: none;
}

/* Estilo para las imágenes dentro del carrousel */
.carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    /* Aplicamos el brillo extra aquí también */
    filter: brightness(1.15) contrast(1.05);
}

/* Animación de desvanecimiento (Fade) */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: 0.4} 
    to {opacity: 1}
}

/* Botones Anterior/Siguiente */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3); /* Fondo semitransparente */
    text-decoration: none;
}

/* Posición del botón "Siguiente" a la derecha */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* Efecto Hover en los botones */
.prev:hover, .next:hover {
    background-color: var(--accent-neon); /* Verde neón */
    color: var(--bg-dark); /* Texto oscuro */
}