/**
 * ==========================================================================
 * ZUNNIA - ESTILOS DEL SITIO CORPORATIVO
 * ==========================================================================
 *
 * Este archivo contiene los estilos para el sitio de presentación
 * de ZUNNIA (zunnia.net).
 *
 * @version 1.0.0
 * @author ZUNNIA
 */

/* ==========================================================================
 * 1. CONFIGURACIÓN GLOBAL Y RESET BÁSICO
 * ========================================================================== */

:root {
    /* Paleta para el tema claro (ZUNNIA) */
    --bg-light: #f0f8e6;
    --card-bg-light: #ffffff;
    --text-light-primary: #2c3e50;
    --text-light-secondary: #5a6872;

    /* Acentos */
    --accent-color-zunnia: #5d9c70;
    --accent-color-zunnia-hover: #4a7d59;
}

body {
    font-family: 'Fredoka', sans-serif;
    margin: 0;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Aplica el tema claro directamente */
    background-color: var(--bg-light);
    color: var(--text-light-primary);
    transition: background-color 0.3s ease;
}

main {
    flex-grow: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
 * 2. ESTILOS DE COMPONENTES (ZUNNIA)
 * ========================================================================== */

/* --- Barra de Navegación (Navbar) --- */
.navbar {
    padding: 1.2rem 0;
    width: 100%;
    z-index: 1000;
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

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

.logo-link {
    font-weight: 700;
    font-size: 1.8rem;
    text-decoration: none;
    color: var(--text-light-primary);
}

.navbar nav a {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-light-primary);
    transition: color 0.3s ease;
}

.navbar nav a:hover {
    color: var(--accent-color-zunnia);
}

/* --- Menú Desplegable (Dropdown) --- */
.dropdown {
    position: relative;
    display: inline-block;
}

/*
 * Rellena el espacio entre el botón "Productos" y el menú que despliega
 */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%; /* Comienza justo al final del botón "Productos" */
    left: 0;
    right: 0;
    height: 0.75rem; /* idéntico al margin-top del .dropdown-content */
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    min-width: 180px;
    z-index: 10;
    border-radius: 8px;
    margin-top: 0.75rem; /* Este es el espacio visual que cruzamos */
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-light-secondary);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-icon {
    width: 1.2em;
    height: 1.2em;
}

.dropdown-content a:hover {
    color: var(--accent-color-zunnia);
    background-color: var(--bg-light);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* --- Sección Hero (Cabecera Principal) --- */
.hero {
    text-align: center;
    padding: 7rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light-secondary);
}

/* --- Botones de Llamada a la Acción (CTA) --- */
.cta-button {
    display: inline-block;
    background-color: transparent;
    border: 2px solid var(--accent-color-zunnia);
    color: var(--accent-color-zunnia);
    padding: 0.9rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.cta-button:hover {
    background-color: var(--accent-color-zunnia-hover);
    border-color: var(--accent-color-zunnia-hover);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Sección de Productos (ZUNNIA) --- */
#products {
padding: 6rem 0;
}

.products h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background-color: var(--card-bg-light);
    border-radius: 20px;
    padding: 4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-showcase:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.product-info h3 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.product-info .product-tagline {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-light-secondary);
}

.product-info p {
    margin-bottom: 2rem;
}

.product-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* --- Pie de Página (Footer) --- */
.footer.simple-footer {
    padding: 2rem 0;
    margin-top: auto;
    background-color: rgba(0, 0, 0, 0.02);
    text-align: center;
}

.simple-footer p {
    color: var(--text-light-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================================================
 * 3. ESTILOS RESPONSIVOS (ZUNNIA)
 * ========================================================================== */

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }

    .product-showcase {
        grid-template-columns: 1fr;
        padding: 2.5rem;
    }

    .product-image {
        order: -1;
        margin-bottom: 2rem;
    }
}

/* ==========================================================================
 * SECCIÓN 4: COMPONENTES DE NAVEGACIÓN
 * ========================================================================== */

/* * Contenedor principal de la navegación. */
.navbar nav {
    display: flex;
    align-items: center;
    gap: 1rem; /* Espacio entre el dropdown y el botón de idioma */
}

/* * Regla genérica para los enlaces de texto (ej: "Productos"). */
.navbar nav a:hover {
    color: var(--accent-color-zunnia);
}

/* * Estilo para el componente selector de idioma. */
.lang-selector {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border: 2px solid var(--accent-color-zunnia);
    color: var(--text-light-primary); /* Color de texto por defecto (oscuro) */
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap; /* Asegura que 'EN' o 'ES' no se partan */
}

/* Estado hover del selector de idioma. */
.navbar nav a.lang-selector:hover {
    background-color: var(--accent-color-zunnia-hover);
    border-color: var(--accent-color-zunnia-hover);
    color: #fbfdf9;
}
