/* ========================================
   FEROD DASHBOARD CSS - VERSIÓN OPTIMIZADA
   ======================================== */

/* ===== ESTILOS DEL DASHBOARD EN TIEMPO REAL ===== */

.realtime-dashboard {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.realtime-dashboard::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"><circle cx="20" cy="20" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="0.5" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 30s infinite linear;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 50px;
}

.dashboard-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.dashboard-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.realtime-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.metric-card-realtime {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card-realtime::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.metric-card-realtime:hover::before {
    left: 100%;
}

.metric-card-realtime:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.metric-icon-realtime {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    position: relative;
}

.metric-icon-realtime.animated {
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.metric-value-realtime {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
}

.metric-label-realtime {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 15px;
}

.metric-change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
}

.metric-change.positive {
    color: #00ff88;
}

.metric-change.negative {
    color: #ff6b6b;
}

.metric-change.neutral {
    color: rgba(255, 255, 255, 0.7);
}

.progress-indicator {
    margin-top: 15px;
}

.progress-bar-realtime {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    border-radius: 3px;
    transition: width 1s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    font-size: 12px;
    opacity: 0.8;
}

.live-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.chart-container-realtime {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.chart-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.chart-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    opacity: 0.8;
}

.chart-canvas {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    position: relative;
}

.activity-feed {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 400px;
    overflow-y: auto;
}

.activity-feed h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid #00ff88;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.activity-item.new {
    animation: fadeInSlide 0.5s ease;
    border-left-color: #00ccff;
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.activity-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.activity-description {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 11px;
    opacity: 0.6;
}

.status-indicators {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: #00ff88;
}

.status-dot.warning {
    background: #ffaa00;
}

.status-dot.offline {
    background: #ff6b6b;
}

.status-label {
    font-size: 14px;
    font-weight: 600;
}

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

.env-metric {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.env-metric-icon {
    font-size: 24px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.env-metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'JetBrains Mono', monospace;
}

.env-metric-label {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.env-metric-range {
    font-size: 11px;
    opacity: 0.6;
}

.env-metric-range.optimal {
    color: #00ff88;
}

.env-metric-range.warning {
    color: #ffaa00;
}

.env-metric-range.critical {
    color: #ff6b6b;
}

.production-counter {
    text-align: center;
    margin: 40px 0;
}

.production-counter h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.counter-display {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    margin: 0 auto;
}

.counter-value {
    font-size: 4rem;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.counter-label {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
}

.counter-rate {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 10px;
}

/* ===== SECCIÓN APLICACIONES WEB - DASHBOARD INTEGRADO ===== */

/* Fondo de la sección */
.apps-web-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0;
    position: relative;
}

.apps-web-section::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="apps-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(79,195,247,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23apps-grid)"/></svg>');
    opacity: 0.5;
}

/* Header de sección */
.apps-web-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.apps-web-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.apps-web-section .section-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Estadísticas de aplicaciones */
.apps-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.apps-stats-grid .stat-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.apps-stats-grid .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.apps-stats-grid .stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.apps-stats-grid .stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.apps-stats-grid .stat-content p {
    color: #64748b;
    font-weight: 500;
}

/* Acciones de aplicaciones */
.apps-actions-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.apps-actions-section .btn-primary,
.apps-actions-section .btn-secondary,
.apps-actions-section .btn-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.apps-actions-section .btn-primary {
    background: linear-gradient(135deg, #1a4b5c, #2a7a5a);
    color: white;
}

.apps-actions-section .btn-primary:hover {
    background: linear-gradient(135deg, #2a7a5a, #1a4b5c);
    transform: translateY(-2px);
}

.apps-actions-section .btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.apps-actions-section .btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.apps-actions-section .btn-info {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.apps-actions-section .btn-info:hover {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    transform: translateY(-1px);
}

/* Lista de aplicaciones */
.apps-list-container {
    position: relative;
    z-index: 2;
}

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

.apps-list-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.search-bar {
    position: relative;
    min-width: 300px;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

.search-bar i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.875rem;
}

/* Items de aplicaciones */
.apps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.app-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.app-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.app-icon-large {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.app-details {
    flex: 1;
}

.app-details h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.app-description {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.app-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.app-url,
.app-status,
.app-size {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.app-url {
    background: #eff6ff;
    color: #1e40af;
}

.app-status {
    background: #f0fdf4;
    color: #166534;
}

.app-status.building {
    background: #fef3c7;
    color: #92400e;
}

.app-size {
    background: #f3f4f6;
    color: #374151;
}

/* Acciones de aplicaciones */
.app-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-action {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.btn-action:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-1px);
}

.btn-action.danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.btn-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== MODALES ===== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-content.large {
    max-width: 900px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.close {
    color: #64748b;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #1e293b;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Formularios */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Subdominio input */
.subdomain-input {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.subdomain-input input {
    border: none;
    padding: 0.75rem;
    flex: 1;
}

.subdomain-suffix {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-family: monospace;
}

/* Subida de archivos */
.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: #4fc3f7;
    background: #f0f9ff;
}

.file-upload-content i {
    font-size: 2rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.file-upload-content p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.file-upload-content small {
    color: #9ca3af;
    font-size: 0.75rem;
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Checkboxes personalizados */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #4fc3f7;
    border-color: #4fc3f7;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Configuración del servidor */
.config-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.tab-btn.active {
    color: #1e293b;
    border-bottom-color: #4fc3f7;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-block h5 {
    color: #4fc3f7;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Notificaciones */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
    min-width: 300px;
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
}

.notification-content i {
    font-size: 1rem;
}

.notification-success .notification-content i {
    color: #10b981;
}

.notification-error .notification-content i {
    color: #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .apps-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .apps-actions-section {
        flex-direction: column;
        align-items: center;
    }
    
    .apps-actions-section .btn-primary,
    .apps-actions-section .btn-secondary,
    .apps-actions-section .btn-info {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .apps-list-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-bar {
        min-width: auto;
    }
    
    .app-item {
        flex-direction: column;
        text-align: center;
    }
    
    .app-info {
        flex-direction: column;
        text-align: center;
    }
    
    .app-meta {
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .config-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        text-align: center;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .apps-web-section {
        padding: 40px 0;
    }
    
    .apps-web-section .section-header h2 {
        font-size: 2rem;
    }
    
    .apps-stats-grid .stat-card {
        padding: 1.5rem;
    }
    
    .apps-stats-grid .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

/* ===== ACCESIBILIDAD ===== */

/* Focus visible para navegación por teclado */
.btn-action:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-info:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #4fc3f7;
    outline-offset: 2px;
}

/* Modo alto contraste */
@media (prefers-contrast: high) {
    .app-item {
        border-width: 2px;
    }
    
    .btn-action {
        border: 1px solid #000;
    }
    
    .modal-content {
        border: 2px solid #000;
    }
}

/* Reducir movimiento para usuarios sensibles */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .pulse-dot {
        animation: none;
    }
    
    .metric-icon-realtime.animated {
        animation: none;
    }
}