/* certifications-style.css */
body {
    background-color: #0d1117;
    color: #c9d1d9;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: hidden;
}

.header {
    background-color: #161b22ee;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #6a29e2;
    box-shadow: 0 0 25px rgba(106, 41, 226, 0.3);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.navbar li {
    position: relative;
}

.navbar a {
    text-decoration: none;
    color: #58ff7c;
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 1.2rem;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.navbar a:hover {
    background: #6a29e233;
    border-color: #58ff7c;
    text-shadow: 0 0 15px #58ff7c;
    transform: translateY(-2px);
}

.navbar a[href="certifications.html"] {
    background: #6a29e266;
    border-color: #58ff7c;
    box-shadow: 0 0 15px rgba(88, 255, 124, 0.3);
}

.certifications-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    min-height: 100vh;
    padding: 150px 40px 80px;
    gap: 30px;
}

.certifications-header {
    position: sticky;
    top: 150px;
    height: fit-content;
    padding: 30px;
    border-right: 3px solid #6a29e2;
    text-shadow: 0 0 15px rgba(40, 236, 99, 0.4);
    /* Nuevos estilos para imagen de fondo */
    background-image: linear-gradient(rgba(13, 17, 23, 0.0), rgba(13, 17, 23, 0.7)), url('/imgs/back_dedsec.jpeg');
    background-size: cover;
    background-position: center;
    min-height: 70vh;
}

.certifications-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
        to bottom,
        rgba(106, 41, 226, 0.4) 0%,
        transparent 100%
    );
    pointer-events: none;
}

.certifications-header h1 {
    font-family: 'Pixelify Sans';
    transform: translateY(25%);
    padding-bottom: 0;
    margin-bottom: -15px;
    font-size: 4rem;
    color: #00ff37;
    margin-bottom: 20px;
}

.certifications-header h2 {
    font-family: 'Jacquard 24';
    margin-top: -1px;
    font-size: 3.7rem;
    color: #7a3ee7;
    letter-spacing: 3px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    padding: 10px;
    align-content: start;
}

.certification-card {
    background:
        linear-gradient(165deg, rgba(88, 255, 124, 0.07) 0%, rgba(106, 41, 226, 0.09) 42%, rgba(13, 17, 23, 0.96) 100%),
        #131922;
    border: 1px solid rgba(106, 41, 226, 0.55);
    border-radius: 14px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    grid-template-rows: 76px 40px 1fr;
    align-content: start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.certification-card:hover {
    transform: translateY(-6px);
    border-color: #58ff7c;
    box-shadow:
        0 20px 36px rgba(0, 0, 0, 0.36),
        0 0 26px rgba(88, 255, 124, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.certification-card::before {
    content: '';
    position: absolute;
    top: -48px;
    right: -50px;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(106, 41, 226, 0.25) 0%, rgba(106, 41, 226, 0) 68%);
    z-index: -1;
}

.certification-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #58ff7c 0%, #6a29e2 65%, transparent 100%);
    z-index: -1;
}

.certification-title {
    font-family: 'Pixelify Sans';
    color: #7bff9a;
    font-size: 1.45rem;
    line-height: 1.2;
    min-height: 2.4em;
    margin-bottom: 0;
    text-wrap: balance;
}

.certification-issuer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d6c2ff;
    font-family: 'Pixelify Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    background: rgba(106, 41, 226, 0.2);
    border: 1px solid rgba(106, 41, 226, 0.55);
    border-radius: 999px;
    padding: 5px 12px;
    width: fit-content;
}

.certification-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(88, 166, 255, 0.22);
    display: grid;
    gap: 12px;
    align-content: start;
}

.detail-item {
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: start;
    color: #9ba7b5;
    padding: 8px 10px;
    background: rgba(13, 17, 23, 0.42);
    border: 1px solid rgba(48, 54, 61, 0.7);
    border-radius: 10px;
}

.detail-label {
    color: #63b3ff;
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.detail-item > span:last-child {
    color: #d3dbe5;
    text-align: left;
    overflow-wrap: anywhere;
}

.detail-item:nth-child(2) > span:last-child {
    font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
    font-size: 0.8rem;
    line-height: 1.22;
    color: #8bd7ff;
}

.certification-details .detail-item:nth-child(1) {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px;
    min-height: 48px;
}

.certification-details .detail-item:nth-child(2) {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px;
    min-height: 60px;
}

.certification-details .detail-item:nth-child(1) .detail-label,
.certification-details .detail-item:nth-child(2) .detail-label {
    font-size: 0.8rem;
}

.certification-details .detail-item:nth-child(1) > span:last-child {
    font-size: 0.94rem;
}

.certification-details .detail-item:last-child {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px 12px;
    margin-top: 2px;
    min-height: 96px;
}

.certification-details .detail-item:last-child .detail-label {
    display: block;
    margin-bottom: 2px;
    line-height: 1.1;
}

.specializations {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.specializations span {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 3px 9px;
    border-radius: 8px;
    background: rgba(88, 255, 124, 0.11);
    border: 1px solid rgba(88, 255, 124, 0.3);
    color: #b5ffd0;
    font-size: 0.92rem;
    max-width: 100%;
}

.specializations.capability-list {
    width: 100%;
    min-width: 0;
    gap: 7px;
}

.specializations.capability-list span {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 5px 10px;
    font-size: 0.86rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
    white-space: normal;
}

@keyframes neon-pulse {
    0% { text-shadow: 0 0 10px #58ff7c; }
    50% { text-shadow: 0 0 20px #58ff7c, 0 0 30px #6a29e2; }
    100% { text-shadow: 0 0 10px #58ff7c; }
}

.neon-text {
    animation: neon-pulse 2s infinite;
}

@media (max-width: 768px) {
    .certifications-section {
        grid-template-columns: 1fr;
        padding: 130px 20px 80px;
    }
    
    .certifications-header {
        border-right: none;
        border-bottom: 3px solid #6a29e2;
        padding-bottom: 40px;
        position: static;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 4px;
    }

    .certification-card {
        padding: 18px;
    }

    .detail-item {
        grid-template-columns: 92px minmax(0, 1fr);
    }
    
    .navbar ul {
        gap: 8px;
        justify-content: center;
    }
    
    .navbar a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .certifications-header h1 {
        font-size: 2.5rem;
    }
    
    .certifications-header h2 {
        font-size: 2.2rem;
    }
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 2;
    background-color: #161b22;
    padding: 15px 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    color: #58a6ff;
    text-decoration: none;
    font-family: 'Pixelify Sans';
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #58ff7c;
    text-shadow: 0 0 15px rgba(88, 255, 124, 0.4);
}
