/* Icebox Academy Frontend Styles */

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

.icebox-hero {
    background: linear-gradient(135deg, #0f2540 0%, #1a4d6d 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 40px;
}

.icebox-hero h1 {
    font-size: 36px;
    margin: 0 0 15px;
    font-weight: 600;
}

.icebox-hero p {
    font-size: 16px;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Grid de cursos */
.icebox-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.course-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.course-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.course-thumbnail {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #00d9a3 0%, #0f2540 100%);
    background-size: cover;
    background-position: center;
}

.course-body {
    padding: 20px;
}

.course-body h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: #0f2540;
}

.course-body p {
    margin: 0 0 15px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 12px;
    color: #999;
}

.course-meta .duration {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-meta .price {
    font-weight: 600;
    color: #0f2540;
    font-size: 14px;
}

.btn-buy {
    width: 100%;
    padding: 10px;
    background: #0f2540;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-buy:hover {
    background: #00d9a3;
    color: #0f2540;
}

/* Cómo funciona */
.icebox-how-it-works {
    background: #f9f9f9;
    padding: 40px 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.icebox-how-it-works h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #0f2540;
}

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

.step {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #00d9a3;
    color: #0f2540;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 24px;
    margin: 0 auto 15px;
}

.step h4 {
    margin: 10px 0;
    color: #0f2540;
}

.step p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modal-content h3 {
    margin: 0 0 20px;
    color: #0f2540;
}

.close {
    color: #999;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #0f2540;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.modal-content input:focus {
    outline: none;
    border-color: #00d9a3;
    box-shadow: 0 0 0 3px rgba(0, 217, 163, 0.1);
}

.btn-primary {
    padding: 12px;
    background: #0f2540;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #00d9a3;
    color: #0f2540;
}

/* Login form */
.icebox-login-form {
    background: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
}

.icebox-login-form h3 {
    text-align: center;
    color: #0f2540;
    margin-bottom: 25px;
}

.icebox-login-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.icebox-login-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.icebox-login-form button {
    padding: 12px;
    background: #0f2540;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.icebox-login-form button:hover {
    background: #00d9a3;
    color: #0f2540;
}

/* User downloads */
.icebox-user-downloads {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.icebox-user-downloads h3 {
    color: #0f2540;
    margin-bottom: 20px;
}

.icebox-user-downloads table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.icebox-user-downloads th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #0f2540;
    border-bottom: 2px solid #ddd;
}

.icebox-user-downloads td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.icebox-user-downloads a.btn-download {
    display: inline-block;
    padding: 8px 16px;
    background: #0f2540;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s;
}

.icebox-user-downloads a.btn-download:hover {
    background: #00d9a3;
    color: #0f2540;
}

.icebox-user-downloads .expired {
    color: #999;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .icebox-courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .icebox-hero {
        padding: 40px 20px;
    }
    
    .icebox-hero h1 {
        font-size: 24px;
    }
    
    .course-body h3 {
        font-size: 14px;
    }
    
    .modal-content {
        width: 95%;
        margin: 100px auto;
    }
}
