/* --- Global Styles & Variables --- */
:root {
    --primary-color: #6a11cb; /* Morado del degradado */
    --secondary-color: #2575fc; /* Azul del degradado */
    --dark-color: #222;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --text-color: #333;
    --gradient: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 20px;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; }
h3 { font-size: 1.5rem; }

/* --- Header & Navigation --- */
header {
    background: var(--white-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.lang-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #999;
}

.lang-switcher button.active {
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
#hero {
    background: var(--white-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-image: var(--gradient);
    color: var(--white-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- Products & Technology Sections --- */
#productos { background-color: var(--light-color); }

/* MODIFICADO: Estilos para la sección de tecnología */
#tecnologia {
    background-image: var(--gradient); /* Fondo con degradado */
}
#tecnologia h2 {
    color: var(--white-color); /* Título de la sección en blanco */
}
/* FIN DE MODIFICACIÓN */

.products-grid, .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background-image: var(--gradient);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card {
    background: var(--white-color);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.product-card:hover, .feature-card:hover {
    transform: translateY(-10px);
}

.product-card h3, .product-card p, .product-card i {
    color: var(--white-color);
}

.product-card i, .feature-card i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card i {
    color: var(--primary-color);
}

/* --- About & Contact Sections --- */
#nosotros { background-color: var(--light-color); }
#nosotros .container {
    max-width: 800px;
    text-align: center;
}

#contacto {
    text-align: center;
    background-image: var(--gradient);
    color: var(--white-color);
}
#contacto h2, #contacto p {
    color: var(--white-color);
}
#contacto .cta-button {
    background: var(--white-color);
    color: var(--primary-color);
}

/* --- Footer --- */
footer {
    background: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 40px 0;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}
footer p {
    font-size: 0.9rem;
    color: #ccc;
}


/* --- Responsive Design --- */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background: var(--white-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }
    .nav-links li {
        opacity: 0;
        margin: 20px 0;
    }
    .burger {
        display: block;
    }
    .nav-active {
        transform: translateX(0%);
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
}
/* --- NUEVO: Estilos para botones de contacto y FAB de WhatsApp --- */

/* Contenedor para los botones en la sección de contacto */
.contact-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Espacio entre botones */
    flex-wrap: wrap; /* Para que se apilen en pantallas pequeñas */
}

/* Ajustes para los botones de contacto con iconos */
.contact-buttons .cta-button {
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre icono y texto */
}

/* Estilo específico para el botón de WhatsApp */
.cta-whatsapp {
    background-image: none; /* Quitamos el degradado */
    background-color: #25D366; /* Color oficial de WhatsApp */
}

.cta-whatsapp:hover {
    background-color: #128C7E; /* Un verde más oscuro al pasar el ratón */
}

/* Estilo para el botón flotante (FAB) */
#whatsapp-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    transition: transform 0.3s ease;
    text-decoration: none;
}

#whatsapp-fab:hover {
    transform: scale(1.1);
}