#ZONA-AUTOMATIZACIONES {
    background-color: #EBEBEB;
    margin: -5px;
    margin-right: -8px;
    height: 100vh;
    padding-top: 15px;
}

/* ===== FILA 1 ===== */
#AUTOMATIZACION-FILA-1 {
    background-color: var(--color-blanco);
    width: 98%;
    margin: 0 auto;
    border-radius: 5px;
    padding: 20px;
    display: flex;
}

.auto-column-izq {
    width: 70%;
}

.auto-column-der {
    width: 30%;
    justify-items: center;
}

.auto-titulo {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
    width: 100%;
}

.auto-descripcion {
    font-size: 18px;
    color: #555;
    line-height: 1.4;
}

.btn-nueva-automatizacion {
    background-color: var(--color-azul-claro);
    font-size: 18px;
    width: max-content;
    padding: 10px 24px;
    border: none;
    border-radius: 5px;
    color: var(--color-blanco);
    cursor: pointer;
}

.btn-nueva-automatizacion:hover {
    opacity: 0.7;
}
/* ===== FIN FILA 1 ===== */

/* ===== MENU DE AUTOMATIZACIONES ===== */
.menu-automatizaciones {
    background-color: var(--color-blanco);
    width: 98%;
    margin: 20px auto;
    margin-bottom: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
    display: flex;
}

.opcion-respuestas-generales {
    width: 25%;
    text-align: center;
    height: 30px;
    align-content: center;
    border-radius: 5px;
}

.opcion-respuestas-generales:hover {
    cursor: pointer;
    background-color: var(--color-gris-terciario);
}

.opcion-respuestas-personalizadas {
    width: 25%;
    text-align: center;
    height: 30px;
    align-content: center;
    border-radius: 5px;
}

.opcion-respuestas-personalizadas:hover {
    cursor: pointer;
    background-color: var(--color-gris-terciario);
}

.opcion-respuestas-comentarios {
    width: 25%;
    text-align: center;
    height: 30px;
    align-content: center;
    border-radius: 5px;
}

.opcion-respuestas-comentarios:hover {
    cursor: pointer;
    background-color: var(--color-gris-terciario);
}

.activoOpcion {
    background-color: var(--color-gris-terciario);
}
/* ===== FIN MENU DE AUTOMATIZACIONES ===== */

.contenedor-respuestas {
    position: relative;
    overflow: hidden;
}

.contenedor-respuestas > div {
    position: absolute;
    width: 98%;
    top: 0;
    left: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 0;
    transform: translateX(100%);
}

/* Sección visible */
.seccion-activa {
    opacity: 1 !important;
    transform: translateX(0) !important;
    position: relative !important;
}

/* ===== RESPUESTAS GENERALES ===== */
.auto-respuestas-generales {
    background-color: var(--color-blanco);
    width: 98%;
    margin: 0 auto;
    border-radius: 5px;
    padding: 20px;
}

.header-respuestas-generales {
    display: flex;
}

.resp-generales-izq {
    width: 60%;
}

.resp-generales-der {
    width: 40%;
    align-content: center;
}

.titulo-resp-generales {
    display: block;
    width: 100%;
    font-size: 20px;
    margin-bottom: 7px;
}

.titulo-resp-generales > i {
    margin-right: 2px;
    color: var(--color-azul-claro);
}

.desc-resp-generales {
    line-height: 1.4;
}

.resp-generales-der > input {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 8px;
    width: 100%;
}

.resp-generales-der > input:focus {
    outline: none;
    border-color: var(--color-azul-claro);
}

