/*
 * Certificaciones Page Styles
 * Estilos específicos para la página de certificaciones con patrón master-detail
 */

/*===============================
========== Certificaciones Cards (Desktop) ==========
===============================*/
.cert-item-wrapper {
    margin-bottom: 15px;
}

.cert-item {
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cert-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    min-height: 100px;
}

/* Grid style cards (desktop only) */
.cert-card-grid {
    padding: 20px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-card:hover {
    border-color: #00a79d;
    box-shadow: 0 4px 12px rgba(0, 167, 157, 0.15);
    transform: translateY(-2px);
}

.cert-item.active .cert-card {
    background: white;
    border-color: black;
    box-shadow: 0 6px 20px rgba(0, 167, 157, 0.25);
}

.cert-item.active .cert-card h4,
.cert-item.active .cert-card p {
    color: #ffffff;
}

.cert-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

/* Grid icon style (larger) */
.cert-icon-grid {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-icon i {
    font-size: 32px;
    color: #00a79d;
    transition: all 0.3s ease;
}

.cert-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.cert-icon-grid img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.cert-info h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 500;
    color: #333333;
    transition: all 0.3s ease;
}

.cert-info p {
    margin: 0;
    font-size: 14px;
    color: #666666;
    transition: all 0.3s ease;
}

/*===============================
========== Detail Panel (Desktop) ==========
===============================*/
.cert-detail {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 30px;
    min-height: 400px;
}

.cert-detail-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 500;
    color: #333333;
}

.cert-detail-content h3 i {
    margin-right: 10px;
}

.cert-detail-content h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 400;
    color: #666666;
}

.cert-detail-content p.lead {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

/*===============================
========== Mobile Accordion Styles ==========
===============================*/
#certifications-accordion .panel {
    border-radius: 4px;
    margin-bottom: 10px;
}

#certifications-accordion .panel-heading {
    background-color: #f8f8f8;
    border-radius: 4px;
}

#certifications-accordion .panel-title a {
    display: block;
    padding: 15px 20px;
    color: #333333;
    text-decoration: none;
    font-weight: 500;
}

#certifications-accordion .panel-title a:hover {
    color: #00a79d;
}

#certifications-accordion .panel-title a i {
    margin-right: 10px;
    color: #00a79d;
}

#certifications-accordion .panel-title a img.cert-accordion-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 10px;
    vertical-align: middle;
}

#certifications-accordion .panel-body {
    padding: 20px;
}
