/* ======== CONFIGURACIÓN GLOBAL Y VARIABLES DE COLOR (TEMA CLARO) ======== */
:root {
    /* Paleta original (ahora usada para acentos) */
    --primary-plum: #6A1B9A;
    --primary-dark-plum: #4A148C;
    --accent-plum: #8E24AA;
    --accent-plum-dark: #7B1FA2;
    
    /* Colores base (se mantienen) */
    --white: #FFFFFF;
    --black: #212121;

    /* == ✨ NUEVAS VARIABLES PARA EL TEMA CLARO ✨ == */
    --theme-bg: #EDE7F6;
    --theme-text: #333333;
    --theme-heading: var(--primary-dark-plum);
    --card-bg: var(--white);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --subtle-border: #EAE4F2;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--theme-bg);
    color: var(--theme-text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--theme-heading);
}

h1 { font-size: 3rem; line-height: 1.2; }
h2 { font-size: 2.5rem; text-align: center; }
p { font-size: 1.1rem; font-weight: 300; }

.main-header {
    background: rgba(249, 247, 251, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--subtle-border);
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--theme-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-plum);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.btn-accent {
    background-color: var(--accent-plum);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(142, 36, 170, 0.4);
}
.btn:hover {
    transform: translateY(-3px);
    background-color: var(--accent-plum-dark);
}

#hero {
    padding: 100px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text { flex: 1; }
.hero-visual { flex: 1; display: flex; justify-content: center; align-items: center; }

#features {
    background-color: #f0ebf4;
}
#features h2 {
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background: var(--card-bg);
    padding: 40px 30px 30px 30px; /* Aumentamos el padding superior */
    border-radius: 15px;
    text-align: center;
    border-top: 4px solid var(--accent-plum);
    box-shadow: var(--card-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative; /* Necesario para el posicionamiento de los iconos */
    padding-top: 70px; /* Espacio para el icono que ahora está posicionado absolutamente */
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}


/* --- REGLAS CORREGIDAS PARA EL ICONO Y SU FONDO --- */
.card-icon-wrapper {
    position: absolute;
    top: -40px; /* Mueve el icono hacia arriba, mitad dentro y mitad fuera */
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-plum), var(--primary-plum));
    border-radius: 50%;
    z-index: 1; /* Detrás del Lottie */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-icon-wrapper lottie-player {
    position: relative;
    z-index: 2; /* Encima del fondo */
}
/* --- FIN DE LA CORRECCIÓN --- */


.showcase-content {
    display: flex;
    align-items: center;
    gap: 60px;
}
.showcase-visual { flex: 1; }
.showcase-text { flex: 1; }

.showcase-text {
    text-align: left;
}

.showcase-text p {
    text-align: left;
}

#cta {
    background: linear-gradient(145deg, var(--primary-dark-plum) 0%, var(--primary-plum) 100%);
    text-align: center;
}
#cta h2, #cta p {
    color: var(--white);
}

#cta h2 { font-size: 2.2rem; }
.download-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.download-buttons img {
    height: 60px;
    transition: transform 0.3s ease;
}
.download-buttons img:hover {
    transform: scale(1.05);
}

.main-footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--subtle-border);
    background: var(--theme-bg);
}
.main-footer p {
    font-size: 0.9rem;
    color: #888;
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero-content, .showcase-content {
        flex-direction: column;
        text-align: center;
    }
    .showcase-content {
        flex-direction: column-reverse;
    }

    .nav-links {
        display: none;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.hero-text .btn {
    margin-top: 30px;
}

.legal-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background-color: var(--white);
    color: var(--theme-text);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.legal-container h1 {
    margin-bottom: 30px;
    text-align: center;
}

.legal-container h2 {
    margin-top: 30px;
    color: var(--primary-plum);
}

.legal-container p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-back-button {
    display: inline-block;
    margin-top: 30px;
    text-decoration: none;
    color: var(--accent-plum);
    font-weight: 600;
}

.legal-back-button:hover {
    text-decoration: underline;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--theme-subtle-text, #5c5c5c);
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--accent-plum);
    text-decoration: underline;
}

.footer-links span {
    color: var(--subtle-border);
}

/* ======== ESTILOS PARA LA PÁGINA DE CONTACTO ======== */

.contact-section, .deletion-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--subtle-border);
}

.deletion-section h4 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--theme-heading);
}

.deletion-section ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.deletion-section ol li {
    margin-bottom: 10px;
}

.deletion-section .note {
    background-color: var(--theme-bg);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    border-left: 4px solid var(--accent-plum);
}