/* =====================================================
   BOLSA DE TRABAJO - ESTILOS
   ===================================================== */

/* === HERO SECTION === */
.bolsa-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-main) 50%, var(--blue-petrol) 75%, var(--teal-main) 100%);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bolsa-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.bolsa-hero::after {
    content: '';
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    height: 30px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='white'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='white'%3E%3C/path%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='white'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
    transform: scaleY(-1);
    pointer-events: none;
    z-index: 1;
}

.bolsa-hero .container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.bolsa-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease-out;
}

.bolsa-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2rem;
    color: var(--accent-green);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* === FILTROS SECTION === */
.filtros-section {
    background: var(--white-soft);
    padding: 2rem 0;
    margin-top: 30px;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.filtros-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blue-petrol);
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: var(--teal-main);
    box-shadow: 0 0 15px rgba(31, 163, 160, 0.2);
}

.filtros-wrapper {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filtro-select {
    padding: 0.8rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.filtro-select:focus {
    outline: none;
    border-color: var(--teal-main);
}

.filtro-select:hover {
    border-color: var(--blue-petrol);
}

/* === VACANTES SECTION === */
.vacantes-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--white-soft) 0%, white 100%);
    min-height: 50vh;
}

.vacantes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Vacante Card */
.vacante-card {
    background: white;
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.vacante-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-main), var(--teal-main), var(--accent-green));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.vacante-card:hover::before {
    transform: scaleX(1);
}

.vacante-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(31, 163, 160, 0.2);
    border-color: rgba(31, 163, 160, 0.2);
}

.vacante-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.vacante-empresa {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.empresa-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #f0f4f8;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-petrol);
    font-weight: 700;
    font-size: 1.2rem;
}

