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

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

/* Contenedor principal */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.update-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.date, .version {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Contenido principal */
.content {
    padding: 40px 30px;
}

.section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e8e8e8;
}

.section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #3498db;
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.1) 0%, transparent 100%);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
}

.section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #34495e;
    margin: 20px 0 10px 0;
    padding-left: 10px;
    border-left: 3px solid #e74c3c;
}

.section p {
    margin-bottom: 15px;
    color: #555;
    text-align: justify;
}

.section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.section li {
    margin-bottom: 10px;
    color: #555;
    position: relative;
}

.section li::marker {
    color: #3498db;
}

.section li strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Caja de destacado */
.highlight-box {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 1px solid #feb2b2;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.highlight-box::before {
    content: '⚠️';
    position: absolute;
    top: -10px;
    left: 20px;
    background: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 1.2rem;
}

.highlight-box p {
    margin: 0;
    color: #c53030;
    font-weight: 500;
}

/* Información del desarrollador */
.developer-info {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #3498db;
}

.developer-info p {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.developer-info p:last-child {
    margin-bottom: 0;
}

/* Permisos */
.permissions {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #bae6fd;
}

.permissions h4 {
    color: #0369a1;
    border-left-color: #0284c7;
    margin-top: 0;
}

.permissions ul {
    margin-bottom: 20px;
}

.permissions ul:last-child {
    margin-bottom: 0;
}

/* Información de contacto */
.contact-info {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #22c55e;
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-info a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #15803d;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 20px 30px;
    text-align: center;
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 5px;
}

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

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 8px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header h2 {
        font-size: 1.2rem;
    }
    
    .update-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .content {
        padding: 30px 20px;
    }
    
    .section h3 {
        font-size: 1.3rem;
        padding: 12px 15px;
    }
    
    .footer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header h2 {
        font-size: 1.1rem;
    }
    
    .content {
        padding: 20px 15px;
    }
    
    .section {
        margin-bottom: 30px;
    }
    
    .section h3 {
        font-size: 1.2rem;
        padding: 10px 12px;
    }
    
    .highlight-box,
    .developer-info,
    .permissions,
    .contact-info {
        padding: 15px;
    }
}

/* Animaciones sutiles */
.section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Mejoras de accesibilidad */
.section h3:focus,
.section h4:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .header {
        background: #2c3e50 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
