﻿/* VARIABLES LOCALES */
:root {
    --r-blue: #004da7;
    --r-dark: #0b132b;
    --r-gray: #f8f9fa;
    --r-border: #e2e8f0;
}

/* OVERRIDES ESPECÍFICOS DE VISTA */
main.pb-5 {
    padding-bottom: 0 !important;
}

/* ========================================= */
/* HERO FULL WIDTH (Estilo Coaching)         */
/* ========================================= */
.recruitment-hero-bg {
    position: relative;
    background-image: url('/images/Recruitment/recruitment-hero-og.jpg');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    /* Transición para efecto Vanish */
    opacity: 1;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

    /* Clase para ocultar suavemente el hero */
    .recruitment-hero-bg.vanish {
        opacity: 0;
        pointer-events: none;
    }

/* Bloques de texto (Plecas blancas) */
.hero-block-title,
.hero-block-subtitle {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem 2rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 100%;
}

    .hero-block-title h1 {
        color: var(--r-blue);
        font-weight: 800;
        margin: 0;
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-block-subtitle h2 {
        color: var(--r-blue);
        font-weight: 700;
        margin: 0;
        font-size: 1.4rem;
        line-height: 1.4;
    }

/* Caja de descripción */
.hero-block-desc {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    max-width: 650px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

    .hero-block-desc p {
        color: #4a5568;
        margin-bottom: 0;
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .hero-block-desc strong {
        color: var(--r-blue);
    }

/* Ajuste para móvil */
@media (max-width: 768px) {
    .recruitment-hero-bg {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-block-title h1 {
        font-size: 1.8rem;
    }

    .hero-block-subtitle h2 {
        font-size: 1.2rem;
    }
}

/* SECTION BASE */
.recruitment-section {
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* DROPZONE */
.recruitment-dropzone {
    border: 3px dashed rgba(203, 213, 225, 0.8);
    border-radius: 16px;
    background-color: rgba(248, 250, 252, 0.85);
    padding: 3rem 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

    .recruitment-dropzone:hover, .recruitment-dropzone.drag-over {
        border-color: var(--r-blue);
        background-color: rgba(239, 246, 255, 0.95);
        transform: translateY(-4px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }

.icon-cloud {
    font-size: 4rem;
    color: #94a3b8;
    transition: color 0.3s;
}

.recruitment-dropzone:hover .icon-cloud {
    color: var(--r-blue);
}

.badge-secure {
    display: inline-block;
    background-color: #e2e8f0;
    color: #475569;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================
   ESTADO 2: EL ESCRITORIO
   ============================ */
.desk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.recruiter-view {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.recruiter-photo-wrapper {
    width: 280px;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    background-color: #e2e8f0;
}

.recruiter-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reading-status {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: var(--r-blue);
    font-size: 1.1rem;
    animation: pulseText 2s infinite;
}

/* Documento */
.document-view {
    display: flex;
    justify-content: flex-start;
}

.document-paper {
    width: 300px;
    height: 420px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.doc-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.doc-avatar {
    width: 50px;
    height: 50px;
    background: #cbd5e1;
    border-radius: 50%;
}

.doc-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
}

.line {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 0.8rem;
}

.w-50 {
    width: 50%;
}

.w-75 {
    width: 75%;
}

.w-80 {
    width: 80%;
}

.w-90 {
    width: 90%;
}

.w-60 {
    width: 60%;
}

.doc-filename {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.7rem;
    color: #94a3b8;
    font-family: monospace;
}

.scan-light {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, rgba(0, 77, 167, 0), rgba(0, 77, 167, 0.2), rgba(0, 77, 167, 0));
    box-shadow: 0 0 15px rgba(0, 77, 167, 0.2);
    animation: scanMove 2.5s ease-in-out infinite;
    z-index: 10;
}

@keyframes scanMove {
    0% {
        top: -20%;
    }

    100% {
        top: 120%;
    }
}

@keyframes pulseText {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.doc-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    z-index: 5;
    padding: 1rem;
}

/* ============================
   ESTADO 3: RESULTADOS
   ============================ */
.result-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.result-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ========================================= */
/* THUMBNAIL RESULTADO (PDF/WORD)            */
/* ========================================= */

.result-doc-wrapper {
    width: 150px; /* Buen tamaño visible */
    height: 195px; /* Proporción aproximada A4 */
    flex-shrink: 0;
    position: relative;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15), 0 4px 6px -2px rgba(0,0,0,0.05); /* Sombra elegante */
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.3s ease;
}

    .result-doc-wrapper:hover {
        transform: translateY(-3px) scale(1.02);
    }

/* CASO 1: IMAGEN REAL (PDF) */
.result-doc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* CASO 2: SIMULACIÓN WORD */
.result-doc-word {
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
}

.word-decoration-bar {
    height: 8px;
    background: var(--r-blue);
    width: 100%;
}

.word-content {
    padding: 1.2rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.word-avatar-placeholder {
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    color: #64748b;
    font-weight: 700;
    font-size: 0.9rem;
}

#word-candidate-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--r-dark);
    margin-bottom: 1rem;
    width: 100%;
}

/* Líneas abstractas */
.abstract-lines {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    opacity: 0.4;
}

    .abstract-lines .line {
        height: 4px;
        background: #cbd5e1;
        border-radius: 2px;
        display: block;
    }

/* Badge de Word chiquito abajo */
.word-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 0.7rem;
    color: #2563eb; /* Azul Word */
    background: #eff6ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Ajuste responsive: en móvil centramos todo */
@media (max-width: 768px) {
    .result-doc-wrapper {
        margin: 0 auto; /* Centrar la hoja */
    }
}

.recruiter-speech h2 {
    color: var(--r-blue);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.speech-body {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
}

    .speech-body strong {
        color: var(--r-blue);
        font-weight: 700;
    }

/* HASHTAGS (NUEVO) */
.hashtags-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    min-height: 50px;
}

.hashtag-badge {
    color: #64748b; /* Gris Slate */
    font-weight: 700;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

    .hashtag-badge.size-1 {
        font-size: 1rem;
    }

    .hashtag-badge.size-2 {
        font-size: 1.25rem;
    }

    .hashtag-badge.size-3 {
        font-size: 1.5rem;
    }

/* SEMÁFORO */
.diagnosis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.diagnosis-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.status-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

    .status-icon.success {
        color: #10b981;
    }

    .status-icon.warning {
        color: #f59e0b;
    }

    .status-icon.danger {
        color: #ef4444;
    }

    .status-icon.neutral {
        color: #64748b;
    }

.status-text h6 {
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--r-dark);
}
/* Listas en el semáforo */
.status-text ul {
    padding-left: 1.2rem;
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
}

.status-text li {
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

/* RECOMENDACIONES (ACTUALIZADO UI) */
.recommendation-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

    .recommendation-box h5 {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--r-dark);
    }

.tips-list {
    padding-left: 1.2rem;
    font-size: 0.95rem;
    color: #4a5568;
}

    .tips-list li {
        margin-bottom: 0.5rem;
    }

.course-item {
    /* Estilos del contenedor */
    /* El display:flex se maneja vía Bootstrap d-flex en el HTML, pero si quieres reforzar: */
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

    .course-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

/* Icono Play (Izquierda) - Azul Marca */
.course-icon {
    color: var(--r-blue) !important;
    font-size: 1.2rem;
    margin-top: 2px;
}

/* Link del Título */
.course-title-link {
    text-decoration: none;
    display: inline-block;
}

    .course-title-link h6 {
        font-size: 0.95rem;
        font-weight: 700;
        margin: 0;
        color: var(--r-blue); /* Azul Upskilling */
        transition: color 0.2s ease;
    }

    /* Hover: Se oscurece un poco y subraya */
    .course-title-link:hover h6 {
        color: #003a85; /* Tono más oscuro */
        text-decoration: underline;
    }

/* Icono de enlace externo */
.external-link-icon {
    color: #64748b; /* Gris Slate */
    font-size: 0.8rem;
    opacity: 1 !important;
    vertical-align: middle;
}

/* Texto descriptivo gris */
.course-info p {
    font-size: 0.85rem;
    margin: 0;
    color: #64748b;
    line-height: 1.3;
}

.action-area {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.divider {
    border-color: #e2e8f0;
    opacity: 1;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .desk-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .recruiter-view {
        align-items: center;
        text-align: center;
    }

    .document-view {
        justify-content: center;
    }

    .result-header {
        flex-direction: column;
        text-align: center;
    }


}
/* ========================================= */
/* ESTRATEGIA Y CIERRE (NUEVO UI)            */
/* ========================================= */

/* Badge de Confirmación */
.badge-status-success {
    background-color: #ecfdf5;
    color: #059669;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #d1fae5;
    display: inline-block;
}

/* Tarjeta Principal */
.strategy-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08); /* Sombra elegante */
    overflow: hidden;
    position: relative;
}

    /* Decoración superior azul */
    .strategy-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: var(--r-blue);
    }

.strategy-body {
    padding: 2.5rem 2rem;
}

/* Texto de Empatía */
.ls-1 {
    letter-spacing: 1px;
}

.empathy-text {
    font-size: 1.2rem;
    font-family: 'Raleway', sans-serif; /* Fuente más limpia */
    font-style: normal; /* Adiós cursivas */
    font-weight: 500; /* Un poco de peso para que destaque */
    color: #334155;
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
}

.divider-light {
    border-color: #f1f5f9;
    opacity: 1;
}

/* Grid de Acciones */
.strategy-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

/* Tarjeta de Servicio (Botón Grande) */
.service-action-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

    .service-action-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px -4px rgba(0, 77, 167, 0.15);
        border-color: var(--r-blue);
        background: #fff;
    }

/* Icono del servicio */
.service-icon-wrapper {
    width: 45px;
    height: 45px;
    background: #eff6ff;
    color: var(--r-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-title {
    color: var(--r-dark);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.service-reason {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.btn-service-action {
    color: var(--r-blue);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: auto; /* Empuja al fondo */
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .strategy-body {
        padding: 1.5rem;
    }

    .empathy-text {
        font-size: 1.1rem;
        max-width: 100%;
    }
}

.strategy-title {
    color: var(--r-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}


/* ========================================= */
/* ESTADO 3: CONFIRMACIÓN (CHECK-IN)         */
/* ========================================= */

.confirmation-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    border: 1px solid #e2e8f0;
}

.success-icon-animate {
    width: 60px;
    height: 60px;
    background: #d1fae5;
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.ls-1 {
    letter-spacing: 1px;
}

/* Ajuste de Radio Buttons como Tarjetas */
.btn-check:checked + .btn-outline-light {
    background-color: #eff6ff;
    border-color: var(--r-blue) !important;
    color: var(--r-blue) !important;
    box-shadow: 0 2px 4px rgba(0, 77, 167, 0.1);
}

.btn-outline-light:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1 !important;
}

/* Responsivo */
@media (max-width: 768px) {
    .confirmation-card {
        padding: 2rem 1.5rem;
    }
}

/* ========================================= */
/* AJUSTES DE CONFIRMACIÓN                   */
/* ========================================= */

/* 1. Unificar color de checkboxes (Gris oscuro sólido) */
.confirmation-card .form-check-label {
    color: #212529 !important; /* Color texto estándar (como el 3ro) */
    opacity: 1 !important;
    font-weight: 400;
}

    /* 2. Enlace dentro del label */
    .confirmation-card .form-check-label a {
        color: var(--r-blue);
        font-weight: 600;
    }

/* 3. Botón Deshabilitado (Gris) */
#btnConfirmPreferences:disabled {
    background-color: #e2e8f0 !important; /* Gris claro fondo */
    border-color: #e2e8f0 !important;
    color: #64748b !important; /* Gris medio texto */
    cursor: not-allowed;
    opacity: 1; /* Quitar transparencia de bootstrap */
    font-weight: 500;
    box-shadow: none;
}

/* ========================================= */
/* VISUALIZACIÓN DOCUMENTO ABSTRACTO         */
/* ========================================= */

#abstract-doc-visual {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.doc-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.doc-avatar {
    width: 50px;
    height: 50px;
    background: #cbd5e1;
    border-radius: 50%;
    flex-shrink: 0;
}

.doc-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.doc-body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* Espacio entre líneas de texto */
    width: 100%;
}

/* Estilo Base de la Línea */
.line {
    display: block;
    height: 10px;
    background-color: #e2e8f0; /* Gris visible */
    border-radius: 5px;
    width: 100%; /* Por defecto */
}

    /* Variaciones de Ancho (Importantes) */
    .line.w-100 {
        width: 100%;
    }

    .line.w-90 {
        width: 90%;
    }

    .line.w-80 {
        width: 80%;
    }

    .line.w-75 {
        width: 75%;
    }

    .line.w-60 {
        width: 60%;
    }

    .line.w-50 {
        width: 50%;
    }

    .line.w-40 {
        width: 40%;
    }

/* Espaciadores */
.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}