* {
    box-sizing: border-box;
}

body.admin-mode {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    color: #444;
    background-color: #f4f6f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* LAYOUT GENERAL */
.admin-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* MAIN CONTENT */
.admin-main-content {
    flex: 1;
    min-width: 0;
    /* CRÍTICO: Permite que el contenido se encoja en flexbox */
    padding: 30px;
    overflow-y: auto;
    background-color: #fdf6d6;
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    .admin-main-content {
        padding: 15px 10px;
        width: 100%;
        overflow-x: hidden;
    }
}

.no-transition {
    transition: none !important;
}

/* CARDS / CONTENIDO */
.admin-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 100%;
}

@media (max-width: 600px) {
    .admin-card {
        padding: 15px;
    }
}

.admin-card-title {
    color: #3185cb;
    font-family: 'Lobster Two', cursive;
    font-size: 32px;
    font-weight: 700;
    margin-top: 0;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid #fee6b4;
    padding-bottom: 10px;
    margin-bottom: 25px;
    gap: 15px;
}

.admin-summary-inline {
    font-size: 14px;
    color: #666;
    font-family: 'Lato', sans-serif;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .admin-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Modulo En Construcción */
.admin-construction-card {
    padding: 60px 20px;
    text-align: center;
    border: 3px dashed #fee6b4;
    border-radius: 12px;
    background: #fdfdfd;
    color: #a2825c;
    margin-top: 20px;
}

.admin-construction-card i {
    color: #ffdb5e;
    margin-bottom: 15px;
    display: block;
}

.admin-construction-card h2 {
    font-size: 32px;
    color: #3185cb;
    margin-bottom: 15px;
}

/* DASHBOARD STATS */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    text-decoration: none;
    /* Quitar subrayado */
    color: inherit;
    /* Heredar color de texto */
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #3185cb;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-info h3 {
    margin: 0;
    font-size: 28px;
    color: #333;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.stat-info h3 small {
    font-size: 14px;
    color: #888;
    font-weight: normal;
}

.stat-info p {
    margin: 3px 0 8px 0;
    font-size: 13px;
    color: #666;
    font-weight: bold;
}

/* BARRAS DE PROGRESO */
.stat-progress-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 5px;
}

.stat-progress-fill {
    height: 100%;
    background: #3185cb;
    /* Color por defecto */
    border-radius: 10px;
    transition: width 0.5s ease-out;
}

/* Sincronización de colores con las cartas */
.stat-card.blue .stat-progress-fill {
    background: #2196f3;
}

.stat-card.green .stat-progress-fill {
    background: #4caf50;
}

.stat-card.yellow .stat-progress-fill {
    background: #fbc02d;
}

.stat-card.purple .stat-progress-fill {
    background: #9c27b0;
}

.stat-card.orange .stat-progress-fill {
    background: #ff9800;
}

.stat-card.red .stat-progress-fill {
    background: #f44336;
}

/* Colores de cartas */
.stat-card.blue .stat-icon {
    background: #e3f2fd;
    color: #2196f3;
}

.stat-card.green .stat-icon {
    background: #e8f5e9;
    color: #4caf50;
}

.stat-card.yellow .stat-icon {
    background: #fff9c4;
    color: #fbc02d;
}

.stat-card.purple .stat-icon {
    background: #f3e5f5;
    color: #9c27b0;
}

.stat-card.orange .stat-icon {
    background: #fff3e0;
    color: #ff9800;
}

.stat-card.red .stat-icon {
    background: #ffebee;
    color: #f44336;
}

/* TIMELINE */
.section-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    color: #3185cb;
    border-bottom: 1px solid #fee6b4;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.activity-timeline {
    position: relative;
    padding-left: 30px;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: #fee6b4;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-point {
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #3185cb;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #fee6b4;
}

.timeline-content {
    background: #fdfdfd;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.timeline-time {
    font-size: 12px;
    color: #999;
}

.timeline-content p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.timeline-content span {
    color: #3185cb;
    font-weight: bold;
}

.empty-logs {
    text-align: center;
    padding: 30px;
    color: #999;
}

.empty-logs i {
    font-size: 40px;
    margin-bottom: 10px;
}

/* QUICK ACTIONS GRID */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.quick-btn {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #3185cb;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-btn i {
    font-size: 28px;
}

.quick-btn span {
    font-size: 14px;
    font-weight: bold;
    font-family: 'Lato', sans-serif;
}

.quick-btn:hover {
    background: #3185cb;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(49, 133, 203, 0.2);
    border-color: #3185cb;
}

.quick-btn.site-preview {
    background: #FFDB5E;
    color: #A2825C;
    border-color: #fee6b4;
}

.quick-btn.site-preview:hover {
    background: #fee6b4;
    color: #A2825C;
    box-shadow: 0 5px 15px rgba(255, 219, 94, 0.2);
}