/* FONDO GENERAL */
.servicio-content {
    padding: 76px 20px;
    background: radial-gradient(circle at top, #eef2ff, #f8fafc);
    display: flex;
    justify-content: center;
}

/* TARJETA PRINCIPAL */
.servicio-columns {
    width: 100%;
    max-width: 1100px;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* COLUMNA IZQUIERDA */
.servicio-column-left {
    background: linear-gradient(135deg, #0d0d0e, #022c70);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.perfil-subtitulo {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;

}

/* EFECTO DECORATIVO */
.servicio-column-left::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -50px;
    left: -50px;
}

/* ICONO */
.servicio-icon-custom {
    font-size: 110px;
    color: white;
    z-index: 2;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* COLUMNA DERECHA */
.servicio-column-right {
    padding: 45px;
    position: relative;
}

/* TITULO */
.tittle {
    font-size: 34px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
    position: relative;
}

.tittle::after {
    content: "";
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #111, #444);
    display: block;
    margin-top: 8px;
    border-radius: 10px;
}

/* DESCRIPCIÓN */
.servicio-datos-custom p {
    color: #4b5563;
    line-height: 1.7;
}

/* BLOQUE INFO */
.servicio-dato-linea-custom {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
}

/* MINI CARDS INFO */
.servicio-dato-linea-custom p {
    background: #f9fafb;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    transition: 0.2s;
}

.servicio-dato-linea-custom p:hover {
    background: #eef2ff;
}

/* BOTONES */
.botones-servicio {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    align-items: center;
}

/* BOTÓN PRINCIPAL */
#btnHojaVida {
    background: linear-gradient(135deg, #0c0c0c, #5767be);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

#btnHojaVida:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* BOTÓN SECUNDARIO */
.btn-fichaTecnica {
    background: transparent;
    border: 1px dashed #6366f1;
    color: #6366f1;
}

.servicio-columns:hover {
    transform: translateY(-4px);
    transition: 0.3s;
}

.btn-fichaTecnica:hover {
    background: #6366f1;
    color: white;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .servicio-columns {
        grid-template-columns: 1fr;
    }

    .servicio-column-left {
        padding: 40px 0;
    }
}


.servicio-column-right::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #e5e7eb, transparent);
}



/* FOTO */
.perfil-foto-custom {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* BOTÓN EDITAR */
.btn-edit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    border: none;
    background: white;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* DATOS MÁS ORDENADOS */
.datos-user {
    gap: 12px;
}

/* BOTONES PERFIL */
#btnEvaluadorPerfil {
    background: linear-gradient(135deg, #0c0c0c, #5767be);
    color: white;
    border-radius: 12px;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

#btnEvaluadorPerfil:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}


/* CHIP ENTIDAD */
.miEntidadRef {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin: 4px 6px 4px 0;

    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;

    background: #18181b;
    color: white;

    cursor: pointer;
    transition: 0.25s ease;
    border: 1px solid transparent;
}

/* HOVER */
.miEntidadRef:hover {
    background: #000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(99, 102, 241, 0.3);
}

/* ACTIVO (cuando haces click) */
.miEntidadRef:active {
    transform: scale(0.95);
}

/* CONTENEDOR (mejor orden) */
#MiVinculado {
    display: flex;
    flex-wrap: wrap;
    margin-top: 6px;
}

/* VINCULADAS (más suaves) */
.miEntidadVinculada {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 12px;
    margin: 4px 6px 4px 0;

    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;

    background: #e4e4e7;
    color: #18181b;

    cursor: pointer;
    transition: 0.25s ease;
}

/* Hover más suave */
.miEntidadVinculada:hover {
    background: #d4d4d8;
    color: white;
    transform: translateY(-2px);
}

/* Contenedor */
#MiVinculados {
    display: flex;
    flex-wrap: wrap;
    margin-top: 6px;
}


/* === Spinner === */
#page-spinner-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    z-index: 99999;
    transition: opacity .4s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

#page-spinner-overlay .spinner {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 6px solid rgba(0, 0, 0, 0.08);
    border-top-color: #007bff;
    animation: spin 1s linear infinite;
}

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



.perfil-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.perfil-item {
    display: flex;
    flex-direction: column;
    gap: 4px;

    padding: 10px 12px;
    /* antes 12px 14px */
    border-radius: 10px;

    background: #f4f4f5;
    border: 1px solid #e4e4e7;

    transition: 0.2s;
}

.perfil-item:hover {
    background: #e4e4e7;
}

.perfil-item strong {
    font-size: 13px;
    color: #525252;
}

.perfil-item span {
    font-size: 14px;
    color: #18181b;
    font-weight: 500;
}

/* FORZAR GRID aunque exista perfil-info */
.datos-user.perfil-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Teléfono y Ubicación en 2 columnas (automático por orden) */

/* Los demás ocupan toda la fila */
.datos-user.perfil-info .perfil-item:nth-child(3),
.datos-user.perfil-info .perfil-item:nth-child(4),
.datos-user.perfil-info .perfil-item:nth-child(5) {
    grid-column: span 2;
}


/* OVERLAY */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    /* lo controlas con JS */
    align-items: center;
    justify-content: center;
    z-index: 9999;

    backdrop-filter: blur(6px);
}

/* CUANDO ESTÁ ACTIVO */
.modal.show {
    display: flex;
}

/* CONTENIDO */
.modal-content {
    width: 90%;
    max-width: 900px;
    height: 80vh;

    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);

    border-radius: 18px;
    overflow: hidden;

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    animation: modalFade 0.3s ease;
}

/* HEADER */
.perfil-modal-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 20px;

    border-bottom: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.7);
}

/* TÍTULO */
.perfil-modal-header-custom .title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

/* BOTÓN CERRAR */
.close {
    font-size: 22px;
    cursor: pointer;
    color: #444;
    transition: 0.2s;
}

.close:hover {
    color: #000;
    transform: scale(1.2);
}

/* IFRAME */
#iframeHojaVida {
    width: 100%;
    height: calc(100% - 60px);
    border: none;
    background: white;
}

/* ANIMACIÓN */
@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* === ESTADO VACÍO (SIN CV) === */
.no-cv-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100% - 60px); /* Ocupa el mismo espacio que el iframe */
    background: #f9fafb;
    text-align: center;
    padding: 20px;
    animation: modalFade 0.3s ease;
}

.no-cv-custom i {
    font-size: 54px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.no-cv-custom h3 {
    font-size: 22px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.no-cv-custom p {
    font-size: 15px;
    color: #6b7280;
    max-width: 300px;
    line-height: 1.5;
}