/* ================================
   CERTIFICADOS PAGE STYLES
   ================================ */

/* Section pop effect */
.section-pop {
    display: inline-block;
    position: relative;
}

.section-pop::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff7a2a, #ff6a00);
    border-radius: 2px;
}

/* Certificates Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Certificate Card */
.certificate-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 122, 42, 0.03) 0%, rgba(255, 106, 0, 0.05) 100%);
    border: 1px solid rgba(255, 122, 42, 0.15);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff7a2a, #ff6a00);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 122, 42, 0.4);
    box-shadow: 0 12px 40px rgba(255, 122, 42, 0.2);
}

.certificate-card:hover::before {
    transform: scaleX(1);
}

/* Certificate Icon (for collections) */
.certificate-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 122, 42, 0.1), rgba(255, 106, 0, 0.1));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #ff7a2a;
    transition: all 0.3s ease;
}

.certificate-card:hover .certificate-icon {
    background: linear-gradient(135deg, rgba(255, 122, 42, 0.2), rgba(255, 106, 0, 0.2));
    transform: scale(1.1);
}

/* Certificate Badge (for individual certificates) */
.certificate-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff7a2a, #ff6a00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: 0 4px 20px rgba(255, 122, 42, 0.4);
    transition: all 0.3s ease;
}

.certificate-card.individual:hover .certificate-badge {
    transform: rotate(360deg) scale(1.1);
}

/* Certificate Content */
.certificate-title {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Archivo Black', sans-serif;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.certificate-org {
    font-size: 1rem;
    color: #ff7a2a;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.certificate-date {
    font-size: 0.95rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

/* Certificate Link */
.certificate-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff7a2a;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.certificate-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff7a2a, #ff6a00);
    transition: width 0.3s ease;
}

.certificate-link:hover {
    color: #ff6a00;
    gap: 0.75rem;
}

.certificate-link:hover::after {
    width: 100%;
}

.certificate-link svg {
    transition: transform 0.3s ease;
}

.certificate-link:hover svg {
    transform: translate(2px, -2px);
}

/* View All Certificates Button */
.view-all-certificates-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
    font-weight: 700;
    font-family: 'Archivo Black', sans-serif;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #ff7a2a 0%, #ff6a00 100%);
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(255, 122, 42, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-all-certificates-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.view-all-certificates-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 122, 42, 0.6);
}

.view-all-certificates-btn:hover::before {
    left: 100%;
}

.view-all-certificates-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.view-all-certificates-btn svg {
    transition: transform 0.3s ease;
}

.view-all-certificates-btn:hover svg {
    transform: translateX(4px);
}

/* Footer Socials ya está en style-common.css */

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem auto;
}

.social-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icon-svg {
    width: 48px;
    height: 48px;
    color: white;
    transition: transform 0.3s ease, color 0.3s ease, filter 0.3s ease;
    display: inline-block;
}

.social-icon-svg:hover {
    transform: translateY(-8px) scale(1.1);
    color: #ff7a2a;
    filter: drop-shadow(0 8px 16px rgba(255,122,42,0.6));
}

.social-text {
    font-size: 1rem;
    color: #e5e7eb;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.certificate-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.certificate-card:nth-child(1) { animation-delay: 0.1s; }
.certificate-card:nth-child(2) { animation-delay: 0.2s; }
.certificate-card:nth-child(3) { animation-delay: 0.3s; }
.certificate-card:nth-child(4) { animation-delay: 0.4s; }
.certificate-card:nth-child(5) { animation-delay: 0.5s; }
.certificate-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .certificate-card {
        padding: 1.5rem;
    }

    .certificate-title {
        font-size: 1.25rem;
    }

    .certificate-icon {
        width: 64px;
        height: 64px;
    }

    .certificate-badge {
        width: 48px;
        height: 48px;
    }

    .social-icon-svg {
        width: 32px;
        height: 32px;
    }
}

/* Site Footer */
.site-footer {
    background: #000;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 122, 42, 0.1);
}

.contact-copyright {
    color: #9ca3af;
    font-size: 0.95rem;
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff7a2a, #ff6a00);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 122, 42, 0.4);
    z-index: 1000;
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 30px rgba(255, 122, 42, 0.6);
}

.scroll-to-top-btn:active {
    transform: translateY(-2px);
}
