


    @media (max-width: 768px) {
        #reclamaciones-form .form-group33,
        #reclamaciones-form .small-group {
            flex: 1 1 calc(50% - 10px);
        }
    }

    @media (max-width: 480px) {
        #reclamaciones-form .form-group33,
        #reclamaciones-form .small-group {
            flex: 1 1 100%;
        }
    }


/* ==================================================================*/
#modal-reclamo {
    display: none; 
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 800px; /* Limitar el ancho en pantallas grandes */
    background: #fff;
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2); /* Sombra suave */
    padding: 25px;
    z-index: 99999 !important; /* Asegura que esté por encima de otros elementos */
    height: auto;
    max-height: 85vh; /* Altura máxima para evitar que sea muy alto */
    opacity: 1; /* Asegurar que es visible */
    visibility: visible;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Evitar que otros estilos de WordPress afecten el modal */
#modal-reclamo * {
    box-sizing: border-box;
}
#modal-reclamo .modal-body {
    display: flex;
    flex-direction: column; /* Disposición en una sola columna */
    gap: 1rem; /* Espaciado entre los elementos */
    padding: 1.5rem; /* Espaciado interno para un diseño más cómodo */
    max-height: 70vh; /* Limita la altura del contenido */
    overflow-y: auto; /* Agrega barra de desplazamiento si el contenido excede la altura */
    font-family: Arial, sans-serif; /* Fuente base */
    font-size: 1rem; /* Tamaño de texto */
    background-color: #f9f9f9; /* Color de fondo suave */
    border-radius: 8px; /* Esquinas redondeadas */
}
#modal-reclamo .modal-body label {
    font-weight: bold; /* Hace que el texto sea m¨¢s destacado */
    font-size: 0.9rem; /* Tamaño de fuente adecuado */
    color: #333; /* Color oscuro para mejor contraste */
    font-family: Arial, sans-serif;
}

/* Agrega un estilo suave para la barra de desplazamiento */
#modal-reclamo .modal-body::-webkit-scrollbar {
    width: 10px; /* Ancho de la barra */
}

#modal-reclamo .modal-body::-webkit-scrollbar-thumb {
    background-color: #ccc; /* Color del control deslizante */
    border-radius: 5px; /* Esquinas redondeadas */
}

#modal-reclamo .modal-body::-webkit-scrollbar-thumb:hover {
    background-color: #999; /* Color más oscuro al pasar el cursor */
}

#modal-reclamo .modal-titulo {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    color: #007cba; /* Color azul similar a WordPress */
}
#modal-reclamo .titulo-respuesta {
    font-size: 20px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 15px;
    color: #007cba; /* Color azul similar a WordPress */
}

#responder-reclamo-form {
    font-family: Arial, sans-serif;
    font-size: 14px;
}

#responder-reclamo-form .form-container {
        width: 100%;
        max-width: 1200px;
        margin: 8px auto;
        border: 2px solid #f8af29;
        border-radius: 5px;
        overflow: hidden;
        font-family: Arial, sans-serif;
}
#responder-reclamo-form .form-header {
        background-color: #f8af29;
        padding: 10px;
        font-weight: bold;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
}
#responder-reclamo-form .form-header img {
        width: 20px;
        height: 20px;
    }

#responder-reclamo-form .form-body {
        padding: 15px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
#responder-reclamo-form .group1 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
    width: 100%; /* Ocupar todo el ancho */
    grid-column: 1 / -1; /* Ocupar toda la fila si está dentro de otro grid */
}
#responder-reclamo-form .group2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px; /* Espaciado entre elementos */
    width: 100%; /* Ocupar todo el ancho */
    grid-column: 1 / -1; /* Ocupar toda la fila si está dentro de otro grid */
}
#responder-reclamo-form .group2a {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%; /* Ocupar todo el ancho */
    grid-column: 1 / -1; /* Ocupar toda la fila si está dentro de otro grid */
}
#responder-reclamo-form .group3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%; /* Ocupar todo el ancho */
    grid-column: 1 / -1; /* Ocupar toda la fila si está dentro de otro grid */
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px; /* Espaciado entre botones */
    padding: 0% 3%;
}

