/* --- Reset Básico y Variables CSS --- */
:root {
    --primary-bg: #1A1A1A; /* Negro/Gris oscuro del logo */
    --secondary-bg: #2C2C2C; /* Un gris un poco más claro para contraste sutil */
    --accent-red: #8C13D3; /* Morado principal */
    --accent-highlight: #8C13D3; /* Usar el morado institucional para acentos */
    --accent-purple: #1A1A1A; /* Reemplazar morado con color de fondo */
    --text-light: #F0F0F0; /* Crema/Blanco del texto del logo */
    --text-medium: #A0A0A0; /* Gris claro para texto secundario */
    --text-dark: #333333; /* Para elementos sobre fondos claros (si los hubiera) */
    --whatsapp-green: #25D366;

    --font-headings: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --container-width: 1140px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden; /* Prevenir scroll horizontal accidental */
}

.gradient-letter {
    background-image: linear-gradient(to bottom, #fff, var(--accent-red));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    transition: background-position 0.3s;
    background-size: 200% 200%;
    display: inline-block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    color: var(--accent-red); /* Usar rojo para enlaces */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-light); /* Cambiar a texto claro al pasar el ratón */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
}
.section-title span {
    color: var(--accent-red);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-red); /* Usar rojo para el botón primario */
    color: #FFF;
}

.btn-primary:hover {
    background-color: #7178df; /* Tono azul claro al pasar el ratón */
    color: #FFF;
    transform: translateY(-2px);
}

.btn-secondary { /* Si decides usarlo */
    background-color: var(--accent-red);
    color: #FFF;
}
.btn-secondary:hover {
    background-color: #a52020;
    color: #FFF;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-red); /* Usar rojo para el botón outline */
    border-color: var(--accent-red);
}
.btn-outline:hover {
    background-color: var(--accent-red);
    color: #FFF;
}

.btn-whatsapp-hero {
    background-color: var(--whatsapp-green);
    color: #FFF;
    border-color: var(--whatsapp-green);
    margin-top: 15px; /* Espacio con el botón de arriba */
}
.btn-whatsapp-hero:hover {
    background-color: #1DAF54;
    color: #FFF;
    border-color: #1DAF54;
    transform: translateY(-2px);
}
.btn-whatsapp-hero i {
    margin-right: 8px;
}

/* --- Header --- */
.main-header {
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    padding: 0 20px;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    font-family: var(--font-headings); /* Usar la fuente de encabezados */
    font-size: 1.8rem; /* Ajustar tamaño de fuente */
    font-weight: 700; /* Hacer el texto negrita */
    color: var(--text-light); /* Color del texto */
    text-decoration: none; /* Asegurar que no tenga subrayado */
}

.logo-link .logo-icon {
    height: 50px; /* Ajusta la altura del logo */
    margin-right: 10px; /* Espacio entre el logo y el texto */
    vertical-align: middle; /* Alinea verticalmente con el texto */
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--text-medium);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--accent-red);
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px; /* Área de toque más grande */
}
.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
#inicio {
    /* background will be set by JavaScript for mouse-tracking gradient */
    background-color: var(--primary-bg); /* Fallback color */
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: var(--header-height);
    position: relative; /* Para el pseudo-elemento ::before */
    overflow: hidden; /* Hide overflow from gradient */
}
#inicio::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle 1200px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(140, 19, 211, 0.6), transparent 90%); /* Degradado con color institucional */
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 0;
    transition: background 0.05s ease-out; /* Smooth transition for gradient movement */
}

#inicio .container {
    position: relative;
    z-index: 1;
}

#inicio h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFF;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
#inicio h1 span {
    color: var(--accent-red);
}

#inicio .subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-weight: 400;
}

