/**
 * ╔══════════════════════════════════════════════════════════════════════════════╗
 * ║                                                                              ║
 * ║  StayArts PDF Splitter - Stylesheet                                        ║
 * ║  Copyright © 2025 Gary19gts. All Rights Reserved.                          ║
 * ║                                                                              ║
 * ║  Author: Gary19gts                                                          ║
 * ║  Website: https://stayarts.com                                              ║
 * ║  Version: 2.1                                                               ║
 * ║  License: Proprietary - All Rights Reserved                                ║
 * ║                                                                              ║
 * ║  UNAUTHORIZED COPYING, MODIFICATION, DISTRIBUTION OR USE OF THIS            ║
 * ║  SOFTWARE IS STRICTLY PROHIBITED WITHOUT EXPLICIT WRITTEN PERMISSION        ║
 * ║  FROM THE COPYRIGHT HOLDER.                                                 ║
 * ║                                                                              ║
 * ╚══════════════════════════════════════════════════════════════════════════════╝
 */

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores Modo Oscuro */
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-card: #141414;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-gradient: linear-gradient(135deg, #6b21a8 0%, #7e22ce 50%, #6b21a8 100%);
    --accent-color: #7e22ce;
    --border-color: #262626;
    --hover-bg: #1f1f1f;
}

body.light-mode {
    /* Colores Modo Claro */
    --bg-primary: #f9fafb;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --hover-bg: #f3f4f6;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.5s ease-out;
}



/* Controles Fijos */
.fixed-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.theme-toggle,
.language-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 10px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
}

.theme-toggle:hover,
.language-btn:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(126, 34, 206, 0.3);
}

