/**
 * Carmen AI - App Download Page Styles
 * Estilos para la página de descarga de la aplicación
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Header */
.app-header {
    text-align: center;
    padding: 3rem 0 2rem 0;
    color: white;
}

.app-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.app-logo img {
    width: 80px;
    height: auto;
}

.app-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.app-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Content */
.app-main {
    background: white;
    border-radius: 30px 30px 0 0;
    margin-top: 2rem;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

.app-description {
    padding: 3rem 0;
    text-align: center;
}

.app-description h2 {
    font-size: 2.2rem;
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 600;
}

.app-description > p {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    line-height: 1.7;
}

/* Features */
.app-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature p {
    color: #718096;
    font-size: 0.95rem;
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 4rem 0;
    text-align: center;
}

.download-section h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.download-section > p {
    color: #4a5568;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.download-btn {
    display: block;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.download-btn.recommended {
    position: relative;
}

.download-btn.recommended::before {
    content: "Recomendado para tu dispositivo";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #48bb78;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
}

.download-btn img {
    height: 60px;
    width: auto;
    display: block;
}

/* Smart Download */
.smart-download {
    padding: 2rem 0;
    border-top: 1px solid #e2e8f0;
}

.smart-download p {
    margin-bottom: 1rem;
    color: #4a5568;
    font-weight: 500;
}

.smart-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.smart-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.smart-download .icon {
    font-size: 1.2rem;
}

.smart-download small {
    display: block;
    margin-top: 0.5rem;
    color: #718096;
    font-size: 0.85rem;
}

/* App Info */
.app-info {
    padding: 3rem 0;
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.info-item {
    text-align: center;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.info-item strong {
    display: block;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-item span {
    color: #4a5568;
    font-size: 0.95rem;
}

/* Footer */
.app-footer {
    background: #2d3748;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo img {
    height: 30px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #4a5568;
}

.footer-bottom p {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .app-title {
        font-size: 2.5rem;
    }
    
    .app-subtitle {
        font-size: 1.1rem;
    }
    
    .app-description h2 {
        font-size: 1.8rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn img {
        height: 50px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .app-logo {
        width: 100px;
        height: 100px;
    }
    
    .app-logo img {
        width: 65px;
    }
    
    .app-title {
        font-size: 2rem;
    }
    
    .app-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature {
        padding: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-description,
.download-section,
.app-info {
    animation: fadeInUp 0.6s ease-out;
}

.download-btn {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.feature {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.feature:nth-child(2) {
    animation-delay: 0.2s;
}

.feature:nth-child(3) {
    animation-delay: 0.3s;
}