@font-face {
    font-family: 'DINRoundPro';
    font-weight: 300;
    src: url("../../public/fonts/drp/DINRoundPro-Light.woff2") format("woff2");
}

@font-face {
    font-family: 'DINRoundPro';
    font-weight: 400;
    src: url("../../public/fonts/drp/DINRoundPro.woff2") format("woff2");
}

@font-face {
    font-family: 'DINRoundPro';
    font-weight: 500;
    src: url("../../public/fonts/drp/DINRoundPro-Medi.woff2") format("woff2");
}

@font-face {
    font-family: 'DINRoundPro';
    font-weight: 700;
    src: url("../../public/fonts/drp/DINRoundPro-Bold.woff2") format("woff2");
}

@font-face {
    font-family: 'DINRoundPro';
    font-weight: 800;
    src: url("../../public/fonts/drp/DINRoundPro-Black.woff2") format("woff2");
}

h1,
h2,
h3,
h4,
p,
span,
button,
input,
a {
    font-family: 'DINRoundPro' !important;
}

body {
    background: #fff;
}

.header {
    background: #181818;
    height: 70px;
}

.enroll-disabled-btn {
    border-color: #6c757d;
    color: #6c757d !important;
    font-weight: 600;
}

.enroll-in-progress:hover {
    color: #ffc107 !important;
    background: none;
}

.enroll-done {
    font-weight: 600;
}

.header-card {
    padding: .85rem;
}

.user-card .banner {
    border-radius: .75rem .75rem 0 0;
}

.user-card {
    background: #262626;
}

.user-card .banner {
    background: #181818;
}

.user-card {
    border-radius: 1rem;
}

.user-card .banner .user-image {
    width: 6rem;
}

.commitment-btn:hover {
    color: #6c757d;
    background: none;
}

.text-gray-400 {
    color: rgb(107, 114, 128);
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.ps-3 {
    padding-inline-start: 0.75rem;
}

.search-input {
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding-inline-start: 2.5rem !important;
    padding: 1rem;
    border-width: 1px;
    border-radius: 0.5rem;
}

.search-btn {
    font-size: 0.75rem;
    line-height: 1rem;
    padding: .5rem 1rem;
    border-radius: .5rem;
    bottom: 0.625rem;
    inset-inline-end: 0.625rem;
    background: #c29266;
    color: #000;
    font-weight: 600;
    border: 0;
}

.divCenter p {
    color: #fff;
    font-size: 1rem;
}

.search-code-container {
    width: 83.333333%;
    margin: 0 auto;
}

.certificado-card {
    background: #181818;
}

.divCenter:hover {
    color: #c29266;
}

/* responsive design */
@media screen and (max-width: 520px) {
    .logo-encap {
        width: 240px;
        margin: 1rem 0;
    }

    .search-code-container {
        width: 100% !important;
    }

    .cert_lbl {
        display: none;
    }
}

/* =========================================
   1. Contenedor Principal (ALERTAS ORIGINALES)
   ========================================= */
.alert-wrapper {
    padding: 20px;
    justify-content: center;
    display: flex;
}

/* Variables de Color */
.alert-card         { --c-main: #ef4444; --c-dark: #f72525; --c-rgb: 247, 37, 37; }  
.alert-card-download{ --c-main: #1b5cb8; --c-dark: #144487; --c-rgb: 20, 68, 135; } 
.alert-card-pending { --c-main: #f7b545; --c-dark: #fcb232; --c-rgb: 247, 181, 69; } 
.alert-card-sign    { --c-main: #969699; --c-dark: #6e6e6e; --c-rgb: 150, 150, 153; } 

/* Estilos Base Compartidos */
.alert-card, .alert-card-download, .alert-card-pending, .alert-card-sign {
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(var(--c-rgb), 0.15), 
                0 0 0 1px rgba(var(--c-rgb), 0.4) inset;
    background: #ffffff;
}

.alert-card::before, .alert-card-download::before, .alert-card-pending::before, .alert-card-sign::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--c-main), var(--c-dark));
}

.icon-container, .icon-container-download, .icon-container-pending, .icon-container-sign {
    width: 80px; height: 80px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    background: rgba(var(--c-rgb), 0.1);
    color: var(--c-main);
    animation: pulseGlow 2s infinite ease-in-out;
}

.icon-container svg, .icon-container-download svg, .icon-container-pending svg, .icon-container-sign svg {
    width: 40px; height: 40px;
}

.alert-title {
    color: #303030;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.alert-button, .alert-button-download, .alert-button-pending, .alert-button-sign {
    color: #ffffff !important; 
    text-decoration: none !important; 
    display: inline-block;
    box-sizing: border-box;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    background: linear-gradient(135deg, var(--c-main), var(--c-dark));
    box-shadow: 0 4px 15px rgba(var(--c-rgb), 0.3);
}

.alert-button:hover, .alert-button-download:hover, .alert-button-pending:hover, .alert-button-sign:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--c-rgb), 0.5);
    color: #ffffff !important; 
    background: linear-gradient(135deg, var(--c-main), var(--c-dark)) !important; 
}

