.empleo2-container {
    padding-top: 28px;
    padding-bottom: 30px;
}

.empleo2-hero {
    margin-top: 8px;
    margin-bottom: 12px;
}

.empleo2-title {
    font-family: inherit;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    letter-spacing: normal;
    color: inherit;
}

.empleo2-subtitle {
    color: #667085;
    margin-bottom: 0;
    font-size: 1.02rem;
}

.empleo2-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.empleo2-step {
    background: rgba(255, 255, 255, 0.9);
    color: #475467;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 11px 12px;
    font-weight: 700;
    text-align: center;
    transition: all 0.25s ease;
}

.empleo2-step.active {
    background: #29448e;
    color: #fff;
    border-color: #29448e;
    box-shadow: 0 8px 18px rgba(41, 68, 142, 0.22);
}

.empleo2-card {
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.07);
    padding: 24px;
}

.empleo2-card + .empleo2-card {
    margin-top: 14px;
}

.empleo2-card-title {
    font-size: 1.28rem;
    font-weight: 800;
    color: #101828;
    margin-bottom: 16px;
}

.empleo2-search-wrap {
    margin-bottom: 14px;
}

.empleo2-search {
    border-radius: 10px;
    min-height: 42px;
}

.empleo2-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.empleo2-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.empresa-item {
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fff;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    min-height: 96px;
    position: relative;
    overflow: visible;
}

.empresa-item:hover {
    border-color: #5b7be3;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(58, 84, 172, 0.16);
}

.empresa-logo-wrap {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    border: 1px solid #eceff8;
    background: #f8f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.empresa-item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.empresa-hover-card {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(6px);
    width: 220px;
    background: #ffffff;
    border: 1px solid #dbe1ea;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    padding: 10px;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    transition: all 0.2s ease;
}

.empresa-hover-card::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    border-width: 7px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

.empresa-hover-logo-wrap {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 8px;
}

.empresa-hover-logo-wrap img {
    width: 108px;
    height: 108px;
    object-fit: contain;
}

.empresa-hover-nombre {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1f2937;
    text-align: center;
    line-height: 1.25;
    word-break: break-word;
}

.empresa-item:hover .empresa-hover-card {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.empresa-meta {
    min-width: 0;
    flex: 1;
}

.empresa-item .empresa-nombre {
    font-weight: 700;
    color: #1d2939;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empresa-action {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #475467;
    display: inline-block;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    padding: 2px 10px;
}

.empresa-item.selected {
    border-color: #3554b3;
    box-shadow: 0 0 0 3px rgba(41, 68, 142, 0.16), 0 12px 24px rgba(41, 68, 142, 0.2);
}

.empresa-item.selected .empresa-action {
    border-color: #3554b3;
    color: #29448e;
    background: #eef3ff;
}

.empleo2-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.centro-item {
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 11px 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fff;
    color: #344054;
    display: flex;
    align-items: center;
    gap: 12px;
}

.centro-item-content {
    min-width: 0;
}

.centro-item-content-full {
    width: 100%;
}

.centro-item-nombre {
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.centro-item-meta {
    font-size: 0.78rem;
    color: #667085;
    margin-top: 2px;
}

.centro-item:hover {
    border-color: #5b7be3;
    background: #f7f9ff;
    transform: translateX(2px);
}

.centro-item.selected {
    border-color: #3554b3;
    background: #eef3ff;
    box-shadow: 0 0 0 2px rgba(41, 68, 142, 0.14);
}

.empleo2-selected-company {
    color: #475467;
    margin-bottom: 14px;
    background: #f8faff;
    border: 1px solid #e5e9f7;
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.empleo2-selected-company-logo-wrap {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border: 1px solid #e3e8f3;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.empleo2-selected-company-logo-wrap img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.empleo2-selected-company-info {
    min-width: 0;
}

.empleo2-selected-company-label {
    display: block;
    font-size: 0.78rem;
    color: #667085;
    margin-bottom: 2px;
}

.empleo2-selection-summary {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    color: #344054;
    background: #f8faff;
    border: 1px solid #e5e9f7;
    border-radius: 10px;
    padding: 10px 12px;
}

.empleo2-empty {
    color: #667085;
    background: #f8fafc;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    padding: 16px;
}

.empleo2-submit {
    min-width: 180px;
    border-radius: 10px;
    font-weight: 700;
    padding: 10px 16px;
    box-shadow: 0 10px 24px rgba(41, 68, 142, 0.24);
}

.empleo2-submit:hover {
    transform: translateY(-1px);
}

.empleo2-back {
    border-radius: 10px;
    border-color: #d0d5dd;
    font-weight: 600;
    color: #1f2937 !important;
    background-color: #ffffff !important;
}

.empleo2-back:hover,
.empleo2-back:focus,
.empleo2-back:active {
    color: #111827 !important;
    background-color: #f9fafb !important;
    border-color: #c7ced8 !important;
}

#formSolicitarEmpleo2 .form-group label {
    color: #344054;
    font-size: 0.92rem;
    margin-bottom: 6px;
}

#formSolicitarEmpleo2 .form-control {
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    min-height: 42px;
    box-shadow: none;
}

#formSolicitarEmpleo2 .form-control:focus {
    border-color: #4460b8;
    box-shadow: 0 0 0 4px rgba(68, 96, 184, 0.14);
}

@media (max-width: 768px) {
    .empleo2-container {
        padding-top: 18px;
        padding-bottom: 22px;
    }

    .empleo2-title {
        font-size: 2rem;
    }

    .empleo2-subtitle {
        font-size: 0.95rem;
    }

    .empleo2-card {
        padding: 16px;
        border-radius: 14px;
    }

    .empleo2-card-title {
        font-size: 1.05rem;
        margin-bottom: 12px;
    }

    .empleo2-card-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .empleo2-back {
        width: 100%;
    }

    .empleo2-step {
        font-size: 0.9rem;
        padding: 8px;
    }

    .empleo2-steps {
        gap: 8px;
    }

    .empleo2-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .empresa-item {
        min-height: auto;
        padding: 12px;
        gap: 10px;
    }

    .empresa-logo-wrap {
        width: 64px;
        height: 64px;
        border-radius: 10px;
    }

    .empresa-item img {
        width: 48px;
        height: 48px;
    }

    .empresa-item .empresa-nombre {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.25;
        font-size: 0.92rem;
    }

    .empresa-action {
        font-size: 0.74rem;
        padding: 2px 8px;
    }

    .centro-item {
        padding: 11px 12px;
        font-size: 0.92rem;
    }

    .empleo2-selected-company,
    .empleo2-selection-summary {
        font-size: 0.9rem;
        padding: 9px 10px;
    }

    .empleo2-selected-company-logo-wrap {
        width: 44px;
        height: 44px;
    }

    .empleo2-selected-company-logo-wrap img {
        width: 32px;
        height: 32px;
    }

    .centro-item-meta {
        font-size: 0.74rem;
    }

    .empleo2-search {
        min-height: 40px;
        font-size: 0.95rem;
    }

    #formSolicitarEmpleo2 .form-group label {
        font-size: 0.88rem;
    }

    #formSolicitarEmpleo2 .form-control {
        min-height: 40px;
    }

    .empleo2-submit {
        width: 100%;
        min-width: 0;
    }

    /* En móvil/táctil el hover flotante empeora UX/layout */
    .empresa-hover-card {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    .empleo2-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .empleo2-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .empleo2-step {
        font-size: 0.78rem;
        padding: 7px 6px;
    }

    .empleo2-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .empleo2-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}
