/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 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 */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px 0;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 10px;
    font-weight: 700;
}

.header h1 i {
    color: #e74c3c;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.subtitle {
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
}

/* Days Navigation */
.days-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.days-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.day-btn {
    flex: 1;
    min-width: 120px;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.day-btn i {
    font-size: 1.3rem;
    color: #667eea;
}

.day-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.day-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.day-btn.active i {
    color: white;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

#day-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.day-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

.day-header h2 {
    font-size: 2.2rem;
    color: #667eea;
    margin-bottom: 10px;
}

.day-header .day-info {
    font-size: 1rem;
    color: #777;
    font-weight: 500;
}

/* Timeline Item */
.timeline-item {
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #ccc;
    background: #fafafa;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transform: translateX(5px);
}

.timeline-item.suplemento {
    border-left-color: #27ae60;
    background: #f0fdf4;
}

.timeline-item.comida {
    border-left-color: #3498db;
    background: #eff6ff;
}

.timeline-item.ejercicio {
    border-left-color: #f39c12;
    background: #fffbeb;
}

.timeline-item.medicion {
    border-left-color: #e74c3c;
    background: #fef2f2;
}

.timeline-item.hidratacion {
    border-left-color: #00bcd4;
    background: #ecfeff;
}

.time-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.time {
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 8px;
}

.time i {
    font-size: 1.1rem;
}

.category-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge.suplemento {
    background: #27ae60;
    color: white;
}

.category-badge.comida {
    background: #3498db;
    color: white;
}

.category-badge.ejercicio {
    background: #f39c12;
    color: white;
}

.category-badge.medicion {
    background: #e74c3c;
    color: white;
}

.category-badge.hidratacion {
    background: #00bcd4;
    color: white;
}

.activity-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.activity-details {
    margin-bottom: 15px;
}

.detail-item {
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
}

.detail-item strong {
    color: #667eea;
    display: inline-block;
    min-width: 120px;
}

.detail-list {
    list-style: none;
    margin-top: 10px;
}

.detail-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.detail-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Checkbox */
.checkbox-wrapper {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #e0e0e0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(102, 126, 234, 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #27ae60;
}

.checkbox-label.completed {
    color: #27ae60;
    text-decoration: line-through;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-print, .btn-reset {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-print {
    background: #667eea;
    color: white;
}

.btn-print:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-reset {
    background: #e74c3c;
    color: white;
}

.btn-reset:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* Footer */
.footer {
    background: white;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.footer p {
    margin-bottom: 10px;
    color: #555;
}

.footer strong {
    color: #e74c3c;
}

.footer-meta {
    font-size: 0.9rem;
    color: #777;
}

/* Weekly Progress Section */
.weekly-progress-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.weekly-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.weekly-progress-header h3 {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.weekly-progress-header h3 i {
    color: #3498db;
}

.weekly-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-progress-bars {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.day-progress-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.day-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    text-align: center;
}

.progress-bar-container {
    height: 120px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.progress-bar-fill {
    width: 100%;
    transition: height 0.5s ease;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.day-percentage {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.progress-info {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.progress-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-info i {
    color: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
    /* Compact hero */
    .header {
        padding: 20px 0;
    }
    .header h1 {
        font-size: 1.6rem;
    }
    .subtitle {
        font-size: 0.9rem;
    }

    /* Remove sticky behavior on mobile */
    .days-nav {
        position: static;
        top: auto;
        box-shadow: 0 1px 8px rgba(0,0,0,0.08);
    }

    /* Rest of mobile styles */
    .day-btn {
        min-width: 100px;
        padding: 12px 15px;
        font-size: 0.85rem;
    }
    .day-btn i {
        font-size: 1.1rem;
    }
    #day-content {
        padding: 25px 20px;
    }
    .day-header h2 {
        font-size: 1.8rem;
    }
    .timeline-item {
        padding: 20px 15px;
    }
    .time {
        font-size: 1.1rem;
    }
    .activity-title {
        font-size: 1.1rem;
    }
    .detail-item strong {
        display: block;
        margin-bottom: 5px;
    }
    .action-buttons {
        flex-direction: column;
    }
    .btn-print, .btn-reset {
        width: 100%;
        justify-content: center;
    }
    .weekly-progress-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .weekly-stats {
        width: 100%;
        justify-content: space-around;
    }
    .day-progress-bars {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    .progress-bar-container {
        height: 80px;
    }
}

@media (max-width: 480px) {
    /* Even more compact hero */
    .header {
        padding: 15px 0;
    }
    .header h1 {
        font-size: 1.4rem;
    }
    .subtitle {
        font-size: 0.85rem;
    }

    /* Remove sticky (already handled above, but safe to repeat if needed) */
    .days-nav {
        position: static;
        top: auto;
    }

    /* Rest of small-mobile styles */
    .days-buttons {
        gap: 8px;
    }
    .day-btn {
        min-width: 80px;
        padding: 10px;
        font-size: 0.8rem;
    }
    .day-btn span {
        font-size: 0.75rem;
    }
    .day-progress-bars {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-value {
        font-size: 1.5rem;
    }
    .weekly-progress-header h3 {
        font-size: 1.2rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    .days-nav, .action-buttons, .footer, .weekly-progress-container {
        display: none;
    }
    #day-content {
        box-shadow: none;
        padding: 20px;
    }
    .timeline-item {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .checkbox-label input[type="checkbox"] {
        border: 2px solid #333;
        appearance: none;
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        background: white;
    }
}