/* Variables específicas para certificados */
:root {
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --card-hover-bg: rgba(30, 41, 59, 0.9);
    --accent-glow: rgba(56, 189, 248, 0.5);
}

:root[data-theme="light"] {
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-shadow: 0 10px 25px rgba(148, 163, 184, 0.35);
    --card-hover-bg: #e2e8f0;
    --accent-glow: rgba(56, 189, 248, 0.3);
}

/* Título de sección con estilo */
.cert-section-title {
    margin-top: 4rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary, #e2e8f0);
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color, #334155);
    padding-bottom: 1rem;
    position: relative;
}

.cert-section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-primary, #38bdf8);
    box-shadow: 0 0 10px var(--accent-primary, #38bdf8);
}

/* Grid responsivo mejorado */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Tarjeta Glassmorphism Avanzada */
.cert-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cert-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--glass-shadow);
    border-color: var(--accent-primary, #38bdf8);
    background: var(--card-hover-bg);
}

/* Efecto de brillo en hover */
.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transition: 0.5s;
}

.cert-card:hover::before {
    left: 100%;
}

/* Icono animado */
.cert-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.cert-card:hover .cert-icon {
    background: rgba(56, 189, 248, 0.1);
    transform: rotateY(180deg);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Tipografía */
.cert-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-primary, #f1f5f9);
    line-height: 1.3;
}

.cert-issuer {
    font-size: 0.95rem;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 2rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cert-issuer::before {
    content: '•';
    color: var(--accent-primary, #38bdf8);
}

/* Botón de enlace */
.cert-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.1), rgba(56, 189, 248, 0.05));
    color: var(--accent-primary, #38bdf8);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(56, 189, 248, 0.2);
    position: relative;
    overflow: hidden;
    gap: 0.5rem;
}

.cert-link:hover {
    background: var(--accent-primary, #38bdf8);
    color: white;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

.cert-link::after {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.cert-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.cert-link span {
    transition: transform 0.3s ease;
}

.cert-link:hover span {
    transform: translateX(-5px);
}
