﻿/* ==========================================================
   HEADER PREMIUM - EMPLEOIA
========================================================== */

.site-header{

    position:sticky;

    top:0;

    z-index:1000;

    backdrop-filter:blur(14px);

    background:rgba(255,255,255,.90);

    border-bottom:1px solid #e5e7eb;

    transition:.30s;

}

.header-content{

    max-width:1280px;

    margin:auto;

    height:78px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:40px;

}

/* ===================================== */

.logo{

    text-decoration:none;

    font-size:30px;

    font-weight:800;

    letter-spacing:-1px;

}

.logo-empleo{

    color:#111827;

}

.logo-ia{

    color:#2563eb;

}

/* ===================================== */

.main-nav{

    display:flex;

    gap:34px;

}

.main-nav a{

    text-decoration:none;

    color:#475569;

    font-weight:600;

    transition:.25s;

    position:relative;

}

.main-nav a:hover{

    color:#2563eb;

}

.main-nav a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:2px;

    background:#2563eb;

    transition:.25s;

}

.main-nav a:hover::after{

    width:100%;

}

/* ===================================== */

.header-right{

    display:flex;

    align-items:center;

    gap:20px;

}

.lang-button{

    border:none;

    background:#f1f5f9;

    padding:10px 18px;

    border-radius:999px;

    cursor:pointer;

    transition:.25s;

}

.lang-button:hover{

    background:#2563eb;

    color:white;

}

.login-link{

    text-decoration:none;

    font-weight:700;

    color:#111827;

}

.login-link:hover{

    color:#2563eb;

}

/* ===================================== */

@media(max-width:900px){

.main-nav{

    display:none;

}

.header-content{

    height:70px;

}

.logo{

    font-size:26px;

}

}

/* ==========================================================
   JOBSENSIA - LOGO DE CABECERA
   MISMO ANCHO QUE EL LOGO DE LA PORTADA
   ========================================================== */

.jobsensia-header-brand {

    display: block;

    width: 220px;

    height: auto;

    margin: 0;

    padding: 0;

    text-decoration: none;

}


.jobsensia-header-brand img {

    display: block;

    width: 220px;

    height: auto;

    max-width: 220px;

    border: 0;

}

/* ==========================================================
   JOBSENSIA - LOGO Y MENU DE USUARIO
========================================================== */

.jobsensia-header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.jobsensia-header-brand img {
    display: block;
    width: 220px;
    height: auto;
    max-width: 220px;
    border: 0;
}

.jobsensia-user {
    position: relative;
    margin-left: auto;
    display: flex;
    align-items: center;
}

.jobsensia-user-button {
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jobsensia-user-icon {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #2563eb;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jobsensia-user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;

    min-width: 190px;

    padding: 8px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    box-shadow: 0 12px 30px rgba(0,0,0,.14);

    z-index: 2000;
}

.jobsensia-user-menu[hidden] {
    display: none !important;
}

.jobsensia-user-menu a {
    display: block;

    padding: 10px 12px;

    color: #334155;

    text-decoration: none;

    border-radius: 8px;

    font-weight: 500;
}

.jobsensia-user-menu a:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.jobsensia-user-name {
    padding: 10px 12px;
    margin-bottom: 4px;

    font-weight: 700;

    color: #111827;

    border-bottom: 1px solid #e5e7eb;
}

/* ==========================================================
   AJUSTE VISUAL FINAL DEL HEADER
   Subir logo y usuario 20px
   ========================================================== */

.jobsensia-header-brand,
.jobsensia-user {
    position: relative;
    top: -20px;
}


/* ==========================================================
   BOTON SIMPLE DE USUARIO JOBSENSIA
   GRIS = DESCONECTADO
   VERDE = CONECTADO
   ========================================================== */

.jobsensia-user-simple {
    display: flex;
    align-items: center;
    justify-content: center;
}

.jobsensia-user-status {
    display: block;

    width: 21px;
    height: 21px;

    border-radius: 50%;

    text-decoration: none;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

.jobsensia-user-status:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

/* USUARIO FUERA */

.jobsensia-user-disconnected {
    background: #9ca3af;
}

/* USUARIO DENTRO */

.jobsensia-user-connected {
    background: #22c55e;
}




/* ==========================================================
   JOBSENSIA - ESTADO SIMPLE DEL USUARIO
   GRIS = DESCONECTADO
   VERDE = CONECTADO
   ========================================================== */

.jobsensia-user-button.jobsensia-user-logged-out {
    background: #9ca3af !important;
    color: #ffffff !important;
}

.jobsensia-user-button.jobsensia-user-logged-in {
    background: #16a34a !important;
    color: #ffffff !important;
}

.jobsensia-user-button.jobsensia-user-logged-out .jobsensia-user-icon,
.jobsensia-user-button.jobsensia-user-logged-in .jobsensia-user-icon {
    stroke: currentColor !important;
}


/* ==========================================================
   BOTON USUARIO JOBSENSIA
   GRIS = FUERA
   VERDE = DENTRO
========================================================== */

#jobsensia-user-button {
    background: #d1d5db !important;
    color: #ffffff !important;
    border: none !important;
    transition: background-color .25s ease, transform .15s ease;
}

#jobsensia-user-button:hover {
    transform: scale(1.05);
}

