/* ===== ESTILOS GENERALES ===== */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2ecc71;
    --secondary-dark: #27ae60;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --success-color: #d4edda;
    --error-color: #f8d7da;
    --warning-color: #fff3cd;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f4f7f9 0%, #e8f5ff 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== ENCABEZADO ===== */
.main-header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-name {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(52, 152, 219, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
main {
    flex: 1;
    padding: 3rem 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.container {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* ===== SELECTOR DE CALIDAD ===== */
.quality-selector {
    margin: 2.5rem 0;
    text-align: left;
}

.quality-selector h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.quality-subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.quality-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quality-option {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quality-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.quality-option.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(46, 204, 113, 0.1));
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.quality-option.selected::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.quality-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.quality-icon {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.quality-title {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
    flex: 1;
}

.quality-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.quality-details {
    margin-top: 1rem;
}

.quality-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-light);
    border-radius: 3px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.quality-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.quality-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.quality-stats span {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.quality-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
    margin: 0;
}

/* Recomendación automática */
.quality-recommendation {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    display: none;
}

.quality-recommendation.visible {
    display: block;
    animation: slideIn 0.3s ease;
}

.recommendation-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.recommendation-icon {
    font-size: 1.5rem;
    color: #856404;
}

.recommendation-text {
    flex: 1;
    color: #856404;
    font-size: 0.9rem;
}

.recommendation-text strong {
    font-weight: 600;
}

.apply-recommendation {
    background: #ffc107;
    color: #856404;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-recommendation:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

/* ===== ÁREA DE DROP ===== */
.drop-area {
    border: 3px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(52, 152, 219, 0.05);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.drop-area:hover,
.drop-area.highlight {
    background: rgba(52, 152, 219, 0.1);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.drop-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.drop-area:hover::before {
    animation: shimmer 2s infinite;
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.drop-text {
    font-size: 1.3rem;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.drop-subtext {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.file-limit {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.drop-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

/* ===== BOTONES ===== */
.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.button:active {
    transform: translateY(-1px);
}

/* Botones de acción */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.unir-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.unir-btn:hover:enabled {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

.unir-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    transition: all 0.3s ease;
    min-width: 150px;
    justify-content: center;
}

.reset-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* ===== LISTA DE ARCHIVOS ===== */
.file-list {
    margin: 2rem 0;
    text-align: left;
}

.no-files {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-color);
}

.file-item {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    margin: 0.8rem 0;
    background: var(--bg-light);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
    gap: 1rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.file-item:hover {
    border-color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.file-preview {
    width: 80px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.file-item:hover .thumbnail {
    transform: scale(1.05);
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.thumbnail-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.thumbnail-placeholder span {
    font-size: 0.8rem;
    font-weight: 600;
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.file-size {
    font-size: 0.9rem;
    color: var(--text-light);
}

.file-pages {
    font-size: 0.9rem;
    color: var(--text-light);
}

.loading-pages {
    font-style: italic;
    color: var(--primary-color);
}

.remove-btn {
    background: linear-gradient(135deg, var(--accent-color), #c0392b);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.remove-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* ===== PROGRESO Y MENSAJES ===== */
.progress-container {
    margin: 2rem 0;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--bg-light);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
    animation: progressAnimation 2s infinite;
}

@keyframes progressAnimation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.progress-text {
    text-align: center;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== MENSAJES ===== */
.message {
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    display: none;
    position: relative;
}

.message.error {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border: 2px solid #f44336;
    color: #c62828;
}

.message.success {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 2px solid #4caf50;
    color: #2e7d32;
}

.message.info {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px solid #2196f3;
    color: #1565c0;
}

.message.warning {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 2px solid #ff9800;
    color: #ef6c00;
}

/* Iconos en mensajes */
.message::before {
    content: '';
    font-size: 1.2rem;
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}

.message.error::before {
    content: '❌';
}

.message.success::before {
    content: '✅';
}

.message.info::before {
    content: 'ℹ️';
}

.message.warning::before {
    content: '⚠️';
}

/* Botón de reintento */
.retry-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.retry-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Animación de shake para errores */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.message.error {
    animation: slideIn 0.3s ease, shake 0.5s ease;
}

/* ===== RESULTADOS ===== */
.result-container {
    background: linear-gradient(135deg, var(--success-color), #c8f7d4);
    border: 2px solid #c3e6cb;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin: 2rem 0;
    animation: slideIn 0.5s ease;
    display: none;
}

.result-container h3 {
    color: #155724;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.compression-stats {
    margin: 1.5rem 0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 2px solid rgba(39, 174, 96, 0.2);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item.highlight {
    font-weight: 700;
    color: #155724;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 8px;
    margin: 0 -1rem;
}

/* ===== SECCIÓN INFORMATIVA ===== */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.info-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== PIE DE PÁGINA ===== */
footer {
    background: var(--bg-white);
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    margin-top: auto;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .quality-options {
        grid-template-columns: 1fr;
    }
    
    .quality-stats {
        grid-template-columns: 1fr;
    }
    
    .quality-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .quality-badge {
        align-self: flex-start;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .unir-btn,
    .reset-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .file-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .remove-btn {
        align-self: center;
    }
    
    .drop-area {
        padding: 2rem 1rem;
    }
    
    .info-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-name {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    
    .quality-option {
        padding: 1rem;
    }
}

/* ===== ICONOS ===== */
.icon {
    font-size: 1.2em;
}

/* Estados de carga */
.btn-loading {
    display: none;
}

.loading .btn-text {
    display: none;
}

.loading .btn-loading {
    display: inline-block;
}

/* Efectos de hover suaves */
.button,
.unir-btn,
.reset-btn,
.download-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible para accesibilidad */
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Server Status */
.server-status {
    margin: 1rem 0;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    background: var(--bg-light);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff9800;
    animation: pulse 1.5s infinite;
}

.status-indicator.online .status-dot {
    background: #4caf50;
    animation: none;
}

.status-indicator.offline .status-dot {
    background: #f44336;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: none;
    -webkit-text-fill-color: white;
}

.highlight {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== TOOLS SECTION ===== */
.tools-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    text-align: center;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: block;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s ease;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.tool-icon i:first-child {
    font-size: 2.5rem;
}

.merge-icon, .compress-icon, .word-icon, .crop-icon, .lock-icon, .image-icon {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--secondary-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    border: 3px solid var(--bg-white);
}

.tool-content h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-align: center;
}

.tool-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.6;
}

.tool-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.tool-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.tool-features i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.tool-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    transition: color 0.3s ease;
}

.tool-card:hover .tool-cta {
    color: var(--primary-dark);
}

.coming-soon {
    opacity: 0.8;
    position: relative;
}

.coming-soon::after {
    content: 'Próximamente';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== ADS SECTION ===== */
.ads-section {
    padding: 2rem 0;
    background: var(--bg-light);
}

.ad-container {
    max-width: 728px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    background: none;
    -webkit-text-fill-color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--secondary-dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ===== FOOTER ===== */
footer {
    background: var(--text-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.footer-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .tool-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}