﻿/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

/* Variables CSS globales */
:root {
    --primary-color: #007bff;
    --hover-color: #0056b3;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --transition-speed: 0.3s;
}

/* Estilos generales */
body {
    margin: 0;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Contenedor del mural */
#mural-container {
    overflow: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#mural {
    position: relative;
    width: 1500px;
    min-height: 8000px;
    background-color: #ffffff;
    margin: 0 auto;
}

/* Imágenes del mural */
.img-bloque {
    position: absolute;
    transition: all var(--transition-speed) ease;
    z-index: 1;
    cursor: pointer;
    border: 2px solid transparent;
}

    .img-bloque:hover {
        transform: scale(1.05);
        z-index: 10;
        box-shadow: 0 0 15px var(--shadow-color);
        border-color: var(--primary-color);
    }

/* Botones */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 20px;
    transition: background-color var(--transition-speed) ease;
}

    .btn-primary:hover {
        background-color: var(--hover-color);
    }

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* MODAL FULLSCREEN PERSONALIZADO */
#fullscreenModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    #fullscreenModal.active {
        display: flex;
        opacity: 1;
    }

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10000;
    background: none;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

    .close-modal:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

#fullscreenImage {
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.modal-actions {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10000;
}

    .modal-actions .btn {
        margin: 5px;
        padding: 10px 20px;
        border-radius: 25px;
        font-weight: 500;
    }

    .modal-actions .input-group {
        max-width: 500px;
        margin-top: 10px;
    }

    .modal-actions .badge {
        font-size: 1rem;
        padding: 10px 15px;
    }

/* Estilos para el modal de subir imagen */
#modalSubirImagen .modal-content {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#infoImagen {
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
}

#previewImage {
    transition: transform 0.3s ease;
    max-width: 100%;
}

/* Slider de redimensionamiento */
#sliderVista {
    width: 100%;
    margin: 10px 0;
}

/* Etiquetas de información */
#infoImagen p {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

    #infoImagen p strong {
        display: inline-block;
        width: 120px;
    }

/* Input errors */
.input-error {
    border: 2px solid red;
    background-color: #ffe6e6;
}

/* Vista previa container */
#previewContainer {
    display: none;
}

    #previewContainer .img-fluid {
        max-height: 300px;
    }

/* Badges informativos */
.badge {
    font-size: 0.875rem;
}

/* Progress bar */
.progress {
    height: 25px;
}

.progress-bar {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    #mural {
        width: 100%;
        min-height: 4000px;
    }

    #fullscreenImage {
        max-width: 95%;
        max-height: 60vh;
    }

    .modal-actions {
        bottom: 20px;
    }

        .modal-actions .input-group {
            max-width: 90%;
        }

    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .modal-actions .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .modal-actions .badge {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    #fullscreenImage {
        max-width: 98%;
        max-height: 50vh;
    }

    .modal-actions .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .body-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Utilidades adicionales */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cursor-pointer {
    cursor: pointer;
}

.transition-all {
    transition: all var(--transition-speed) ease;
}

/* Estilos para el botón de debug */
.debug-btn {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
}

/* Mejoras visuales para los badges de información */
.bg-primary, .bg-success {
    color: white !important;
}

/* Ajustes para el formulario de subida */
.form-text {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Estilos para mensajes de error */
small[style*="color: red"] {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Mejoras en la visualización de imágenes */
.img-fluid {
    border-radius: 8px;
}

/* Ajustes para el input group en modal actions */
.modal-actions .form-control {
    background: white;
    border: 1px solid #dee2e6;
}

.modal-actions .btn-outline-light {
    border-color: white;
    color: white;
}

/* Estados de hover para botones del modal */
.modal-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Animaciones suaves */
.img-bloque, .btn, .close-modal {
    transition: all var(--transition-speed) ease;
}

    /* Focus states para accesibilidad */
    .btn:focus, .close-modal:focus, .form-control:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }

/* Mejoras en el slider */
.form-range:focus {
    outline: none;
}

.form-range::-webkit-slider-thumb {
    background: var(--primary-color);
}

.form-range::-moz-range-thumb {
    background: var(--primary-color);
}

/* Estilos para el contador de clics en el modal */
.click-counter {
    font-weight: 600;
    color: var(--primary-color);
}

/* Botón de descargar mural */
#btn-descargar-mural {
    position: fixed;
    bottom: 60px;
    right: 10px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-speed) ease;
}

    #btn-descargar-mural:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }

/* Estados de carga para la descarga */
.descargando {
    position: relative;
    pointer-events: none;
}

    .descargando::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid transparent;
        border-top: 2px solid #ffffff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mejoras para el modal de descarga */