.alert-button:active, .alert-button-download:active, .alert-button-pending:active, .alert-button-sign:active {
    transform: translateY(1px);
}

@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--c-rgb), 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(var(--c-rgb), 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--c-rgb), 0); }
}

/* =========================================
   DISEÑO VISTA 2 (LISTA DE 4 COLUMNAS)
========================================= */
.corporate-bg {
    background-color: #f4f6f9 !important;
    padding: 40px 0;
    min-height: 80vh;
}

.list-search-wrapper { max-width: 100%; }
.list-search-box {
    position: relative; display: flex; align-items: center; background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important; border-radius: 8px !important; padding: 4px 6px 4px 16px !important; box-shadow: 0px 0px 6px 0px rgb(0 0 0 / 42%) !important;
}
.list-search-box:focus-within { border-color: #1B263B !important; box-shadow: 0 0 0 3px rgba(27, 38, 59, 0.1) !important; }
.list-search-icon { color: #9ca3af !important; font-size: 1rem !important; margin-right: 12px !important; }
.list-search-input {
    border: none !important; background: transparent !important; outline: none !important; flex-grow: 1 !important;
    padding: 10px 0 !important; font-size: 0.95rem !important; color: #1B263B !important; box-shadow: none !important;
}

.list-container { display: flex; flex-direction: column; gap: 16px; }
.list-item {
    display: flex !important; align-items: center !important; background-color: #ffffff !important; border: 1px solid #e5e7eb !important;
    border-radius: 8px !important; padding: 16px 24px !important; transition: all 0.2s ease !important; box-shadow: 0 2px 4px rgb(0 0 0 / 29%) !important;
}
.list-item:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08) !important; border-color: #d1d5db !important; transform: translateY(-2px); }

/* Columna 1 */
.list-col-main { display: flex !important; align-items: center !important; flex-grow: 1 !important; }
.list-img-box { flex-shrink: 0; margin-right: 24px; width: 120px; height: 85px; }
.list-img { width: 100% !important; height: 100% !important; border-radius: 6px !important; object-fit: contain !important; border: 1px solid #e5e7eb !important; background-color: #ffffff !important; }
.list-img-fallback { width: 100% !important; height: 100% !important; border-radius: 6px !important; border: 1px solid #e5e7eb !important; background-color: #f3f4f6 !important; display: flex; align-items: center; justify-content: center; }
.list-img-fallback img { max-height: 50px; opacity: 0.5; }

.list-info { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.list-title { color: #1B263B !important; font-size: 1rem !important; font-weight: 800 !important; text-transform: uppercase !important; margin: 0 0 6px 0 !important; line-height: 1.3 !important; }
.list-meta { color: #6b7280 !important; font-size: 0.85rem !important; margin: 0 !important; }

/* Columnas Centrales (Tipo y Año) */
.list-col-type, .list-col-year {
    min-width: 140px;
    text-align: center;
    flex-shrink: 0;
    padding: 0 20px;
    border-left: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.list-label {
    display: block;
    font-size: 0.75rem !important;
    color: #9ca3af !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
}

.list-value {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #1B263B !important;
    margin: 0 !important;
}

.cert-badge {
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    display: inline-block !important;
    text-transform: uppercase !important;
}

/* Columna 4 (Botón) */
.list-action { 
    /* min-width: 200px;  */
    text-align: right; 
    flex-shrink: 0; 
    padding-left: 20px; 
    border-left: 1px solid #e5e7eb; }

.list-btn {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: background-color 0.2s ease !important;
    border: none !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .list-item { flex-direction: column !important; align-items: flex-start !important; padding: 20px !important; }
    .list-col-main { flex-direction: column !important; align-items: flex-start !important; width: 100% !important; }
    .list-img-box { margin-bottom: 16px; margin-right: 0; width: 100%; height: auto; max-height: 120px; }
    .list-img { max-height: 120px !important; }
    
    .list-col-type, .list-col-year {
        width: 100%; text-align: left; padding: 16px 0 0 0; border-left: none; border-top: 1px solid #e5e7eb; margin-top: 16px; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px;
    }
    .list-label { margin-bottom: 0 !important; font-size: 0.9rem !important; }
    .list-label::after { content: ": "; }
    .list-value { font-size: 1rem !important; }
    
    .list-action { 
        /* width: 100%;  */
        text-align: left; 
        margin-top: 16px; 
        padding-left: 0; 
        border-left: none; 
        border-top: 1px solid #e5e7eb; 
        padding-top: 16px; }
}