/* ============================================
   Estilos Principales - Layout y Tipografía Base
   ============================================ */

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
    background: var(--bg-light);
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fondo decorativo con gradientes */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 50%, rgba(102, 126, 234, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(118, 75, 162, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(240, 147, 251, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] body::before {
    background: 
        radial-gradient(circle at 15% 50%, rgba(102, 126, 234, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(118, 75, 162, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(240, 147, 251, 0.08) 0%, transparent 40%);
}

body > * {
    position: relative;
    z-index: 1;
}

/* Secciones */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 2rem;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: var(--font-extrabold);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Contenido SEO */
.seo-content {
    max-width: var(--max-width-text);
    margin: 0 auto;
    padding: 80px 2rem;
    background: var(--bg);
}

.seo-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    margin-bottom: 1.5rem;
    color: var(--text);
    font-weight: var(--font-bold);
    line-height: 1.3;
}

.seo-content h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.6rem);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: var(--font-semibold);
    line-height: 1.3;
}

.seo-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.seo-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.seo-content li {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.seo-content strong {
    color: var(--text);
    font-weight: var(--font-semibold);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        transform: scale(0.85); 
        opacity: 0; 
    }
    to { 
        transform: scale(1); 
        opacity: 1; 
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reducción de movimiento para accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}