/* Usuario conectado */

#jobsensia-user-button.jobsensia-user-logged-in {
    background: #22c55e !important;
    color: #ffffff !important;
}

/* Usuario desconectado */

#jobsensia-user-button.jobsensia-user-logged-out {
    background: #d1d5db !important;
    color: #ffffff !important;
}

/* El SVG debe heredar el color del botón */

#jobsensia-user-button .jobsensia-user-icon {
    stroke: currentColor !important;
    fill: none !important;
}


/* ==========================================================
   BOTON USUARIO JOBSENSIA - ESTADO DE SESION
   ========================================================== */

.jobsensia-user-button.jobsensia-user-logged-out {
    background: #9ca3af !important;
    color: #ffffff !important;
}

.jobsensia-user-button.jobsensia-user-logged-in {
    background: #16a34a !important;
    color: #ffffff !important;
}

.jobsensia-user-button.jobsensia-user-logged-in:hover {
    background: #15803d !important;
}

.jobsensia-user-button.jobsensia-user-logged-out:hover {
    background: #6b7280 !important;
}

.jobsensia-user-button.jobsensia-user-logged-in .jobsensia-user-icon,
.jobsensia-user-button.jobsensia-user-logged-out .jobsensia-user-icon {
    stroke: currentColor !important;
}

/* ==========================================================
   OFERTAS GUARDADAS
   ========================================================== */

.saved-offers-panel {
    width: 100%;
}

.saved-offers-title {
    margin: 0 0 14px 0;
    font-size: 18px;
    font-weight: 700;
}

.saved-offers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saved-offer-card {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    box-sizing: border-box;
}

.saved-offer-title {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #1f2937;
}

.saved-offer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.saved-offer-view,
.saved-offer-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.saved-offer-view {
    background: #2563eb;
    color: #ffffff;
}

.saved-offer-view:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.saved-offer-delete {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #dc2626;
}

.saved-offer-delete:hover {
    background: #fef2f2;
    border-color: #fecaca;
}

.saved-offers-empty {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #6b7280;
    font-size: 14px;
}


/* ==========================================================
   BOTON VER OFERTA - OFERTAS GUARDADAS
   ========================================================== */

.saved-offer-view {
    background: #ffffff !important;
    color: #2563eb !important;
    border: 1px solid #2563eb !important;
}

.saved-offer-view:hover {
    background: #f8fafc !important;
    color: #1d4ed8 !important;
}


/* ==========================================================
   VENTANA INTERMEDIA DE REGISTRO
   ========================================================== */

.auth-choice-overlay {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 23, 42, 0.45);

    z-index: 9999;
}


.auth-choice-box {
    position: relative;

    width: 100%;
    max-width: 420px;

    padding: 32px;

    background: #ffffff;

    border-radius: 14px;

    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.22);

    text-align: center;

    box-sizing: border-box;
}


.auth-choice-close {
    position: absolute;

    top: 12px;
    right: 14px;

    width: 32px;
    height: 32px;

    border: 0;
    background: transparent;

    font-size: 24px;
    line-height: 1;

    color: #64748b;

    cursor: pointer;
}


.auth-choice-logo {
    margin-bottom: 18px;

    font-size: 22px;
    font-weight: 700;

    color: #2563eb;
}


.auth-choice-box h2 {
    margin: 0 0 12px;

    font-size: 22px;

    color: #1f2937;
}


.auth-choice-box p {
    margin: 0 auto 24px;

    max-width: 340px;

    font-size: 15px;
    line-height: 1.55;

    color: #64748b;
}


.auth-choice-google {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 48px;

    margin-bottom: 12px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    background: #ffffff;

    color: #374151;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    box-sizing: border-box;

    transition:
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}


.auth-choice-google:hover {
    background: #f8fafc;

    border-color: #9ca3af;

    color: #1f2937;

    box-shadow:
        0 2px 6px rgba(15, 23, 42, .08);
}


.auth-choice-guest {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 44px;

    margin-bottom: 18px;

    border: 1px solid #dbe2ea;
    border-radius: 8px;

    background: #ffffff;

    color: #334155;

    font-size: 15px;
    font-weight: 500;

    cursor: pointer;
}


.auth-choice-guest:hover {
    background: #f8fafc;
}


.auth-choice-back {
    display: inline-block;

    font-size: 14px;

    color: #64748b;

    text-decoration: none;
}


.auth-choice-back:hover {
    color: #2563eb;
}


@media (max-width: 600px) {

    .auth-choice-box {
        max-width: 380px;

        padding: 28px 22px;
    }

}



.auth-choice-google-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    margin-right: 10px;

    border-radius: 50%;

    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;

    background: conic-gradient(
        #4285f4 0deg 90deg,
        #34a853 90deg 180deg,
        #fbbc05 180deg 270deg,
        #ea4335 270deg 360deg
    );

    color: #ffffff;

    box-sizing: border-box;
}