/* TABLA DE RESPUESTAS GENERALES */
.tabla-respuestas-generales {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.tabla-header-resp-general {
    display: flex;
    background-color: var(--color-gris-terciario);
    color: var(--color-negr);
    padding: 10px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.tabla-header-resp-general > div {
    width: 16.6%;
    font-weight: 500;
    text-align: center;
}

.fila-resp-general {
    display: flex;
    border-bottom: 1px solid #ccc;
    padding: 10px 10px;
    text-align: center;
    align-content: center;
}

.col-canal {
    width: 5% !important;
    align-content: center;
}

.col-canal > img {
    width: 20px;
}

.col-coincidencia {
    width: 10% !important;
    align-content: center;
}

.col-palabras-claves {
    width: 50% !important;
}

.col-retraso {
    width: 6% !important;
    align-content: center;
}

.col-estado {
    width: 9% !important;
    align-content: center;
}

.col-respuesta {
    width: 10% !important;
}

.col-acciones {
    width: 10% !important;
    text-align: center;
}

.fila-resp-general .col-acciones .btn-editar-auto {
    background-color: #FFDB80;
    padding: 4px;
    border-radius: 5px;
    color: #4D4D4D;
}

.fila-resp-general .col-acciones .btn-editar-auto:hover {
    border: 1px solid #4D4D4D;
    padding: 3px;
}

.fila-resp-general .col-acciones .btn-eliminar-auto {
    background-color: #FF8080;
    padding: 4px;
    border-radius: 5px;
    color: #4D4D4D;
}

.fila-resp-general .col-acciones .btn-eliminar-auto:hover {
    border: 1px solid #4D4D4D;
    padding: 3px;
}

.fila-resp-general .col-acciones .btn-clonar-auto {
    background-color: #A7F3FC;
    padding: 4px;
    border-radius: 5px;
    color: #4D4D4D;
}

.fila-resp-general .col-acciones .btn-clonar-auto:hover {
    border: 1px solid #4D4D4D;
    padding: 3px;
}

/* CONTENEDOR */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

/* OCULTAR CHECK ORIGINAL */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* FONDO */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 50px;
}

/* CÍRCULO */
.slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 1px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

/* ACTIVO */
.switch input:checked + .slider {
    background-color: #2ecc71; /* verde */
}

/* MOVER CÍRCULO */
.switch input:checked + .slider::before {
    transform: translateX(22px);
}

.col-cont-respuesta {
    width: 20%;
    font-size: 15px;
    align-content: center;
}

.col-cont-respuesta > span {
    background-color: #B5DDFF;
    padding: 4px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 5px;
    color: var(--color-negro);
    border: 1px solid var(--color-gris-oscuro);
}

.col-cont-respuesta > span:hover {
    cursor: pointer;
}

.col-palabras-claves {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip-palabra {
    background: var(--color-gris-terciario);
    color: #333;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* ===== FIN RESPUESTAS GENERALES ===== */

/* ===== RESPUESTAS PERSONALIZADAS ===== */
.auto-respuestas-personalizadas {
    background-color: var(--color-blanco);
    width: 98%;
    margin: 0 auto;
    border-radius: 5px;
    padding: 20px;
}
/* ===== FIN RESPUESTAS PERSONALIZADAS ===== */

/* ===== RESPUESTAS COMENTARIOS ===== */
.auto-respuestas-comentarios {
    background-color: var(--color-blanco);
    width: 98%;
    margin: 0 auto;
    border-radius: 5px;
    padding: 20px;
}
/* ===== FIN RESPUESTAS COMENTARIOS ===== */

/* ===== MODAL NUEVA AUTOMATIZACION ===== */
#MODAL-NUEVA-AUTOMATIZACION {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-nueva-automatizacion {
    background-color: var(--color-blanco);
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    text-align: center;
    margin-bottom: 80px;
}

.modal-header {
    width: 100%;
    height: 30px;
}

.btn-cerrar-modal-auto {
    margin-left: auto;
    color: red;
    width: 25px;
    height: 25px;
    font-size: 22px;
}

.btn-agregar-respuesta-general {
    background-color: var(--color-azul-claro);
    color: var(--color-blanco);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

.btn-agregar-respuesta-general:hover {
    opacity: 0.8;
}

.btn-agregar-respuesta-personalizada {
    background-color: var(--color-azul-claro);
    color: var(--color-blanco);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

.btn-agregar-respuesta-personalizada:hover {
    opacity: 0.8;
}

.btn-agregar-respuesta-comentario {
    background-color: var(--color-azul-claro);
    color: var(--color-blanco);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

.btn-agregar-respuesta-comentario:hover {
    opacity: 0.8;
}
/* ===== FIN MODAL NUEVA AUTOMATIZACION ===== */


/* =====ZONA BOT RESPUESTAS GENERALES ===== */
.bot-respuestas-generales {
    display: none;
    width: 98%;
    margin: 0 auto;
    height: calc(100% - 62px);
    overflow-y: auto;
}

.creacion-bot-respuestas-generales {
    width: 100%;
    background-color: var(--color-blanco);
    padding: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.creacion-bot-respuestas-generales > i {
    color: var(--color-azul-claro);
    font-size: 22px;
    margin-right: 8px;
    padding: 5px;
    padding-right: 8px;
    border-radius: 5px;
    background-color: var(--color-gris-terciario);
}

.creacion-bot-respuestas-generales > i:hover {
    cursor: pointer;
    color: var(--color-negro);
}

.estado-respuestas-generales {
    display: flex;
    margin-left: auto;
}

.circulo-estado-resp-general {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background-color: var(--color-verde);
    margin-left: 5px;
    margin-right: 5px;
}

.contenido-respuestas-automatizadas {
    display: flex;
    width: 100%;
}

.conf-resp-general-izq {
    width: 50%;
}

.conf-basica-resp-general {
    width: 100%;
    background-color: var(--color-blanco);
    padding: 20px;
    border-radius: 5px;
}

.header-conf-basica span {
    font-weight: 500;
    margin-right: 7px;
}

.header-conf-basica small {
    font-size: 13px;
}

.group-nombre-resp-general {
    margin-top: 20px;
    display: block;
    width: 100%;
}

.group-nombre-resp-general label {
    display: block;
    margin-bottom: 6px;
    width: 100%;
}

.group-nombre-resp-general input {
    display: block;
    width: 100%;
    padding: 8px;
    border: 1px solid var(--color-gris-terciario);
    border-radius: 5px;
}

.group-nombre-resp-general input:focus {
    outline: none;
    border: 1px solid var(--color-azul-claro);
}

.group-canal-resp-general {
    margin-top: 20px;
    display: block;
    width: 100%;
}

.group-canal-resp-general label {
    display: block;
    margin-bottom: 6px;
    width: 100%;
}

.group-canal-resp-general select {
    display: block;
    width: 100%;
    padding: 8px;
    border: 1px solid var(--color-gris-terciario);
    border-radius: 5px;
}

.group-canal-resp-general select:hover {
    cursor: pointer;
}

.conf-basica-resp-general {
    width: 100%;
    background-color: var(--color-blanco);
    padding: 20px;
    border-radius: 5px;
} 

.conf-resp-general-der {
    width: 48%;
    margin-left: 2%;
}

.conf-basica-coincidencias {
    width: 100%;
    background-color: var(--color-blanco);
    padding: 20px;
    border-radius: 5px;
}

.header-conf-basica {
    display: flex;
    align-items: center;
}

.header-conf-basica span {
    font-weight: 500;
    margin-right: 7px;
}

.header-conf-basica small {
    font-size: 13px;
}

.group-tipo-coincidencia {
    margin-top: 20px;
    display: block;
    width: 100%;
}

.group-tipo-coincidencia label {
    display: block;
    margin-bottom: 6px;
    width: 100%;
}

.group-tipo-coincidencia select {
    display: block;
    width: 100%;
    padding: 8px;
    border: 1px solid var(--color-gris-terciario);
    border-radius: 5px;
}

.group-tipo-coincidencia select:hover {
    cursor: pointer;
}

.retraso-respuesta-general {
    margin-top: 20px;
    display: block;
    width: 100%;
}

.retraso-respuesta-general label {
    display: block;
    margin-bottom: 6px;
    width: 100%;
}

.retraso-respuesta-general input {
    display: block;
    width: 100%;
    padding: 8px;
    border: 1px solid var(--color-gris-terciario);
    border-radius: 5px;
}

.retraso-respuesta-general input:focus {
    outline: none;
    border: 1px solid var(--color-azul-claro);
}

.group-palabras-claves {
    margin-top: 20px;
    display: block;
    width: 100%;
}

.group-palabras-claves label {
    display: block;
    margin-bottom: 6px;
    width: 100%;
}

.group-palabras-claves input {
    display: block;
    width: 100%;
    padding: 8px;
    border: 1px solid var(--color-gris-terciario);
    border-radius: 5px;
}

.group-palabras-claves input:focus {
    outline: none;
    border: 1px solid var(--color-azul-claro);
}

.respuesta-comment-publico-general {
    background-color: var(--color-blanco);
    margin-top: 20px;
    display: block;
    width: 100%;
    padding: 20px;
    border-radius: 5px;
}

.header-respuesta-comment-publico {
    display: flex;
    align-items: center;
}

.header-respuesta-comment-publico span {
    font-weight: 500;
    margin-right: 7px;
}

.header-respuesta-comment-publico small {
    font-size: 13px;
}

.group-respuesta-comment-publico {
    margin-top: 20px;
    display: block;
    width: 100%;
}

.group-respuesta-comment-publico label {
    display: block;
    margin-bottom: 6px;
    width: 100%;
}

.group-respuesta-comment-publico textarea {
    display: block;
    width: 100%;
    padding: 8px;
    border: 1px solid var(--color-gris-terciario);
    border-radius: 5px;
    resize: vertical;
}

.group-respuesta-comment-publico textarea:focus {
    outline: none;
    border: 1px solid var(--color-azul-claro);
}

.respuesta-privado-general {
    background-color: var(--color-blanco);
    margin-top: 20px;
    display: block;
    width: 100%;
    padding: 20px;
    border-radius: 5px;
}

.header-respuesta-privado-general {
    display: flex;
    align-items: center;
}

.header-respuesta-privado-general span {
    font-weight: 500;
    margin-right: 7px;
}

.header-respuesta-privado-general small {
    font-size: 13px;
}

.group-respuesta-privado-general {
    margin-top: 20px;
    display: block;
    width: 100%;
}

.group-respuesta-privado-general label {
    display: block;
    margin-bottom: 6px;
    width: 100%;
}

.group-respuesta-privado-general textarea {
    display: block;
    width: 100%;
    padding: 8px;
    border: 1px solid var(--color-gris-terciario);
    border-radius: 5px;
    resize: vertical;
    height: 180px;
}

.group-respuesta-privado-general textarea:focus {
    outline: none;
    border: 1px solid var(--color-azul-claro);
}

.extra-respuesta-general {
    background-color: var(--color-blanco);
    display: flex;
    margin-top: 20px;
    padding: 20px;
    border-radius: 5px;
    align-items: center;
}

.extra-respuesta-general > div {
    width: 50%;
}

.extra-respuesta-general-btns {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    gap: 10px; /* espacio pequeño entre botones */
}

.extra-respuesta-general .btn-cancelar-respuesta-general,
.extra-respuesta-general .btn-guardar-respuesta-general {
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-cancelar-respuesta-general {
    background-color: #FF8080;
    color: var(--color-blanco);
}

.btn-cancelar-respuesta-general:hover {
    opacity: 0.8;
}

.btn-guardar-respuesta-general {
    background-color: var(--color-azul-claro);
    color: var(--color-blanco);
}

.btn-guardar-respuesta-general:hover {
    opacity: 0.8;
}

/* =====FIN ZONA BOT RESPUESTAS GENERALES ===== */


/* =====ZONA BOT RESPUESTAS PERSONALIZADAS ===== */
.bot-respuestas-personalizadas {
    display: none;
}
/* =====FIN ZONA BOT RESPUESTAS PERSONALIZADAS ===== */


/* =====ZONA BOT RESPUESTAS COMENTARIOS ===== */
.bot-respuestas-comentarios {
    display: none;
}
/* =====FIN ZONA BOT RESPUESTAS COMENTARIOS ===== */


/* Estilos cuando el ANCHO sea 1440px o menos (MONITORES MEDIANOS) */
@media (max-width: 1440px) {

    .col-cont-respuesta > span {
        background-color: #B5DDFF;
        padding: 4px;
        padding-left: 8px;
        padding-right: 8px;
        border-radius: 5px;
        color: var(--color-negro);
        border: 1px solid var(--color-gris-oscuro);
        font-size: 13px;
    }

    .col-retraso {
        display: none;
    }

    .col-respuesta {
        width: 20%;
    }

}