/* ── RESET Y BASE ─────────────────────────────────────────────────────────── */
.cu-buscador-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1d2327;
}

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.cu-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0d1117 100%);
    color: #fff;
    text-align: center;
    padding: 60px 20px 50px;
    position: relative;
    overflow: hidden;
}

.cu-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.cu-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cu-hero-logo {
    margin-bottom: 20px;
}

.cu-hero-logo img {
    max-height: 70px;
    filter: brightness(0) invert(1);
}

.cu-hero-titulo {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 14px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cu-hero-subtitulo {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin: 0 0 28px;
}

.cu-linea-dorada {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #c9a84c, #f0c040, #c9a84c);
    margin: 0 auto;
    border-radius: 2px;
}

/* ── CONTENIDO ────────────────────────────────────────────────────────────── */
.cu-buscador-contenido {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

/* ── CARD DE BÚSQUEDA ─────────────────────────────────────────────────────── */
.cu-buscador-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 40px 40px 36px;
    text-align: center;
    border: 1px solid #e8e8e8;
}

.cu-buscador-icono {
    font-size: 48px;
    margin-bottom: 14px;
    line-height: 1;
}

.cu-buscador-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: #004d26;
    margin: 0 0 8px;
}

.cu-buscador-card p {
    color: #666;
    font-size: 14px;
    margin: 0 0 28px;
}

/* ── FORMULARIO ───────────────────────────────────────────────────────────── */
.cu-input-grupo {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    border: 2px solid #004d26;
    transition: border-color 0.2s;
}

.cu-input-grupo:focus-within {
    border-color: #006634;
    box-shadow: 0 2px 16px rgba(0,77,38,0.18);
}

.cu-input-grupo input[type="text"] {
    flex: 1;
    padding: 14px 18px;
    border: none;
    outline: none;
    font-size: 16px;
    background: #fff;
    color: #1d2327;
    min-width: 0;
}

.cu-input-grupo input[type="text"]::placeholder {
    color: #aaa;
}

.cu-btn-buscar {
    background: #004d26;
    color: #fff;
    border: none;
    padding: 14px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    white-space: nowrap;
}

.cu-btn-buscar:hover {
    background: #006634;
}

.cu-btn-buscar-icono {
    font-size: 18px;
    transition: transform 0.2s;
}

.cu-btn-buscar:hover .cu-btn-buscar-icono {
    transform: translateX(3px);
}

/* ── MENSAJE ERROR ────────────────────────────────────────────────────────── */
.cu-mensaje-error {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fdecea;
    color: #842029;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    font-size: 14px;
}

/* ── RESULTADOS ───────────────────────────────────────────────────────────── */
.cu-resultados-wrap {
    margin-top: 28px;
}

.cu-resultados-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.cu-resultados-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1d2327;
    margin: 0;
}

.cu-resultados-count {
    background: #004d26;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.cu-cert-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 24px 28px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: box-shadow 0.2s;
}

.cu-cert-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

.cu-cert-card-icono {
    font-size: 36px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.cu-cert-card-body {
    flex: 1;
    min-width: 0;
}

.cu-cert-evento {
    font-size: 16px;
    font-weight: 700;
    color: #004d26;
    margin: 0 0 6px;
    line-height: 1.3;
}

.cu-cert-ponencia {
    font-size: 13px;
    color: #555;
    margin: 0 0 12px;
    line-height: 1.5;
}

.cu-cert-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cu-cert-fecha {
    font-size: 12px;
    color: #888;
}

.cu-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.cu-badge-pendiente  { background: #b58900; }
.cu-badge-aprobado   { background: #006634; }
.cu-badge-rechazado  { background: #b00020; }

.cu-cert-card-accion {
    flex-shrink: 0;
    align-self: center;
}

.cu-btn-descargar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #004d26;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.cu-btn-descargar:hover {
    background: #006634;
    color: #fff;
    transform: translateY(-1px);
}

.cu-btn-descargar-icono {
    font-size: 16px;
}

.cu-cert-no-disponible {
    display: inline-block;
    padding: 10px 16px;
    background: #f6f7f7;
    color: #999;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid #e2e2e2;
}

.cu-sin-resultados {
    text-align: center;
    padding: 40px 20px;
    background: #f6f7f7;
    border-radius: 10px;
    border: 1px dashed #ccc;
}

.cu-sin-resultados-icono {
    font-size: 48px;
    margin-bottom: 12px;
}

.cu-sin-resultados p {
    color: #666;
    font-size: 15px;
    margin: 0;
}

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.cu-buscador-footer {
    text-align: center;
    padding: 24px 20px 40px;
    color: #888;
    font-size: 13px;
}

.cu-buscador-footer a {
    color: #004d26;
    text-decoration: none;
    font-weight: 600;
}

/* ── CARGANDO ─────────────────────────────────────────────────────────────── */
.cu-cargando {
    text-align: center;
    padding: 30px;
    color: #666;
}

.cu-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #e2e2e2;
    border-top-color: #004d26;
    border-radius: 50%;
    animation: cu-spin 0.8s linear infinite;
    margin-bottom: 10px;
}

@keyframes cu-spin {
    to { transform: rotate(360deg); }
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .cu-hero-titulo { font-size: 26px; }
    .cu-buscador-card { padding: 28px 20px; }
    .cu-input-grupo { flex-direction: column; border-radius: 8px; }
    .cu-input-grupo input[type="text"] { border-radius: 6px 6px 0 0; }
    .cu-btn-buscar { border-radius: 0 0 6px 6px; justify-content: center; }
    .cu-cert-card { flex-direction: column; }
    .cu-cert-card-accion { align-self: flex-start; }
}

/* ── VALIDADOR ────────────────────────────────────────────────────────────── */
.cu-validador .cu-hero { padding: 50px 20px 40px; }

.cu-resultado {
    border-radius: 12px;
    padding: 36px 32px;
    text-align: center;
    margin-top: 24px;
}

.cu-resultado-valido {
    background: linear-gradient(135deg, #e9f7ef, #d4edda);
    border: 2px solid #b7dfb7;
}

.cu-resultado-invalido {
    background: linear-gradient(135deg, #fdecea, #f8d7da);
    border: 2px solid #f5c2c7;
}

.cu-resultado-icono {
    font-size: 56px;
    margin-bottom: 12px;
    line-height: 1;
}

.cu-resultado-titulo {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
}

.cu-resultado-valido .cu-resultado-titulo { color: #004d26; }
.cu-resultado-invalido .cu-resultado-titulo { color: #b00020; }

.cu-tabla-validacion {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-collapse: collapse;
    text-align: left;
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
    overflow: hidden;
}

.cu-tabla-validacion th,
.cu-tabla-validacion td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 14px;
}

.cu-tabla-validacion th {
    width: 140px;
    color: #555;
    font-weight: 600;
}

.cu-cargando { color: #666; font-style: italic; padding: 20px; text-align: center; }
