/* 
 * UTyPCB - Estilos Personalizados
 * Centro de Capacitación en Tecnología
 */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f59e0b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
}

/* Base */
body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    padding: 0.5rem 1rem !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background-image: url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?w=1920');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(29, 78, 216, 0.9) 100%);
}

.min-vh-75 {
    min-height: 75vh;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Cards */
.card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
}

.category-card:hover .category-icon i {
    transform: scale(1.1);
}

.category-icon i {
    transition: transform 0.3s ease;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.6rem 1.25rem;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #000;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border-color: #e2e8f0;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 6px;
}

/* Nav Tabs */
.nav-tabs {
    border-bottom: 2px solid #e2e8f0;
}

.nav-tabs .nav-link {
    color: var(--gray-color);
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 1rem 1.5rem;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border-bottom-color: var(--primary-color);
}

/* List Group */
.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.list-group-item-action:hover {
    background-color: #f1f5f9;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: #eff6ff;
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #e2e8f0;
}

/* Footer */
footer {
    background: linear-gradient(to bottom, #1e293b, #0f172a);
}

footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

.social-links a {
    transition: all 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    color: var(--secondary-color) !important;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
}

/* Feature Icon */
.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Contact Icons - Fixed size */
.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
}

/* Checkout Payment Options */
.form-check.card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check.card:hover {
    border-color: var(--primary-color) !important;
}

.form-check-input:checked ~ .form-check-label .card,
.form-check.card:has(.form-check-input:checked) {
    border-color: var(--primary-color) !important;
    background-color: #eff6ff;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease forwards;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Price Styles */
.text-decoration-line-through {
    opacity: 0.6;
}

/* Sticky elements */
.sticky-top {
    z-index: 1020;
}

/* Image Styles */
.card-img-top {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.rounded-3 {
    border-radius: 12px !important;
}

/* Scrollbar Custom (opcional) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* =====================================================
   CURSO DETAIL PAGE STYLES
   ===================================================== */

/* Course Image Container */
.course-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.course-main-image {
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-image-container:hover .course-main-image {
    transform: scale(1.02);
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.discount-percent {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.discount-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Quick Info Cards */
.quick-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.quick-info-card:hover {
    border-color: var(--primary-color);
    background: #eff6ff;
}

.quick-info-card i {
    font-size: 1.5rem;
}

.quick-info-card small {
    font-size: 0.75rem;
}

.quick-info-card strong {
    font-size: 0.9rem;
}

/* Instructor Card */
.instructor-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.instructor-avatar {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instructor-avatar i {
    font-size: 1.5rem;
}

/* Course Tabs */
.course-tabs {
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
    padding: 10px 10px 0;
}

.course-tabs .nav-link {
    color: var(--gray-color);
    border-radius: 10px 10px 0 0;
    padding: 12px 20px;
    font-weight: 500;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
}

.course-tabs .nav-link:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.course-tabs .nav-link.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* Course Tab Content */
.course-tab-content {
    background: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 30px;
}

/* Learn List */
.learn-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.learn-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.learn-list li:last-child {
    border-bottom: none;
}

.learn-list i {
    font-size: 1rem;
}

/* Temario List */
.temario-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.temario-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.temario-item:hover {
    border-color: var(--primary-color);
    background: #eff6ff;
    transform: translateX(5px);
}

.temario-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.temario-content {
    flex: 1;
}

.temario-content h6 {
    color: var(--dark-color);
}

/* Materials List */
.materials-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.materials-list li {
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

/* Enrollment Card */
.enrollment-card {
    border-radius: 16px;
    overflow: hidden;
}

.enrollment-card .card-header {
    border-radius: 0;
}

/* Payment Methods */
.payment-methods {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.payment-option:last-child {
    border-bottom: none;
}

.payment-option i {
    font-size: 1.25rem;
    width: 30px;
    text-align: center;
}

.payment-option span {
    font-size: 0.9rem;
    color: var(--dark-color);
}

/* Bank Info */
.bank-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
}

.bank-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #93c5fd;
    font-size: 0.85rem;
}

.bank-detail:last-child {
    border-bottom: none;
}

.bank-detail .label {
    color: var(--gray-color);
}

.bank-detail .value {
    color: var(--dark-color);
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

/* Includes List */
.includes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.includes-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.includes-list li:last-child {
    border-bottom: none;
}

.includes-list i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* Pulse Button Animation */
.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(25, 135, 84, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

/* Responsive Course Detail */
@media (max-width: 991.98px) {
    .course-main-image {
        height: 250px;
    }
    
    .instructor-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .instructor-card .text-end {
        text-align: center !important;
    }
}

@media (max-width: 767.98px) {
    .quick-info-card {
        padding: 12px;
    }
    
    .quick-info-card i {
        font-size: 1.2rem;
    }
    
    .course-tabs .nav-link {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .course-tab-content {
        padding: 20px;
    }
    
    .payment-methods,
    .bank-info {
        padding: 15px;
    }
    
    .temario-item {
        padding: 12px 15px;
    }
}