/* --- Servicios Section --- */
#servicios {
    background-color: var(--secondary-bg);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.service-item {
    background-color: var(--primary-bg);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.service-item .icon {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 20px;
}
.service-item h3 {
    margin-bottom: 10px;
    color: var(--text-light);
}
.service-item p {
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* --- Formulario de Contacto --- */
#contacto {
    background-color: var(--primary-bg);
}
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--secondary-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-light);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: var(--primary-bg);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red); /* Usar rojo para el borde enfocado */
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.5); /* Sombra con color rojo */
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.contact-form-container .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* --- Footer --- */
.main-footer {
    background-color: #111;
    color: var(--text-medium);
    padding: 40px 0;
    text-align: center;
}
.footer-links {
    margin-bottom: 15px;
}
.footer-links a {
    color: var(--text-medium);
    margin: 0 10px;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--accent-red);
}
.social-icons a {
    margin: 0 12px;
    color: var(--text-medium);
    font-size: 1.6rem;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: var(--accent-red);
}
.copyright {
    font-size: 0.85rem;
    margin-top:15px;
}

/* --- Sección Prueba Gratuita --- */
#prueba-gratis {
    background-color: var(--accent-red); /* Cambiar a color de acento */
    text-align: center;
    padding: 30px 0; /* Reducir padding para hacerla menos alta */
    color: #FFF; /* Asegurar texto blanco */
}

#prueba-gratis .section-title {
    color: #FFF; /* Título blanco */
}

#prueba-gratis .section-title span {
    color: var(--primary-bg); /* Span con color de fondo primario */
}

.trial-cta {
    display: flex;
    justify-content: center;
}

.btn-trial {
    background-color: var(--text-light); /* Fondo blanco */
    color: var(--accent-red); /* Texto color acento */
    font-size: 1.3rem; /* Aumentar tamaño de fuente */
    padding: 18px 45px; /* Aumentar padding */
    border: none;
    border-radius: 50px; /* Botón redondeado */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 700; /* Texto negrita */
}

.btn-trial:hover {
    transform: translateY(-5px); /* Aumentar desplazamiento en hover */
    box-shadow: 0 8px 20px rgba(0,0,0,0.3); /* Sombra más pronunciada */
    color: var(--accent-red);
}

.btn-trial i {
    margin-right: 10px;
}


/* --- Animaciones sutiles --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsividad --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    #inicio h1 { font-size: 3rem; }
    .section-title { font-size: 2rem; }
    /* Eliminados estilos de about-content, about-text, about-image */
}

@media (max-width: 768px) {
    :root { --header-height: 60px; }
    h1 { font-size: 2.2rem; }
    #inicio h1 { font-size: 2.5rem; }
    #inicio .subtitle { font-size: 1.1rem; }
    .section-title { font-size: 1.8rem; }

    .main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        background-color: var(--secondary-bg);
        width: 100%;
        padding: 20px 0;
        flex-direction: column;
        align-items: center;
        display: none;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        max-height: calc(100vh - var(--header-height)); /* Evitar que el menú sea más alto que la pantalla */
        overflow-y: auto; /* Scroll si el menú es muy largo */
    }
    .main-nav.active {
        display: flex;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    .main-nav ul li {
        margin: 10px 0;
    }
    .hamburger-menu {
        display: block;
        z-index: 1001; /* Asegurar que esté sobre el menú desplegado si hay superposición */
    }
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .services-grid { grid-template-columns: 1fr; }
    /* Eliminados estilos de benefits-grid */

    #inicio .btn {
        display: block;
        margin-left: auto;
        margin-right: auto;
        max-width: 300px;
    }
    #inicio .btn:not(:last-child) {
         margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    body { font-size: 15px; }
    h1 { font-size: 2rem; }
    #inicio h1 { font-size: 2.2rem; }
    #inicio .subtitle { font-size: 1rem; }
    .btn { padding: 10px 20px; font-size: 0.9rem; }
    #cta-secundaria h2 { font-size: 1.6rem; }
    #cta-secundaria .btn-primary { padding: 12px 25px; font-size: 1rem;}
    .contact-form-container { padding: 25px; }
}