/* style-convocatoria.css - Premium & Accessible Redesign */

/* Resetting layout specifically for this view */
.convocatoria-page {
    padding: 6rem 1rem 4rem;
    background-color: #0f1115; /* Dark sophisticated background */
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

.convocatoria-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.convocatoria-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ff3b3b, #d30000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.convocatoria-header p {
    font-size: 1.25rem;
    color: #a1a1aa;
    line-height: 1.6;
}

.convocatoria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.job-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.job-card:hover, .job-card:focus-within {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 59, 59, 0.5);
}

.job-category {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff3b3b;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.job-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.job-details {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.job-details dt {
    font-size: 0.875rem;
    color: #a1a1aa;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.job-details dd {
    font-size: 1rem;
    color: #e4e4e7;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    margin-left: 0;
}

.btn-postular {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #d30000;
    color: #ffffff;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    min-height: 44px; /* Touch target size accessibility */
    min-width: 44px;
    text-decoration: none;
    gap: 0.5rem;
    width: 100%;
}

.btn-postular:hover {
    background-color: #ff3b3b;
}

.btn-postular:active {
    transform: scale(0.98);
}

/* Accessibility Focus States */
.btn-postular:focus {
    outline: none;
}

.btn-postular:focus-visible,
a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .job-card {
        transition: none !important;
    }
    .job-card:hover, .job-card:focus-within {
        transform: none !important;
    }
    .btn-postular {
        transition: none !important;
    }
}
/* --- 7. Empty State Convocatoria --- */
.empty-state-card {
    background: var(--surface-light);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-premium);
    max-width: 600px;
    margin: 0 auto;
}

.empty-state-icon {
    font-size: 4rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.empty-state-card h3 {
    color: var(--gigared-blue);
    font-weight: 700;
}

.empty-state-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Footer Premium Styling */
.footer_top_area {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-address {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-address i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.witr_single_socials ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.witr_single_socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.witr_single_socials a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-middle {
    padding: 60px 0 40px;
}

.footer-widget-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: currentColor;
    opacity: 0.3;
}

.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-list li {
    margin-bottom: 12px;
}

.footer-menu-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-menu-list a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-contact-group {
    margin-bottom: 24px;
}

.footer-contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 12px;
    display: block;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.contact-row:last-child {
    margin-bottom: 0;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-link:hover {
    color: #fff;
}

.footer-contact-link i {
    opacity: 0.7;
}

.footer-whatsapp-btn {
    color: #25D366;
    cursor: pointer;
    font-size: 1.5rem;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-whatsapp-btn:hover {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-bottom-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-bottom-menu a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-bottom-menu a:hover {
    color: #fff;
}

@media (max-width: 991px) {
    .witr_single_socials ul {
        justify-content: flex-start;
        margin-top: 20px;
    }

    .footer-bottom-menu ul {
        justify-content: flex-start;
        margin-top: 15px;
    }

    .footer-widget-title {
        margin-top: 30px;
    }
}

/* Home Hero Responsive Text */
.witr_swiper_content .home-hero-title {
    font-family: 'Montserrat', sans-serif !important; 
    font-size: 4.5rem !important; 
    font-weight: 900 !important; 
    color: #fff !important; 
    margin-bottom: 10px !important; 
    letter-spacing: -2px !important;
}
.witr_swiper_content .home-hero-subtitle {
    font-family: 'Montserrat', sans-serif !important; 
    font-size: 3rem !important; 
    font-weight: 800 !important; 
    color: #ff8000 !important; 
    text-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
}

@media (max-width: 768px) {
    .witr_swiper_content .home-hero-title {
        font-size: 2.5rem !important;
        letter-spacing: -1px !important;
    }
    .witr_swiper_content .home-hero-subtitle {
        font-size: 1.8rem !important;
    }
}/* ==========================================================================
   WhatsApp Floating Button (Premium Design)
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Posicionado a la izquierda para no traslapar con el botón 'scroll-to-top' que está a la derecha */
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
    color: #FFF;
}

/* Efecto de pulso (ping) */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: pulse-wa 2s infinite;
    z-index: -1;
}

@keyframes pulse-wa {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Tooltip elegante */
.whatsapp-float .whatsapp-tooltip {
    position: absolute;
    left: 80px; 
    top: 50%;
    transform: translateY(-50%);
    background: #FFF;
    color: var(--gigared-blue);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(0, 21, 90, 0.05);
}

/* Pequeña flecha para el tooltip */
.whatsapp-float .whatsapp-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-style: solid;
    border-color: transparent #FFF transparent transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(10px);
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
        font-size: 30px;
    }
    .whatsapp-float .whatsapp-tooltip {
        display: none; /* Ocultamos en móvil para mantener limpio el UI */
    }
}
