/* ==================================
   MODERN SECTION STYLES
   ================================== */

section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    view-timeline: --section;
    height: 100vh;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Section Color Themes */
section#title {
    --section-primary: var(--brand-primary);
    --section-secondary: var(--brand-light);
}

section#usage {
    --section-primary: var(--brand-primary);
    --section-secondary: var(--yellow-custom);
}

section#valorador {
    --section-primary: var(--accent-green);
    --section-secondary: var(--success);
}

section#features {
    --section-primary: var(--brand-primary);
    --section-secondary: var(--yellow-custom);
}

/* Modern Section Content Layout */
.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    height: 100vh;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

/* Modern Typography for Sections */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 var(--space-xl) 0;
    color: var(--text-primary);
}

.section-title .highlight {
    background: linear-gradient(135deg, var(--section-primary), var(--section-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 800px;
}

.section-description .highlight {
    color: var(--section-primary);
    font-weight: 600;
}

/* Feature Lists */
.feature-list {
    display: grid;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.feature-item-modern {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-item-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.1);
}

.feature-icon-modern {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--section-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs) 0;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Modern Cards */
.card-modern {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(var(--section-primary), 0.2);
}

/* Content Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

/* Step Process */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin: var(--space-2xl) 0;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md) auto;
    box-shadow: var(--shadow-brand);
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm) 0;
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Animated Background Elements */
.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--section-primary), var(--section-secondary));
    opacity: 0.1;
    filter: blur(40px);
    animation: float-shape 8s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

.floating-shape:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 30%;
    animation-delay: 4s;
}

@keyframes float-shape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-20px, -20px) rotate(120deg);
    }
    66% {
        transform: translate(20px, -10px) rotate(240deg);
    }
}

/* Legacy compatibility for content class */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 var(--space-xl) 0;
    color: var(--text-primary);
}

.content strong {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content em {
    color: var(--text-secondary);
    font-style: normal;
}

.content code {
    color: var(--section-primary);
    font-weight: 600;
    background: var(--surface-glass);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Inter', monospace;
}

.content .selector {
    color: var(--accent-blue);
}

.content .property {
    color: var(--brand-light);
    font-weight: 700;
}

.content ul {
    list-style: none;
    padding: 0;
    margin: var(--space-xl) 0;
}

.content ul li {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
    position: relative;
    line-height: 1.6;
}

.content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--section-primary);
    font-weight: 700;
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-content,
    .content {
        padding: var(--space-2xl) var(--space-md);
    }
    
    .feature-list {
        gap: var(--space-md);
    }
    
    .feature-item-modern {
        flex-direction: column;
        text-align: center;
    }
    
    .card-modern {
        padding: var(--space-lg);
    }
}