/* --- CONFIGURACIÓN GENERAL Y VARIABLES --- */
:root {
    --primary-color: #8A2BE2; /* Morado */
    --secondary-color: #4169E1; /* Azul Real */
    --dark-bg: #0d0c22; /* Fondo oscuro casi negro */
    --light-bg: #1a1936; /* Fondo para las tarjetas */
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    --glow-color: rgba(138, 43, 226, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 100px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

small {
    font-style: italic;
    color: var(--text-muted);
}

section {
    padding: 80px 0;
}

/* --- ENCABEZADO Y NAVEGACIÓN (Estilo Flotante Slack) --- */
.floating-header {
    position: sticky;
    top: 20px;
    z-index: 1000;
    width: calc(100% - 200px);
    margin: 0 auto;
    background-color: #1a193655;
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 10px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

.floating-header .container {
    max-width: 1100px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

/* --- Estilos para el Logo en el Header (MODIFICADO) --- */
.floating-header .logo {
    display: flex;
    align-items: center;
    gap: 12px; /* Espacio entre la imagen del logo y el texto */
}

.floating-header .logo .header-logo {
    height: 35px; /* Ajusta la altura de tu logo según necesites */
    width: auto;
}

.floating-header .logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0; /* Reseteamos el margen del h1 */
}

.floating-header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.floating-header nav ul li {
    margin-left: 25px;
}

.floating-header nav ul li a {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    color: var(--secondary-color);
}

.floating-header nav ul li a:hover {
    background-color: rgba(138, 43, 226, 0.2);
    color: var(--primary-color);
}

.floating-header nav ul li a.active {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

/* --- BOTÓN PRINCIPAL (Call to Action) --- */
.btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px var(--glow-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--glow-color);
}

/* --- SECCIONES DE CONTENIDO --- */
#hero {
    text-align: center;
    padding: 70px 0;
    background-image: radial-gradient(circle, var(--light-bg) 0%, var(--dark-bg) 70%);
}
#hero h2 {
    font-size: 3.5rem;
    font-weight: 700;
}
#hero p {
    text-align: justify;
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 900px;
    margin: 20px auto 40px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 0;
}
.service-card {
    background: var(--light-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.service-card h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--secondary-color);
}
.service-card p {
    text-align: left;
    color: var(--text-muted);
}
.page-title {
    padding: 60px 0;
    text-align: center;
    background-image: radial-gradient(circle, var(--light-bg) 0%, var(--dark-bg) 70%);
}
.page-title p {
    color: var(--text-muted);
}

.product-info {
    margin: 30px 0 10px 0;

}
.product-card {
    background: var(--light-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
}
.product-card h3 {
    margin-bottom: 10px;
}
.product-card p {
    color: var(--text-muted);
    max-width: 700px;
}
.download-buttons {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.btn-download {
    background: #333;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid #444;
}
.btn-download.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.product-card small {
    display: block;
    margin-top: 20px;
    color: var(--text-muted);
}
.contact-form {
    max-width: 700px;
    margin: 0 auto 0;
}
.form-group {
    margin-bottom: 20px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--light-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.contact-form button {
    width: 100%;
}

.showcase-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 20px;
}

.showcase-item-reverse {
    flex-direction: row-reverse;
}

.showcase-image, .showcase-text {
    flex: 1;
}

.showcase-image img {
    width: 100%;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
    background: transparent;
}

.showcase-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.showcase-text p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* ===== SEPARADOR DECORATIVO DE SECCIONES ===== */
.section-divider {
    text-align: center;
    /* Las secciones ya tienen padding, así que el separador no necesita más espacio vertical */
    padding: 0;
    margin: -12px;
}

.section-divider img {
    max-width: 500px; /* Ajusta el tamaño máximo del separador */
    width: 80%; /* Para que sea responsive en pantallas pequeñas */
    height: auto;
    opacity: 0.5; /* Lo hacemos un poco transparente para que sea sutil */
}

/* --- PIE DE PÁGINA PLANO --- */
.site-footer {
    background-color: var(--light-bg);
    color: var(--text-muted);
    text-align: center;
    padding: 30px 0;
    position: relative;
    z-index: 1;
}

.site-footer p {
    font-size: 0.9rem;
    margin: 0;
}

.footer-logo {
    height: 20px;
    vertical-align: middle;
    margin-left: 5px;
}

/* --- RESPONSIVE DESIGN (para móviles) --- */
@media(max-width: 768px) {
    h2 { font-size: 2rem; }
    #hero h2 { font-size: 2.5rem; }

    .showcase-item, .showcase-item-reverse {
        flex-direction: column;
        text-align: center;
    }

    .showcase-text h3 {
        font-size: 1.8rem;
    }
}

/* Adaptación del header para móviles */
@media(max-width: 768px) {
    .floating-header {
        top: 10px;
        width: calc(100% - 20px);
        padding: 10px 20px;
        border-radius: 30px;
    }
    .floating-header .container {
        flex-direction: column;
    }
    .floating-header .logo h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    .floating-header nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .floating-header nav ul li {
        margin: 5px 10px;
    }
    .floating-header nav ul li a {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}