body.certificates-bg {
    font-family: 'Inter', Arial, sans-serif;
    background: #02050f !important;
    background: -webkit-linear-gradient(120deg, #02050f 0%, #f7faff 100%) !important;
    background: -moz-linear-gradient(120deg, #02050f 0%, #f7faff 100%) !important;
    background: -o-linear-gradient(120deg, #02050f 0%, #f7faff 100%) !important;
    background: linear-gradient(120deg, #02050f 0%, #f7faff 100%) !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    color: #222;
/* Selector de idioma fijo */
.lang-selector-fixed {
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 2000;
}
.lang-selector {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 1rem;
    background: #0a1747;
    color: #FFD600;
    border: 1px solid #224488;
    font-weight: 600;
}

/* Caja de aviso legal y contacto */
.cert-notice-box {
    background: #0a1747;
    color: #fff;
    padding: 18px 24px;
    border-radius: 14px;
    margin: 32px auto 18px auto;
    max-width: 700px;
    box-shadow: 0 2px 12px rgba(42,75,124,0.08);
    font-size: 1.13rem;
    line-height: 1.7;
    text-align: center;
}
.cert-notice-hr {
    margin: 18px 0;
    border: 0;
    border-top: 1px solid #224488;
}
.cert-contact-box {
    font-size: 1.08rem;
    line-height: 1.6;
    text-align: left;
    max-width: 600px;
    margin: 8px auto 0 auto;
}
.cert-link {
    color: #FFD600;
    text-decoration: underline;
}
.flag {
    font-size: 1.2em;
}
.cert-title-main {
    color: #FFD600;
}
/* certificates.css - Estilos principales para la página de certificados */

.certificates-main {
    max-width: 1100px;
    margin: 48px auto 48px auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.certificates-main header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.certificates-main h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff200;
    margin-bottom: 0.5em;
    letter-spacing: -1px;
    text-shadow: 0 2px 8px rgba(42,75,124,0.25);
}
.certificates-main p {
    font-size: 1.15rem;
    color: #e0e0e0;
    line-height: 1.7;
    background: #2a4b7c;
    border-radius: 12px;
    padding: 18px 24px;
    box-shadow: 0 2px 12px rgba(42,75,124,0.08);
    margin-top: 0.5em;
    margin-bottom: 0;
    max-width: 600px;
}
.certificates-main p strong {
    color: #585858;
    font-weight: 700;
}
.certificates-main p a {
    color: #fff200;
    text-decoration: underline;
}
.certificates-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 2600px;
    margin: 0 auto;
    gap: 40px;
    justify-items: center;
    width: 100%;
    align-items: flex-start;
}
.certificate-card {
    flex: 1 1 340px;
    width: 100%;
    max-width: 1400px;
    min-width: 320px;
    background: #222c36;
    border-radius: 22px;
    box-shadow: 0 4px 24px rgba(42,75,124,0.08);
    padding: 20px 20px 16px 20px;
    text-align: center;
    transition: box-shadow 0.2s;
    border: 1px solid #333a45;
    margin-left: auto;
    margin-right: auto;
    color: #f5f5f5;
}
.certificate-card:hover {
    box-shadow: 0 8px 32px rgba(42,75,124,0.16);
    border-color: #000000;
}
.certificate-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(42,75,124,0.07);
    margin-bottom: 14px;
    background: #000000;
}
.certificate-card figcaption {
    font-weight: 600;
    font-size: 1.08rem;
    color: #FFD600;
    margin-bottom: 6px;
}
.certificate-card small {
    color: #e0e0e0;
    font-size: 0.98rem;
}
.certificate-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.certificate-description {
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 900px) {
    .certificates-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .certificate-card {
        max-width: 98vw;
    }
}
@media (max-width: 600px) {
    .certificates-main {
        padding: 0 6px;
    }
    .certificates-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
}