.download-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

    .download-overlay.active {
        display: flex;
    }

.download-progress {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}



.btn-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #1EBE5B;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}

.btn-whatsapp i {
    color: white;
}





/* Estilos generales para Bolsa de Trabajo */
.bolsa-trabajo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.header-section {
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.titulo-principal {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitulo {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Contenedor del formulario */
.form-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.vacante-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

    .form-control:focus {
        outline: none;
        border-color: #667eea;
        background-color: white;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

/* Estilos para subida de archivos */
.file-upload-container {
    position: relative;
    margin-bottom: 15px;
}

.file-input {
    position: absolute;
    left: -9999px;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

    .file-upload-label:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }

.upload-icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

.file-name {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Preview de imagen */
.image-preview {
    margin-top: 20px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background-color: #fafafa;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#previewImage {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#previewText {
    color: #999;
    font-size: 1rem;
}

/* Botones */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-submit, .btn-reset {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    }

.btn-reset {
    background: #6c757d;
    color: white;
}

    .btn-reset:hover {
        background: #5a6268;
        transform: translateY(-2px);
    }

/* Sección de vacantes recientes */
.vacantes-recientes {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.section-title {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
}

.vacantes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .bolsa-trabajo-container {
        padding: 10px;
    }

    .form-container {
        padding: 20px;
    }

    .header-section {
        padding: 30px 15px;
    }

    .titulo-principal {
        font-size: 2rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-submit, .btn-reset {
        width: 100%;
        justify-content: center;
    }

    .vacantes-grid {
        grid-template-columns: 1fr;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container, .vacantes-recientes {
    animation: fadeIn 0.6s ease-out;
}

/* Estados de validación */
.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.input-validation-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

/* Mensajes de alerta */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Validación */
.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.input-validation-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

.tamaño-personalizado {
    width: 600px !important; /* Ancho personalizado */
    height: 500px !important; /* Alto personalizado */
    max-width: 100% !important; /* Mantiene responsividad */
    object-fit: contain !important; /* Ajusta la imagen sin distorsión */
}

.vacantes-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 15px;
}

.vacante-cell {
    width: 50%;
    vertical-align: top;
    padding: 0;
}

.vacante-item {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .vacante-item:hover {
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        transform: translateY(-2px);
    }

.vacante-imagen {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

.vacante-info {
    width: 100%;
}

    .vacante-info h5 {
        color: #333;
        margin-bottom: 5px;
        font-weight: 600;
        font-size: 1.1rem;
    }

    .vacante-info p {
        margin-bottom: 0;
        font-size: 0.9rem;
    }

.vacante-vacia {
    background: #f8f9fa;
    border: 2px dashed #ccc;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    color: #6c757d;
}

    .placeholder-content i {
        opacity: 0.5;
        transition: opacity 0.3s ease;
    }

.vacante-vacia:hover .placeholder-content i {
    opacity: 0.8;
}

/* Responsive */
@@media (max-width: 768px) {
    .vacantes-table {
        border-spacing: 10px;
    }

    .vacante-cell {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .vacante-imagen {
        height: 250px;
        max-width: 100%;
    }

    .vacante-vacia {
        min-height: 250px;
    }

    .vacante-item {
        padding: 15px;
    }
}

@@media (max-width: 576px) {
    .vacantes-table {
        border-spacing: 5px;
    }

    .vacante-imagen {
        height: 200px;
    }

    .vacante-vacia {
        min-height: 200px;
    }

    .vacante-item {
        padding: 10px;
    }

    .vacante-info h5 {
        font-size: 1rem;
    }
}

/* Estilos para la sección principal */
section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 3px solid #007bff;
}

/* Contenedor del QR */
.qr-container {
    display: inline-block;
    padding: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

    .qr-container:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
        border-color: #007bff;
    }

/* Imagen QR */
.qr-image {
    width: 120px;
    height: 120px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 5px;
    background: white;
}

/* Título principal */
#title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

/* Texto lead */
.lead {
    font-weight: 400;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 30px 0;
    }

    .qr-container {
        margin-top: 20px;
        padding: 12px;
    }

    .qr-image {
        width: 100px;
        height: 100px;
    }

    #title {
        font-size: 2.5rem;
    }

    .lead {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 576px) {
    section {
        padding: 20px 0;
    }

    .qr-container {
        margin-top: 15px;
        padding: 10px;
    }

    .qr-image {
        width: 90px;
        height: 90px;
    }

    #title {
        font-size: 2rem;
    }

    .lead {
        font-size: 1.1rem !important;
    }

    /* Eliminar bordes inferiores de las secciones individuales */
    .row.murales-ordenados section.row mt-4 {
        border-bottom: none !important;
    }



}
