/* ======== Variables y Estilos Globales ======== */
:root {
    --primary-color: #33FF99; /* Un verde menta tecnológico */
    --dark-bg: #121212;
    --card-bg: #1E1E1E;
    --text-color: #E0E0E0;
    --heading-color: #FFFFFF;
    --font-family: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2 {
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 20px;
}

section {
    padding: 80px 0;
}

/* ======== Cabecera y Navegación ======== */
header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-bg);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
}

.logo:hover {
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #2BE689;
    color: var(--dark-bg);
}


/* ======== Sección Principal (Hero) ======== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Para compensar la cabecera fija */
}

.hero h1 {
    font-size: 3.5em;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px;
    font-weight: 300;
}

.hero-btn {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    display: inline-block;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero-btn:hover {
    background-color: #2BE689;
    transform: translateY(-3px);
}

/* ======== Sección de Soluciones ======== */
.features {
    background-color: var(--dark-bg);
}

.features h2 {
    text-align: center;
    font-size: 2.5em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.feature-card .icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5em;
    color: var(--heading-color);
    margin-bottom: 15px;
}


/* ======== Sección Sobre Nosotros y CTA ======== */
.about, .cta-section {
    text-align: center;
}

.about .container, .cta-section .container {
    max-width: 800px;
}

.about h2, .cta-section h2 {
    font-size: 2.5em;
}

.cta-section {
    background-color: var(--card-bg);
}

.cta-section p {
    margin-bottom: 30px;
}

/* ======== Pie de Página ======== */
footer {
    background-color: var(--card-bg);
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #2a2a2a;
}

/* ======== Diseño Responsivo para Móviles ======== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }

    nav ul {
        display: none; /* Simplificación para el ejemplo, podrías implementar un menú de hamburguesa con JS */
    }
    
    .cta-button{
        display: none;
    }
}

/* ======== Estilos para Páginas Legales ======== */
.legal-page {
    padding-top: 120px; /* Espacio extra por la cabecera fija */
    padding-bottom: 80px;
}

.legal-content h1 {
    font-size: 2.8em;
    margin-bottom: 30px;
}

.legal-content h2 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-content p, .legal-content li {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 15px;
}

.legal-content ul {
    list-style-position: inside;
    padding-left: 20px;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* ======== Estilos para el Pie de Página Actualizado ======== */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.legal-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--primary-color);
}

/* ======== Estilos para Tarjetas de Producto Clickables ======== */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}


/* ======== Ajustes Responsivos para el footer ======== */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .legal-links a {
        margin: 0 10px;
    }
}