.language-selector {
    position: relative;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    min-width: 150px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.language-option:hover {
    background: var(--hover-bg);
}

.language-option.active {
    background: var(--accent-gradient);
    color: white;
}

/* Header */
.header {
    text-align: center;
    padding: 60px 30px 50px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f1419 100%);
    color: white;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(126, 34, 206, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.logo:hover {
    color: #7e22ce;
    transform: scale(1.05);
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.4;
}

.header-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.badge {
    background: rgba(126, 34, 206, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(126, 34, 206, 0.4);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(126, 34, 206, 0.3);
    transform: translateY(-2px);
}

/* Trust Indicators */
.trust-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 25px;
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.trust-item {
    text-align: center;
}

.trust-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.trust-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* SEO Content Section */
.seo-content {
    padding: 30px;
}

.content-overview {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.content-overview h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.content-overview > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: center;
}

.benefits-section, .how-to-section, .use-cases-section, .features-highlight {
    margin-bottom: 40px;
}

.benefits-section h3, .how-to-section h3, .use-cases-section h3, .features-highlight h3 {
    color: var(--text-primary);
    font-size: 1.6rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.benefit-item {
    text-align: center;
    padding: 25px;
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(126, 34, 206, 0.15);
}

.benefit-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.benefit-item h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.step-number {
    background: var(--accent-gradient);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.use-case {
    padding: 20px;
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    border-left: 4px solid #ff9800;
    transition: all 0.3s ease;
}

.use-case:hover {
    border-color: #ff9800;
    transform: translateY(-2px);
}

.use-case h4 {
    color: #ff9800;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.use-case p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.features-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.features-list li {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    padding: 10px 0;
}

/* Footer */
.footer {
    background: var(--hover-bg);
    border-top: 1px solid var(--border-color);
    padding: 30px;
    text-align: center;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-content p:last-child {
    margin-bottom: 0;
}

.footer-note {
    font-style: italic;
    opacity: 0.8;
    font-size: 0.85rem;
    margin-top: 15px;
}

.footer-copyright {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-copyright strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* SEO Content Block */
.seo-content-block {
    margin-top: 40px;
    padding: 30px;
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.seo-content-block h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.seo-content-block p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.advantages-list {
    list-style: none;
    padding: 0;
}

.advantages-list li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.advantages-list li::before {
    content: "🎯";
    position: absolute;
    left: 0;
    top: 0;
}

.advantages-list strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Sección de carga */
.upload-section {
    padding: 30px;
}

.upload-area {
    background: var(--bg-card);
    border: 3px dashed var(--border-color);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--accent-color);
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: var(--accent-color);
    background: var(--hover-bg);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(126, 34, 206, 0.15);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: grayscale(0.3);
}

.upload-area h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Botones */
.btn-primary, .btn-secondary, .btn-download, .btn-download-all {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(126, 34, 206, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-download {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 0.85rem;
    padding: 8px 16px;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-download-all {
    background: var(--accent-gradient);
    color: white;
}

.btn-download-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(126, 34, 206, 0.4);
}

/* Sección de procesamiento */
.processing-section {
    padding: 0 30px 30px;
}

.progress-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    width: 0%;
    transition: width 0.3s ease;
}

#progressText {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Información del PDF */
.pdf-info {
    padding: 0 30px 30px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.info-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.info-stats span {
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Controles */
.controls-section {
    padding: 0 30px 30px;
}

.controls-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.range-selector {
    margin-bottom: 20px;
}

.range-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-primary);
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.range-inputs input {
    padding: 10px;
    background: var(--hover-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    width: 80px;
    text-align: center;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.range-inputs input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.1);
}

.range-inputs span {
    color: var(--text-secondary);
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Sección de páginas */
.pages-section {
    padding: 0 30px 30px;
}

.pages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.pages-header h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
}

.selection-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.selection-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.action-buttons-main {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.action-buttons-bottom {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.range-selector-pages {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.range-selection-full {
    width: 100%;
    margin-bottom: 15px;
}

.range-selection-full label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.quality-info-fixed {
    margin-top: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    text-align: center;
}

.selection-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.page-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.page-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(126, 34, 206, 0.15);
}

.page-item.selected {
    border-color: var(--accent-color);
    border-width: 2px;
    background: var(--hover-bg);
    box-shadow: 0 8px 25px rgba(126, 34, 206, 0.3);
}

.page-item.selected::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-gradient);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(126, 34, 206, 0.4);
    z-index: 2;
}

.order-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    z-index: 3;
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.page-preview {
    width: 100%;
    max-width: 150px;
    height: 200px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 0 auto 15px;
    background: var(--hover-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-preview canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
}

.page-number {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Mensajes de error */
.error-message {
    padding: 0 30px 30px;
}

.error-content {
    background: var(--bg-card);
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.error-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 15px;
}

.error-content p {
    margin-bottom: 20px;
    font-weight: 500;
    color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .fixed-controls {
        top: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .theme-text,
    .language-text {
        display: none;
    }
    
    .theme-toggle,
    .language-btn {
        padding: 8px 14px;
    }
    
    .header {
        padding: 40px 20px 35px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .upload-section,
    .processing-section,
    .pdf-info,
    .controls-section,
    .pages-section,
    .seo-content {
        padding: 0 20px 20px;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .pages-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .range-inputs {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn-primary,
    .action-buttons .btn-secondary {
        width: 100%;
    }
    
    .pages-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .selection-controls {
        width: 100%;
    }
    
    .selection-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .selection-buttons .btn-secondary {
        width: 100%;
    }
    
    .action-buttons-main,
    .action-buttons-bottom {
        width: 100%;
        flex-direction: column;
    }
    
    .action-buttons-main .btn-primary,
    .action-buttons-main .btn-download-all,
    .action-buttons-bottom .btn-primary,
    .action-buttons-bottom .btn-download-all {
        width: 100%;
    }
    
    .range-selector-pages {
        padding: 15px;
    }
    
    .range-selection-full {
        width: 100%;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .disclaimer-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-indicators {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-overview,
    .disclaimer-section,
    .faq-section {
        padding: 25px;
    }
    
    .content-overview h2 {
        font-size: 1.6rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .trust-indicators {
        grid-template-columns: 1fr;
    }
    
    .trust-number {
        font-size: 1.5rem;
    }
    
    .header h1 {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .upload-area h3 {
        font-size: 1.2rem;
    }
    
    .pages-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .page-preview {
        height: 160px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.upload-section, .processing-section, .pdf-info, .controls-section, .pages-section {
    animation: fadeIn 0.5s ease;
}

/* Estados de carga */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Disclaimer Section */
.disclaimer-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-left: 4px solid #ff9800;
}

.disclaimer-section h2 {
    color: var(--text-primary);
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.disclaimer-intro {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 500;
}

.disclaimer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.disclaimer-item {
    background: var(--hover-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.disclaimer-item:hover {
    border-color: #ff9800;
    transform: translateY(-2px);
}

.disclaimer-item h3 {
    color: #ff9800;
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.disclaimer-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.disclaimer-footer {
    background: var(--hover-bg);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #ef4444;
}

.disclaimer-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.disclaimer-footer p:last-child {
    margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.faq-section h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* AI SEO Content */
.ai-seo-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.ai-content-wrapper h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.topic-section {
    margin-bottom: 35px;
}

.topic-section h3 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.topic-section p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.use-cases-detailed {
    list-style: none;
    padding: 0;
}

.use-cases-detailed li {
    color: #666;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.use-cases-detailed li::before {
    content: "📋";
    position: absolute;
    left: 0;
    top: 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.comparison-item {
    padding: 25px;
    border-radius: 12px;
    border: 2px solid;
}

.comparison-item.positive {
    background: #f0fff4;
    border-color: #34a853;
}

.comparison-item.negative {
    background: #fff5f5;
    border-color: #ea4335;
}

.comparison-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.comparison-item.positive h4 {
    color: #34a853;
}

.comparison-item.negative h4 {
    color: #ea4335;
}

.comparison-item ul {
    list-style: none;
    padding: 0;
}

.comparison-item li {
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.comparison-item.positive li::before {
    content: "✅";
    position: absolute;
    left: 0;
}

.comparison-item.negative li::before {
    content: "❌";
    position: absolute;
    left: 0;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.footer-content p {
    color: white;
    margin-bottom: 15px;
    line-height: 1.6;
}



.footer-note {
    font-style: italic;
    opacity: 0.8;
    font-size: 0.9rem;
    margin-top: 15px;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .disclaimer-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-indicators {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header-badges {
        flex-direction: column;
        align-items: center;
    }
    

    
    .content-overview, .disclaimer-section, .faq-section, .seo-content-block {
        padding: 25px;
    }
    
    .content-overview h2 {
        font-size: 1.6rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .trust-indicators {
        grid-template-columns: 1fr;
    }
    
    .trust-number {
        font-size: 1.5rem;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-seo-content {
        padding: 25px;
    }
}