/* Estilos generales para los botones dentro de .modal-footer */
 .modal-footer button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Botón Guardar (Responder) */
.modal-footer .btn-guardar {
    background-color: #007cba;
    color: #fff;
}

.modal-footer .btn-guardar::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('https://cdn-icons-png.flaticon.com/512/14563/14563051.png') no-repeat center center;
    background-size: contain;
}

/* Botón Cancelar */
 .modal-footer .btn-cancelar {
    background-color: #e74c3c;
    color: #fff;
}

.modal-footer .btn-cancelar::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('https://cdn-icons-png.flaticon.com/512/4347/4347434.png') no-repeat center center;
    background-size: contain;
}

/* Efecto hover */
 .modal-footer .btn-guardar:hover {
    background-color: #005a90;
}
 .modal-footer .btn-cancelar:hover {
    background-color: #c0392b;
}

#responder-reclamo-form .respuesta-proveedor {
    width: 100%;
    grid-column: span 2; /* Campo de respuesta ocupa las dos columnas */
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: none;
    min-height: 80px;
}
/* Estilo para el área de texto */
#responder-reclamo-form .textarea {
    width: 100%; /* Ocupa todo el ancho */
    min-height: 100px; /* Altura mínima */
    padding: 0.5rem; /* Espaciado interno */
    font-size: 1rem; /* Tamaño de texto */
    border: 1px solid #ccc; /* Borde base */
    border-radius: 5px; /* Esquinas redondeadas */
    resize: vertical; /* Solo permite cambiar el tamaño vertical */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* Sombra interna */
}
/* Estilos exclusivos para adjuntar archivos */
#responder-reclamo-form.file-upload-container-m {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

#responder-reclamo-form .file-upload-container-m a {
        color: #007bff;
        text-decoration: none;
        font-weight: bold;
        cursor: pointer;
    }
#responder-reclamo-form .file-upload-container-m a:hover {
        text-decoration: underline;
    }

#responder-reclamo-form .file-info-m {
        font-size: 12px;
        color: #555;
        width: 100%;
    }

#responder-reclamo-form .file-list-m {
        display: flex;
        gap: 10px;
        margin-top: 10px;
        flex-wrap: wrap;
    }

#responder-reclamo-form .file-item-m {
        width: 120px;
        text-align: center;
        border: 1px solid #ccc;
        border-radius: 5px;
        padding: 10px;
        background: #f9f9f9;
    }

#responder-reclamo-form .file-item-m img {
        width: 40px;
        height: 40px;
        margin-bottom: 5px;
    }

#responder-reclamo-form .file-name-m {
        font-size: 12px;
        margin-bottom: 5px;
        color: #333;
        word-break: break-word;
    }

#responder-reclamo-form .remove-file-m {
        background: red;
        color: white;
        border: none;
        padding: 5px;
        font-size: 12px;
        cursor: pointer;
        border-radius: 3px;
        width: 100%;
    }
#responder-reclamo-form #file-input-m {
        display: none;
    }

/* Adaptación para pantallas más pequeñas */
@media (max-width: 768px) {
    .modal-body {
        font-size: 0.9rem; /* Tamaño de texto más pequeño */
        padding: 1rem; /* Reduce el espaciado */
    }
}

.modal-detalle-close {
    background: none; /* Sin fondo */
    border: none; /* Sin borde */
    color: white; /* Color del botón */
    font-size: 20px; /* Tamaño adecuado para el botón */
    cursor: pointer; /* Cambia el cursor al pasar */
    font-weight: bold;
    transition: color 0.3s; /* Transición suave para el color */
}

.modal-detalle-close:hover {
    color: #ffdddd; /* Cambia el color al pasar el mouse */
}


/* Animacion de escala */
@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* Ajustes responsivos */
@media (max-width: 768px) {
    #responder-reclamo-form {
        grid-template-columns: 1fr; /* Cambia a una columna en pantallas pequeñas */
    }

    #respuesta-proveedor {
        grid-column: span 1;
    }

    .modal-detalle-footer {
        flex-direction: column;
        gap: 10px;
    }
}