.empresa-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.empresa-info h4 {
    color: var(--blue-dark);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.empresa-info span {
    color: #888;
    font-size: 0.85rem;
}

.vacante-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.vacante-badge.urgente {
    background: #fee2e2;
    color: #dc2626;
}

.vacante-badge.nuevo {
    background: #dcfce7;
    color: #16a34a;
}

.vacante-badge.destacado {
    background: #fef3c7;
    color: #d97706;
}

.vacante-titulo {
    font-size: 1.3rem;
    color: var(--blue-main);
    margin-bottom: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.vacante-descripcion {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Apartado de contacto */
.vacante-contacto {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid #e8ecf1;
}

.vacante-contacto h5 {
    color: var(--blue-dark);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vacante-contacto h5 i {
    color: var(--teal-main);
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #555;
    font-size: 0.9rem;
}

.contacto-item i {
    color: var(--blue-main);
    width: 16px;
    text-align: center;
}

.vacante-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.vacante-fecha {
    color: #888;
    font-size: 0.85rem;
}

.btn-aplicar {
    background: linear-gradient(135deg, var(--blue-main), var(--teal-main));
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-aplicar:hover {
    background: linear-gradient(135deg, var(--blue-petrol), var(--accent-green));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 163, 160, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #888;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
}

/* === EMPRESAS SECTION === */
.empresas-section {
    background: #f5f7fa;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.empresas-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.empresas-text h2 {
    color: var(--blue-dark);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.empresas-text h2 i {
    color: var(--teal-main);
}

.empresas-text p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.beneficios-lista {
    list-style: none;
    padding: 0;
}

.beneficios-lista li {
    color: #444;
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.beneficios-lista li i {
    color: var(--teal-main);
    font-size: 1.2rem;
}

.empresas-cta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.cta-btn {
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    min-width: 250px;
    justify-content: center;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.cta-btn.secondary {
    background: white;
    color: var(--blue-main);
    border: 2px solid var(--blue-main);
}

.cta-btn.secondary:hover {
    background: var(--blue-main);
    color: white;
    border-color: var(--blue-main);
}

/* === CANDIDATOS SECTION === */
.candidatos-section {
    padding: 5rem 0;
    background: var(--white-soft);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tip-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.tip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(31, 163, 160, 0.15);
    border-color: rgba(31, 163, 160, 0.2);
}

.tip-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--blue-main), var(--teal-main));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.tip-card:hover .tip-icon {
    transform: scale(1.1) rotate(5deg);
}

.tip-icon i {
    font-size: 1.8rem;
    color: white;
}

.tip-card h3 {
    color: var(--blue-dark);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.tip-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === NAV MENU ACTIVE STATE === */
.nav-menu a.active {
    color: var(--teal-main) !important;
    font-weight: 600;
}

.nav-menu a.active::after {
    width: 90% !important;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .empresas-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .empresas-text h2 {
        justify-content: center;
    }

    .beneficios-lista li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .bolsa-hero {
        padding: 5rem 0 3rem;
        min-height: auto;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1rem 1.5rem;
    }

    .filtros-section {
        position: static;
    }

    .filtros-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .filtro-select {
        min-width: 100%;
    }

    .vacantes-grid {
        grid-template-columns: 1fr;
    }

    .vacante-header {
        flex-direction: column;
        gap: 1rem;
    }

    .vacante-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .btn-aplicar {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stat-item {
        flex: 1 1 100%;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Animación para las tarjetas de vacantes */
.vacante-card {
    animation: fadeInUp 0.6s ease-out both;
}

.vacante-card:nth-child(1) {
    animation-delay: 0.1s;
}

.vacante-card:nth-child(2) {
    animation-delay: 0.2s;
}

.vacante-card:nth-child(3) {
    animation-delay: 0.3s;
}

.vacante-card:nth-child(4) {
    animation-delay: 0.4s;
}

.vacante-card:nth-child(5) {
    animation-delay: 0.5s;
}

.vacante-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* === VACANTE POR VENCER === */
.vacante-por-vencer {
    border-color: #e67e22 !important;
    background: linear-gradient(145deg, #fff9f0 0%, #fff3e0 100%) !important;
}

.vacante-badge.por-vencer {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    animation: parpadeo 1.5s ease-in-out infinite;
}

@keyframes parpadeo {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.vacante-vigencia {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
}

.vacante-por-vencer .vacante-vigencia {
    color: #e67e22;
    font-weight: 600;
}

/* === DETALLES DESPLEGABLES === */
.vacante-info-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.info-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, rgba(31, 63, 120, 0.06), rgba(31, 163, 160, 0.08));
    color: var(--blue-dark, #1b2d5c);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
}

.info-tag i {
    color: var(--teal-main, #1fa3a0);
    font-size: 0.8rem;
}

.vacante-detalles,
.vacante-desplegable {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-bottom: 0;
}

.vacante-detalles.activo,
.vacante-desplegable.activo {
    max-height: 800px;
    opacity: 1;
    margin-bottom: 1rem;
}

.vacante-seccion p {
    color: #555;
    font-size: 0.88rem;
    line-height: 1.5;
}

.vacante-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.vacante-seccion {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #eef2f7;
}

.vacante-seccion:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.vacante-seccion h5 {
    color: var(--blue-dark, #1b2d5c);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vacante-seccion h5 i {
    color: var(--teal-main, #1fa3a0);
    font-size: 0.85rem;
}

.vacante-seccion ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vacante-seccion ul li {
    color: #555;
    font-size: 0.88rem;
    padding: 0.35rem 0;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.5;
}

.vacante-seccion ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--teal-main, #1fa3a0);
    border-radius: 50%;
}

.btn-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--teal-main, #1fa3a0);
    border: 1.5px solid var(--teal-main, #1fa3a0);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.btn-ver-mas:hover {
    background: var(--teal-main, #1fa3a0);
    color: white;
}

.btn-ver-mas i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .vacante-info-extra {
        flex-direction: column;
    }

    .info-tag {
        width: 100%;
    }
}
 