/* VARIABLES Y RESET */
:root {
    --bg-color: #ffffff;
    --text-main: #1a1a1a;
    --text-secondary: #555555;
    --accent: #00c49a; /* EL VERDE NEÓN */
    --button-bg: #000000;
    --button-text: #ffffff;
    --font-stack: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR */
.navbar {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* AGREGA ESTO EN LA SECCIÓN DE NAVBAR EN STYLE.CSS */

.logo-img {
    /* Ajusta esta altura según necesites. Entre 30px y 50px suele verse bien */
    height: 150px; 
    width: 200px; /* Mantiene la proporción para que no se estire */
    display: block; /* Ayuda a alinear mejor la imagen */
}

.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; transition: color 0.3s;}
.nav-links a:hover { color: var(--text-main); }

/* HERO SECTION */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.tag-pill {
    display: inline-block;
    background: #f4f4f4;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 24px;
    font-weight: 600;
}

.tag-new { color: var(--accent); margin-right: 5px; }

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.text-highlight { color: var(--accent); }

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* BOTONES */
.cta-group { display: flex; gap: 15px; justify-content: center; }

.btn-primary {
    background: var(--button-bg);
    color: var(--button-text);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid #e0e0e0;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn-sm {
    background: var(--button-bg);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary:hover { border-color: var(--text-main); }

/* GRID DE SERVICIOS */
.section-padding { padding: 80px 0; }
.section-title { font-size: 2rem; margin-bottom: 40px; text-align: center; font-weight: 800; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 40px 30px;
    border-radius: 12px;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--accent);
}

.icon { font-size: 2rem; margin-bottom: 20px; }
.card h3 { margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--text-secondary); font-size: 0.95rem; }

/* PRUEBA SOCIAL */
.social-proof { background: #fafafa; text-align: center; }

.big-quote {
    font-size: 1.8rem;
    font-weight: 700;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.4;
}

.big-quote cite {
    display: block;
    font-size: 1rem;
    margin-top: 15px;
    color: var(--text-secondary);
    font-style: normal;
    font-weight: 500;
}

.testimonial {
    background: white;
    display: inline-block;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    max-width: 500px;
}
.author { display: block; margin-top: 10px; font-size: 0.9rem; }
.author span { color: var(--text-secondary); }

/* FORMULARIO */
.form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.form-group { margin-bottom: 20px; text-align: left; }

label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }

input, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-block { width: 100%; cursor: pointer; border: none; font-size: 1rem; }

.status-msg { margin-top: 15px; font-weight: 600; min-height: 24px;}

/* FOOTER */
footer { text-align: center; padding: 40px 0; border-top: 1px solid #f0f0f0; color: var(--text-secondary); font-size: 0.9rem; }
/* CHATBOT STYLE */
#chat-circle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
}

.chat-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px; /* Un poco más ancho para que el texto respire */
    max-width: 85vw;
    background: white;
    border-radius: 16px; /* Bordes más suaves */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

.chat-box-header {
    background: var(--text-main);
    color: white;
    padding: 18px 20px; /* Más aire en el encabezado */
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

.chat-box-body {
    height: 350px; /* Un poco más de altura */
    padding: 20px; /* Más espacio en los bordes para evitar que se vea amontonado */
    overflow-y: auto;
    font-size: 0.95rem; /* Fuente ligeramente más grande */
    display: flex;
    flex-direction: column;
    gap: 15px; /* Más espacio entre burbujas de mensaje */
}

.chat-msg {
    padding: 12px 16px; /* Burbujas con más espacio interno */
    border-radius: 12px;
    max-width: 85%;
    line-height: 1.5; /* ESTO QUITA LO AMONTONADO: espacio entre renglones */
    letter-spacing: 0.2px; /* Espacio sutil entre letras */
}

.chat-msg.bot { 
    background: #f4f4f7; /* Un gris más limpio */
    color: #333;
    align-self: flex-start; 
}

.chat-msg.user { 
    background: var(--accent); 
    color: black; 
    align-self: flex-end; 
    font-weight: 500;
}

.chat-input {
    display: flex;
    border-top: 1px solid #f0f0f0;
    padding: 15px 20px; /* Más espacio para escribir */
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px; /* Tamaño ideal para evitar zoom automático en móvil */
    font-family: inherit;
}

.chat-input button {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    padding-left: 10px;
}

/* RESPONSIVE */
/* ==========================================
   OPTIMIZACIÓN MÓVIL ACTUALIZADA (Automation360)
   ========================================== */


@media (max-width: 768px) {
    /* 1. Ajuste de Logo: Un poco más pequeño para no empujar el contenido */
    .logo-img {
        width: 140px; 
        height: auto; 
        margin: 0 auto; /* Asegura centrado si el contenedor cambia */
    }

    .nav-container {
        padding: 10px 15px;
        justify-content: center; /* Centra el contenido en el header móvil */
    }

    /* 2. Hero Section: Manteniendo el centrado original */
    .hero { 
        padding: 40px 15px 50px; 
        text-align: center; /* Mantiene todo al centro */
    }

    h1 { 
        font-size: 2.2rem; 
        line-height: 1.2;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
        margin-left: auto;
        margin-right: auto;
    }

    /* 3. Botones (CTA): Centrados y apilados */
    .cta-group {
        flex-direction: column;
        align-items: center; /* Asegura que los botones se centren */
        gap: 12px;
        padding: 0 10px;
    }

    .btn-primary, .btn-secondary {
        width: 100%; /* Ancho completo para facilidad de clic */
        max-width: 300px; /* Evita que se estiren demasiado en tablets pequeñas */
        text-align: center; 
        padding: 16px; 
    }

    /* 4. Grid de Servicios: Una columna centrada */
    .section-padding { padding: 50px 0; }
    
    .grid-3 { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    .card {
        padding: 30px 20px;
        text-align: center; /* RE-ESTABLECIDO A CENTRADO */
    }

    /* 5. Formulario: Centrado y fácil de usar */
    .form-wrapper {
        padding: 0 10px;
    }

    .form-group {
        text-align: center; /* Etiquetas y campos centrados */
    }

    input, textarea {
        font-size: 16px !important; 
        padding: 14px;
        text-align: center; /* El texto que escribe el usuario también se centra */
    }

    .btn-block {
        padding: 16px;
        font-size: 1.1rem;
    }

    /* 6. Social Proof (Citas): Texto centrado y legible */
    .big-quote {
        font-size: 1.3rem;
        line-height: 1.5;
        padding: 0 15px;
        text-align: center; /* Mantiene la estética de la frase de Musk */
    }
}