:root {
    --primary-color: #16382f;
    --secondary-color: #34C759;
    --background-color: #F2F2F7;
    --text-color: #1C1C1E;
    --card-background: #FFFFFF;
    --border-radius: 12px;
    --accent-color: #34C759; /* Color verde para acreditación */
    --attention-color: #E1E100;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    width: 92%;
    /* max-width: 768px;*/
    margin: auto;
    /* display: flex; */
    flex-wrap: wrap; 
    padding: 20px 15px; /* Añadimos padding horizontal */
    overflow-x: auto; /* Permite scroll horizontal en dispositivos pequeños */
}
.container_acreditar_cobrar {
    width: 92%;
    max-width: 2000 px;
    margin: auto;
    /* display: flex; */
    flex-wrap: wrap; 
    padding: 20px 15px; /* Añadimos padding horizontal */
    overflow-x: auto; /* Permite scroll horizontal en dispositivos pequeños */
}

nav {
    background-color: var(--card-background);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav ul {
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

nav li {
    margin: 5px 10px;
}

nav li:first-child {
    margin-left: 20px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: var(--border-radius);
}

nav a:hover, nav a:focus {
    color: #07f7c8;
    background-color: rgba(0,122,255,0.1);
}

h1, h2, h3, h4, h5 {
    color: #1f544a;
    text-align: center;
}

.button {
    display: inline-block;
    background-color: #1f544a;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 600;
    text-align: center;
    margin-bottom: 5px;
}

.button:hover, .button:focus {
    background-color: #1f544a;
    transform: translateY(-2px);
}

.gestionar_entidad_button {
    background-color: #1f544a;
    color: white;
    padding-block: 1px;
    padding-inline: 8px;
    text-decoration: none;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 600;
    text-align: center;
}

.gestionar_entidad_button:hover, .gestionar_entidad_button:focus {
    background-color: #1f544a;
    transform: translateY(-2px);
}
form {
    background-color: var(--card-background);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 350px; /* Ancho fijo de 350 píxeles */
    margin: 0 auto; /* Centrado horizontal */
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="time"], input[type="number"], textarea, select {
    /* font-size: 16px; */
    width: 97%;
    border-radius: var(--border-radius);
    transition: border-color 0.3s ease;
    flex-wrap: wrap; 
    /* display: flex; */
    flex-direction: row;
    padding: 12px;
    margin: 5px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    font-size: 14px;
    /* border-radius: 4px; */
}

.form-control {
    width: 97%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border-color 0.3s ease;
    margin-bottom: 8px;
    box-sizing: border-box;
}

/* Estilos específicos para los formularios de niños */
.nino-form .form-group {
    margin-bottom: 15px;
}

.nino-form textarea,
.nino-form select {
    width: 92%;
}

/* input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="time"]:focus, input[type="number"]:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
    outline: none;
} */

table {
    width: 100%;
    /* min-width: 600px; Establece un ancho mínimo para la tabla */
    border-collapse: separate;
    border-spacing: 1px;
    margin-top: 20px;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

th, td {
    padding: 16px;
    text-align: left;
}

th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

th.action-header, td.action-cell {
    text-align: center;
}

td.action-cell {
    border: none;
    background-color: transparent;
    padding: 0;
}

td.action-cell form {
    margin: 0;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
}

td.action-cell button {
    margin: 0;
    margin-bottom: 5px;
}

tr:nth-child(even) {
    background-color: rgba(0,0,0,0.02);
}

.error-message {
    color: #FF3B30;
    font-size: 0.9em;
    margin-top: 4px;
}

.help-text {
    font-size: 0.9em;
    color: #8E8E93;
    margin-top: 4px;
}

.center-button {
    text-align: center;
    margin-top: 20px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.detail-table th {
    text-align: center;
    background-color: var(--primary-color);
    color: white;
}

.representantes-list {
    list-style-type: none;
    padding-left: 0;
/*  margin: 0; rolled back */
}

.persona-item {
    display: flex;
/*  flex-direction: column; rolled back*/
    align-items: flex-start;
    padding: 5px 0;
    position: relative;
    margin-left: 20px;
}

.persona-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.persona-item:not(.acreditado)::before {
    content: '>';
    /* transform: translateY(-50%); rolled back */
    color: #999;
    font-weight: bold;
    font-size: 1.2em;
    width: 4px; /*Mismo ancho que el indicador de acreditado*/
}

.persona-item.acreditado::before {
    /* content: ''; rolled back */
    /* width: 4px; rolled back */
    /* height: 100%; rolled back */
    background-color: var(--accent-color);
    border-radius: 2px;
    /* left: -25px; rolled back */
    top: 4px;
    bottom: 4px;
    /* transform: none; rolled back */
}

.persona-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.persona-info a {
    color:#0000EE;
    /* color: var(--text-color); rolled back */
    text-decoration: underline;
    margin-bottom: 5px;
}

.persona-info.acreditado {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: underline;
}

.persona-rol {
    color: #666;
    padding-left: 0; /* Alinea con el inicio del nombre */
    /* margin-left: 20px; rolled back */
}

.persona-item.acreditado .persona-info,
.persona-item.acreditado .persona-rol {
    font-weight: 700;
}

@media (min-width: 768px) {
    .persona-info a,
    .persona-rol {
        flex-basis: auto;
    }

    .persona-rol {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav li {
        margin: 8px 0;
        width: 100%;
    }

    nav li:first-child {
        margin-left: 0;
    }

    nav a {
        display: block;
        padding: 10px 20px;
    }

    .container {
        width: 100%; /* Ocupa todo el ancho en pantallas pequeñas */
        padding: 20px 10px; /* Reduce el padding en pantallas pequeñas */
    }

    form {
        padding: 20px;
    }
}

@media (min-width: 480px) and (max-width: 770px) {
    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav li {
        width: auto;
        margin: 5px;
    }
}

/*  */
/* @media (max-width: 480px) { */
    /* /* .button { */
        /* width: 100%; */
        /* margin-bottom: 10px; */
    /* } */
/*  */
    /* nav ul { */
        /* display: none; */
    /* } */
/*  */
    /* .nav-toggle { */
        /* display: block; */
        /* font-size: 1.5em; */
    /* } */
/*  */
    /* nav ul { */
        /* display: none; */
    /* } */
/*  */
    /* .nav-toggle { */
        /* display: block; */
        /* font-size: 1.5em; */
        /* cursor: pointer; */
        /* padding: 10px; */
    /* } */
/*  */
    /* .nav-toggle:before { */
        /* content: '☰'; */
    /* } */
/*  */
    /* .nav-toggle.active:before { */
        /* content: '✕'; */
    /* } */
/*  */
    /* nav.active ul { */
        /* display: flex; */
        /* flex-direction: column; */
    /* } */
/* } */

@media (min-width: 200px) and (max-width: 770px) {
    nav ul {
        padding-left: 15px;
    }

    nav li {
        margin-left: 0;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    input[type="text"], input[type="email"], input[type="password"], textarea, select {
        margin-bottom: 16px;
    }
}

@media (min-width: 400px) {
    .flow-diagram {
        justify-content: center;
    }
}

.acreditado {
    color: var(--accent-color);
    font-weight: bold;
}

.descripcion-acreditacion {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 20px;
}

.acreditado-info {
    display: flex;
    align-items: stretch;
    font-weight: normal;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.acreditado-info strong {
    font-weight: 700;
    color: var(--accent-color);
}

.acreditado-info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Eliminar o comentar el siguiente bloque */
/*
.indicador-verde {
    display: inline-block;
    width: 4px;
    height: 16px;
    background-color: var(--accent-color);
    margin-right: 10px;
    border-radius: 2px;
}
*/

.sortable th {
    padding: 0;
    position: relative;
}

.sortable th a {
    display: block;
    width: 100%;
    height: 100%;
    color: white;
    text-decoration: none;
    padding: 16px;
    padding-right: 25px; /* Espacio para la flecha */
}
.sortable th a:hover {
    text-decoration: underline;
}
.sortable th a::after {
    content: '\25B2';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.sortable th a[data-order="desc"]::after {
    content: '\25BC';
}

.sortable th.action-header {
    padding: 16px;
}

.sortable th.action-header::after {
    content: none;
}

.filter-controls {
    display: flex;
    max-width: 1500px;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-controls input[type="text"] {
    flex: 1;
    min-width: 150px;
}

.filter-controls .button {
    flex: 0 0 auto;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.sortable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

/* Estilos para el menú desplegable */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #1f544a;
    color: white;
    padding: 12px 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-arrow::after {
    content: '\25BC'; /* Flecha hacia abajo */
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropbtn.open .dropdown-arrow::after {
    transform: rotate(180deg); /* Gira la flecha cuando el menú está abierto */
}

.dropbtn:hover, .dropbtn:focus {
    background-color: #16382f;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #718888;
    min-width: fit-content;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    left: 0;
    top: 100%;
    border-radius: var(--border-radius);
    width: 100%;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.dropdown-content a:hover {
    background-color: #5a6e6e;
}

.show {
    display: block;
}

/* Asegúrate de que estos estilos estén presentes o modifícalos según sea necesario */
nav a:hover, nav a:focus, .dropbtn:hover, .dropbtn:focus {
    color: #07f7c8;
    background-color: rgba(0,122,255,0.1);
}

.dropbtn.active {
    color: #07f7c8;
    background-color: rgba(0, 122, 255, 0.1);
}

@media (max-width: 480px) {
    .dropdown, .dropbtn, .dropdown-content, .dropdown-content a {
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
    }
}

/* Estilos para la tabla de acreditación*/
.table-responsive {
    overflow-x: auto;
    max-width: 2000px;
    display: flex; 
    margin: 0 auto;
    zoom: 0.9;
}
.acreditacion-table, .administrar-ninos-table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
}

.acreditacion-table th,
.acreditacion-table td, .administrar-ninos-table th, .administrar-ninos-table td {
    padding: 10px;
    border: 1px solid #ddd;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* .acreditacion-table .acreditacion-column, */
/* .acreditacion-table td:nth-child(8) { */
/*     width: 50px; /* Ajusta este valor según tus necesidades */
/* } */

/*.acreditacion-column{ */
/*    width: 150px; */
/*} */
/* Asegura que el botón dentro de la celda de Acreditación se ajuste correctamente */

/* .acreditacion-cell .button { */
    /* width: 100%; */
    /* box-sizing: border-box; */
/* } */

/* Estilos para el diagrama de flujo */
.flow-diagram {
    display: flex;
    /* justify-content: center; /* en la sección de media, se regula que para pantallas mayores de 400 píxeles se alínea al centro el contenido */
    align-items: center;
    margin: 20px 0;
    padding: 10px;
}

.flow-step {
    position: relative;
    background-color: #e0e0e0;
    color: #333;
    text-align: center;
    padding: 10px 30px;
    margin-right: 10px;
    clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%, 10% 50%);
}

.flow-step:first-child {
    clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
}

.flow-step:last-child {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 10% 50%);
    margin-right: 0;
}

.flow-step.completed {
    background-color: var(--accent-color);
    color: white;
}

.flow-step span {
    position: relative;
    z-index: 1;
}

.required {
    color: red;
    margin-left: 5px;
}

.estado-nino {
    font-weight: bold;
    text-align: center;
    color: #007AFF;
}

/* .checkbox-group {
    display: flex;
    align-items: left;
} */

input[type="checkbox"], .checkbox-group {
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    background-color: initial;
    cursor: default;
    appearance: auto;
    box-sizing: border-box;
    margin: 4px 160px 14px 4px;
    padding: initial;
    border: initial;
} 

.ninos-info {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.ninos-info-flex {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 373.3px; /* Ajusta este valor según tus necesidades */
    width: 100%;
}

.ninos-button {
    flex: 0 0 auto;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
}

.ninos-stats {
    flex: 1;
}

.ninos-stats p {
    display: flex;
    margin-block-start: 1em;
    margin-block-end: 1em;
    unicode-bidi: isolate;
    justify-content: center;
    /* margin: 5px 0; */
    /* margin-inline-start: 6px; */
    /* align-self: auto; */
    /* margin-inline-end: 6px; */
}

@media (max-width: 268px) {
    .ninos-info-flex {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ninos-button {
        width: 100%;
        margin-bottom: 10px;
    }
}

body:not(.admin-view) .listado-publico-filter {
    
    /* display: flex; */
    width: 92%;
    max-width: 1500px;
    margin: auto;
    flex-wrap: wrap; 
    padding: 20px 15px; /* Añadimos padding horizontal */
    overflow-x: auto; /* Permite scroll horizontal en dispositivos pequeños*/
}

/* Estilos para los campos de filtro en listado_publico */
.listado-publico-input,
.listado-publico-select {
    max-width: 150px;
/*  flex-wrap: wrap; 
    display: flex;
    flex-direction: row;
    margin: 5px;
    border: 1px solid #ddd;
    font-size: 14px;
    padding: 8px; 
    border-radius: 18px;*/
}

.listado-publico-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 100%;
    background-position-y: 5px;
    padding-right: 25px;
}

.messages {
    padding: 10px;
    margin: 10px 0;
    border-radius: var(--border-radius);
    text-align: center;
}

.messages .success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.messages .error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Ajustes para el contenedor del formulario */
.listado-publico-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

/* Ajuste para el botón dentro del formulario */
.listado-publico-filter .button {
    margin-top: 5px;
}

/* Media query para pantallas pequeñas */
/* @media (max-width: 768px) {
    .listado-publico-input,
    .listado-publico-select {
        max-width: none;
    } */
    
    /* .listado-publico-filter {
        flex-direction: column;
        align-items: stretch;
    } */
/* } */

.help-message {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    flex-direction: row;
    justify-content: center;
}

.texto-indicador-procesando {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 5px;
    z-index: 1000;
    text-align: center;
    font-size: 18px;
}

.attention {
    font-weight: 700;
    color: var(--attention-color);
}

.attention-indicator {
    display: flex;
    align-items: stretch;
    font-weight: normal;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.attention-indicator::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--attention-color);
    border-radius: 2px;
}

#actualizarPersonaForm {
    width: 100%;
    width: 350px; /* Ancho fijo de 350 píxeles */
    margin: 0 auto;
}

.adicional table {
    width: 350px; /* Ancho fijo de 350 píxeles */
    margin-bottom: 15px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: var(--border-radius);
}

.entidades-roles-container table {
    width: 100%;
    width: 350px; /* Ancho fijo de 350 píxeles */
    table-layout: fixed;
}

.remove-entidad {
    float: right;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
}

.entidad-adicional td:nth-child(1) {
    width: 18px;
}

.entidad-adicional td:nth-child(2) {
    width: 157px;
}

.entidad-adicional td:nth-child(3) {
    width: 175px;
}

.entidad-adicional td {
    vertical-align: top;
    word-wrap: break-word;
}

.entidad-adicional .form-group {
    margin-bottom: 10px;
}

/* Estilos para el menú en pantallas pequeñas */
@media screen and (max-width: 480px) {
    nav {
        position: fixed;
        top: 0;
        left: -50%;
        width: 50%;
        height: 100vh;
        background-color: var(--card-background);
        transition: left 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        /*padding-top: 60px;*/
    }

    nav li {
        margin: 10px 0;
    }

    .nav-toggle {
        display: block;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1001;
        background: none;
        border: none;
        font-size: 30px;
        cursor: pointer;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .overlay.active {
        display: block;
    }

    body {
        padding-top: 50px;
    }
}

/* Ocultar el botón nav-toggle en pantallas mayores a 480px */
@media screen and (min-width: 481px) {
    .nav-toggle {
        display: none;
    }
}

@font-face {
    font-family: 'Century Gothic';
    src: url('../fonts/CenturyGothic.ttf') format('truetype');
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFFFFF;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 42px; /* Ajusta esto según la altura de tu botón nav-toggle */
}

.top-bar-title-container {
    display: flex;
    flex-direction: row;  /* Por defecto, uno al lado del otro */
    align-items: center;
    justify-content: flex-start;
}

.top-bar-title {
    font-family: 'Century Gothic', sans-serif;
    font-weight: bold;
    font-size: 1.4em;
    color: #1f544a;
    left: 60px; /* Ajustado para dar espacio al nav-toggle */
    overflow: hidden; /* Oculta el texto que exceda el ancho */
    text-overflow: ellipsis; /* Muestra puntos suspensivos si el texto es cortado */
    margin: 0;
}

.version-text {
    margin-left: 8px;
    font-size: 0.8em;
    white-space: nowrap;  /* Evita que el texto se rompa */
}

.top-bar-logo {
    height: 30px; /* Ajusta esto según el tamaño deseado para el logo pequeño */
    margin-left: auto;
}

.top-bar-logo-large {
    display: none; /* Oculto por defecto */
}

@media (max-width: 480px) {
    .nav-toggle {
        display: block;
        position: absolute;
        left: 10px;
        z-index: 1002; /* Asegura que esté por encima del menú lateral */
    }
    body {
        padding-top: 52px;
    }
    .top-bar-title {
        left: 60px; /* Espacio para el nav-toggle */
        right: 50px; /* Espacio para el logo */
        color: #1f544a;
    }
    /* nav {
        padding-top: 60px; Espacio para el botón de cierre
    } */
    .nav-close {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 30px;
        cursor: pointer;
        z-index: 1001;
    }
}


@media (min-width: 274px) {
    .top-bar-title {
        font-size: 1.2em;
    }
}

@media (max-width: 274px) and (min-width: 245px) {
    .top-bar-title {
        font-size: calc(0em + 6.985vw); /* Escalado dinámico */
    }
}

@media (max-width: 245px) {
    .top-bar-title {
        display: none; /* Oculta el título cuando la pantalla es muy pequeña */
    }
}

@media (min-width: 401px) {
    .nav-toggle {
        display: block;
    }
    .top-bar-logo {
        display: none;
    }
    .top-bar-logo-large {
        display: block; /* Muestra el logo grande */
        height: 200px; /* Mantiene la altura de 200px */
        margin-left: auto;
    }
    .top-bar {
        height: 40px;
    }
    .top-bar-title {
        left: 60px; /* Espacio para el nav-toggle */
        right: 50px; /* Espacio para el logo */
        font-size: 1.2em;
    }
    body {
        padding-top: 60px; /*Ajusta esto según la nueva altura de tu top-bar*/
    } 
}

@media (max-width: 480px) {
    .nav-toggle {
        display: block;
        position: absolute;
        left: 10px;
        z-index: 1002;
    }
    body {
        padding-top: 52px;
    }
    .top-bar-title {
        left: 60px;
        right: 50px;
    }
    /*nav {
        padding-top: 60px;
    }*/
    .nav-close {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 30px;
        cursor: pointer;
        z-index: 1001;
    }
}

@media (min-width: 481px) {
    .nav-toggle {
        display: none; /* Oculta el botón de navegación en pantallas más grandes */
    }
    .nav-close {
        display: none; /* Oculta el botón de cierre en pantallas más grandes */
    }
    .top-bar-logo {
        display: none;
    }
    .top-bar-logo-large {
        display: block;
        height: 200px;
        margin-left: auto;
    }
    .top-bar {
        height: 40px;
    }
    .top-bar-title {
        left: 30px; /* Ajusta el margen izquierdo cuando no hay nav-toggle */
        font-size: 1.2em;
    }
    body {
        padding-top: 60px;
    }
    nav {
        position: static; /* Restaura la posición normal del nav */
        width: auto;
        height: auto;
        background-color: transparent;
        overflow-y: visible;
    }
    nav ul {
        flex-direction: row;
        padding-top: 0;
    }
    nav li {
        margin: 0 10px;
    }
}

.top-bar-title-container {
    display: flex;
    flex-direction: row;  /* Por defecto, uno al lado del otro */
    align-items: center;
    justify-content: flex-start;
}

.top-bar-title {
    margin: 0;
}

.version-text {
    margin-left: 8px;
    font-size: 0.8em;
    white-space: nowrap;  /* Evita que el texto se rompa */
}

@media screen and (max-width: 480px) {
    .top-bar-title-container {
        flex-direction: column;  /* En pantallas pequeñas, uno arriba y otro abajo */
        margin-left: 35px;
        justify-content: center;
        line-height: 1.2;
    }

    .top-bar-title {
        text-align: center;
        margin-bottom: 2px;  /* Pequeño espacio entre título y versión */
    }

    .version-text {
        margin-left: 0;  /* Elimina el margen lateral en vista móvil */
        text-align: center;
    }
}

@media screen and (max-width: 245px) {
    .version-text {
        display: none;  /* Oculta el texto de versión en pantallas muy pequeñas */
    }
}

.indicador-logo {
    display: block;
    margin: 10px auto 0;
    max-width: 50px;
    height: auto;
}

select[multiple] {
    height: auto;
    min-height: 200px;
}

select[multiple] option {
    padding: 5px;
    white-space: normal;
}

.checkbox-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 10px;
}

.contador {
    font-size: 39px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    color: #07f7c8;
    padding: 10px;
    background-color: #1f544a;
    border-radius: 5px;
}

.contador span {
    display: inline-block;
    min-width: 40px;
}

.error-container {
    text-align: center;
    padding: 50px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.error-container h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 20px;
}

.error-image {
    max-width: 300px;
    margin-bottom: 30px;
}

.error-container p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.error-container .btn {
    font-size: 1.1rem;
    padding: 10px 20px;
}

.programa-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.programa-titulo {
    text-align: center;
    color: #1f544a;
    margin-bottom: 30px;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 51%;
    width: 2px;
    background-color: #1f544a;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    width: 100%;
}

.timeline-content {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    width: calc(50% - 30px);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: #07f7c8;
    border: 4px solid #1f544a;
    border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -13%;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -40px;
}

.timeline-title {
    color: #1f544a;
    margin-top: 0;
    margin-bottom: 5px;
}

.timeline-time {
    color: #07f7c8;
    margin-top: 0;
    margin-bottom: 10px;
}

.timeline-description {
    color: #1f544a;
    margin: 0;
}

@media (max-width: 767px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 100px);
        margin-left: 60px !important;
    }

    .timeline-content::before {
        left: -7.5% !important;
    }
}

.seccion-title {
    color: #1f544a;
    margin-top: 0;
    margin-bottom: 5px;
}

.seccion-time {
    color: #07f7c8;
    margin-top: 0;
    margin-bottom: 10px;
}

.seccion-content {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    width: calc(100% - 60px);
    position: relative;
}

.imagen-bienvenida {
    width: 100%;
    max-width: 600px; /* Debe coincidir con el max-width del contador */
    height: auto;
    display: block;
    margin: 20px auto; /* Añade un margen arriba y abajo, y centra horizontalmente */
}


@media (max-width: 600px) {
    .contador,
    .imagen-bienvenida {
        max-width: 100%;
    }
}

/* Estilos para la sección de taller de niños */
.taller-ninos {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.taller-ninos h2 {
    color: #1f544a; 
    border-bottom: 2px solid #07f7c8;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.grupo-edad {
    margin-top: 1.5rem;
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.grupo-edad h3 {
    color: #07f7c8;
    margin-bottom: 0.5rem;
}

.grupo-edad h4 {
    color: #000000;
    margin-bottom: 0.5rem;
}

.grupo-edad ol {
    padding-left: 1.5rem;
    color: #333;
}

.grupo-edad ul {
    list-style-type: disc;
    padding-left: 2rem;
    color: #555;
}

.grupo-edad li {
    margin-bottom: 0.5rem;
    text-align: justify;
}

.networking-estructurado-info {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    background-color: #718888;
    font-weight: 600;
    text-align: center;
    margin-bottom: 5px;
}

.networking-estructurado-field {
	color: #07f7c8;
}

.networking-estructurado-content {
	color: #ffffff;
}

.footer {
    width: 100%;
    background-color: #000000;
    margin-bottom: 0;
    padding: 20px 0; /* Cambiado para eliminar el padding horizontal */
    font-size: 14px;
    line-height: 1.5;
}

.footer-content,
.footer-description {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 5px 0;
    color: #ffffff; /* Cambiado a blanco */
}

.footer-contacts {
    gap: 15px;
    margin-top: 10px;
    font-size: 14px;
    flex-wrap: wrap;
    display: flex;
    justify-content: space-evenly;
}

.footer-contacts a {
    color: #ffffff;
    font-size: 1.2em; /* Aumentado el tamaño del texto */
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-contacts a i {
    margin-right: 5px;
    font-size: 1.5em; /* Aumentado el tamaño de los iconos */
}

.footer-contacts a:hover {
    color: #07f7c8; /* Cambiado para mejor contraste al hacer hover */
}

.footer-description {
    margin-top: 20px;
    text-align: justify;
}

.footer-description p {
    margin-bottom: 10px;
    color: #07f7c8; /* Color por defecto para los párrafos de la descripción */
}

.footer-last-line {
    color: #ffffff !important; /* Forzar color blanco para la última línea */
    text-align: center;
}

.footer a {
    color: #ffffff; /* Cambiado a blanco */
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    color: #07f7c8; /* Cambiado para mejor contraste al hacer hover */
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-contacts {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .footer {
        font-size: 12px;
    }

    .footer-contacts a {
        font-size: 1.1em; /* Ajustado para pantallas pequeñas */
    }

    .footer-contacts a i {
        font-size: 1.3em; /* Ajustado para pantallas pequeñas */
    }
}

.div-download-program {
    margin-bottom: 20px;
}
.btn-outline-primary {
    border-color: #07f7c8;
    color: #07f7c8;
    font-size: 1.35em;
    transition: all 0.3s ease;
}
.btn-outline-primary:hover {
    background-color: #07f7c8;
    color: white;
}
.btn-outline-primary i {
    margin-right: 8px;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.alimentacion {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.alimentacion h2 {
    color: #1f544a;
    border-bottom: 2px solid #07f7c8;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.alimentacion p {
    margin-bottom: 0.5rem;
    text-align: justify;
}

.alimentacion strong {
    color: #07f7c8;
}

.imagen-patrocinio-container {
    width: 95%;
    max-width: 768px;
    margin: 0 auto;
}

.imagen-patrocinio {
    width: 100%;
    height: auto;
    display: block;
}

.actividad-sector, .actividades-adicionales {
    max-width: 220px;
}

.residuo h5 {
    text-align: center;
}

.residuo p {
    border-bottom: 2px solid #07f7c8;
    padding-bottom: 0.1rem;
    margin-bottom: 1.5rem;
}

.actividad-linea-negocio label {
    text-decoration: underline;
}

.actividad-linea-negocio {
    border-top: 2px solid #1f544a;
    padding-bottom: 0.1rem;
    margin-bottom: 1.5rem;
}

.anuncio_fecha {
    color: #07f7c8;
}

.descripcion-detallada.open .dropdown-arrow::after {
    transform: rotate(180deg); /* Gira la flecha cuando el menú está abierto */
}

.descripcion-detallada.open {
    color: #07f7c8;
    background-color: #5a6e6e;
}

.descripcion-detallada:hover {
    color: #07f7c8;
    background-color: #5a6e6e;
}

/* Cambiar todos los colores que estén mal por: color: #07f7c8;
    color: #07f7ca; // Mal
    color: #4ecdc4; // Mal
*/

.residuos-tabla {
   min-width: 350px; 
}

.residuos-tabla th, td {
    padding: 0;
    text-align: center;
}

.agregar-residuo {
    margin-top: 10px;
}

.eliminar-residuo {
    border-radius: var(--border-radius);
    border: 1px solid #ccc;
    background-color: #f0f0f0;
}

/* .residuo-tipo-select {
    width: 100%;
    height: 100%;
    white-space: normal;
    word-wrap: break-word;
    border: none;
    background: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 5px 25px 5px 5px;  Aumentamos el padding derecho a 25px 
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 5px center; Cambiamos a 'center' para centrar verticalmente 
}*/

/* Ocultar la flecha nativa en IE 10 y 11
.residuo-tipo-select::-ms-expand {
    display: none;
} */

/* Estilo para cuando el select está enfocado
.residuo-tipo-select:focus {
    box-shadow: 0 0 3px 1px rgba(0,0,0,0.2);
} */

.residuos-tabla td {
    vertical-align: top;
    position: relative; /* Necesario para posicionar la flecha correctamente */
}

.select-wrapper {
    position: relative;
}

.residuo-tipo-select {
    white-space: normal;
    word-wrap: break-word;
    border: 1px solid #ccc;
    background: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 5px 10px 5px 5px;
}

.select-arrow {
    position: absolute;
    right: 0px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    pointer-events: none;
}

.residuos-tabla td {
    vertical-align: top;
    padding: 0;
}

/* Estilo para cuando el select está enfocado */
.residuo-tipo-select:focus {
    outline: none;
    box-shadow: 0 0 3px 1px rgba(0,0,0,0.2);
}

.descripcion-container {
    position: relative;
}

.textarea-wrapper {
    position: relative;
}

.residuo-descripcion {
    width: 85%;
    min-height: 66px;
    resize: none;
    transition: height 0.3s ease;
    border-radius: var(--border-radius);
}

.textarea-toggle {
    position: absolute;
    bottom: -20px;
    left: 5px;
    width: 85%;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-top: none;
    padding: 2px 5px;
    cursor: pointer;
    font-size: 12px;
    text-align: center;
    border-radius: var(--border-radius);
}

.textarea-toggle.collapsed {
    transform: rotate(180deg);
}

.residuos-tabla tr {
    transition: height 0.3s ease;
}

.actividad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eliminar-actividad {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
}

.form-group-inline {
    display: flex;
    align-items: center;
}

.form-group-inline label {
    min-width: 125px; /* Ajusta este valor según sea necesario */
    text-wrap: balance;
}

.form-group label {
    display: inline-block;
    margin-bottom: 5px;
}

.centered-content {
    text-align: center;
    margin-top: 10px;
}

.formulario-lto {
    position: relative;
    width: 100%;
    margin: 20px 0;
    background: #fff;
    left: 0;  /* Asegura que no haya desplazamiento */
    box-sizing: border-box;
}

.formulario-lto form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.lto-section, .registro-container {
    background-color: var(--card-background);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 350px; /* Ancho fijo de 350 píxeles */
    margin: 0 auto; /* Centrado horizontal */
}
/* ----------------------------------------------- */
/* ----------------------------------------------- */
/* Modificaciones de Ana Karla para entidad_detail */
/* ----------------------------------------------- */
/* ----------------------------------------------- */

.resources-section {
    margin-top: 2rem;
    padding: 1rem;
}

.resource-category {
    margin-bottom: 2rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.resource-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.resource-header h4 {
    margin: 0;
    color: #495057;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge.offer {
    background-color: #d4edda;
    color: #155724;
}

.badge.search {
    background-color: #cce5ff;
    color: #004085;
}

.resource-details {
    font-size: 0.9rem;
}

.resource-details p {
    margin: 0.5rem 0;
}

.resource-details strong {
    color: #495057;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Estilos para la sección de actividades */
.section {
    margin-top: 2rem;
    padding: 1rem;
}

.actividad-item {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.actividad-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.actividad-details {
    padding-left: 1rem;
}

.detail-group {
    margin-bottom: 1rem;
}

.detail-group strong {
    color: #34495e;
    display: block;
    margin-bottom: 0.5rem;
}

.detail-group p {
    margin: 0;
    color: #555;
}

.residuos-list {
    list-style-type: none;
    padding-left: 0;
}

.residuos-list li {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: #fff;
    border-radius: 4px;
}

/* ----------------------------------------------- */
/* ----------------------------------------------- */
/* Modificaciones de Ana Karla para entidad_pendiente */
/* ----------------------------------------------- */
/* ----------------------------------------------- */

/* Estilos para la sección de actividades */
.activities-section {
    margin-top: 2rem;
    padding: 1rem;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.activity-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.activity-header h4 {
    margin: 0;
    color: #495057;
}

.badge.activity {
    background-color: #fff3cd;
    color: #856404;
}

.activity-details {
    font-size: 0.9rem;
}

.activity-details h5 {
    color: #495057;
    margin: 0.5rem 0;
}

.waste-list {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0;
}

.waste-list li {
    padding: 0.25rem 0;
    color: #6c757d;
}

/* Otros Estilos */

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 20px 0;
    overflow: hidden;
}

.card-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.status-banner {
    background: #fff3cd;
    color: #856404;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.status-icon {
    font-size: 1.2em;
}

.card-body {
    padding: 24px;
}

.entity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.entity-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.entity-logo {
    max-width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-section {
    margin-bottom: 32px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.info-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item i {
    font-size: 1.5em;
    color: #6c757d;
}

.info-content {
    flex: 1;
}

.info-content label {
    display: block;
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 4px;
}

.description-section {
    margin-top: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.representatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.representative-card {
    padding: 16px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: transform 0.2s;
}

.representative-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.representative-card.unapproved {
    border-color: #ffc107;
    background: #fff8e1;
}

.representative-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.role-badge {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-top: 8px;
}

.status-badge.warning {
    background: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background: #f8d7da;
    color: #721c24;
}

.empty-state {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

.empty-state i {
    font-size: 3em;
    margin-bottom: 16px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.processing-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.text-muted {
    color: #6c757d;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --------------------Pregunta sobre eventos_previos---------------------- */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.checkbox-container input[type="checkbox"] {
    margin: 0;
    width: auto;
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Estilos para las tablas responsivas
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
} */

/* Estilos base para las tablas */
.listado-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px; /* Tamaño base de fuente */
    table-layout: fixed;
}

.listado-table th,
.listado-table td {
    padding: 8px;
    border: 1px solid #ddd;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Media queries para ajustar el tamaño de fuente */
@media screen and (max-width: 1200px) {
    .listado-table {
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    .listado-table {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .listado-table {
        font-size: 11px;
    }
    
    .listado-table th,
    .listado-table td {
        padding: 4px;
    }
}

/* Definir anchos relativos para las columnas */
.listado-table th:nth-child(1),
.listado-table td:nth-child(1) {
    width: 15%;
}

.listado-table th:nth-child(2),
.listado-table td:nth-child(2) {
    width: 25%;
}

.listado-table th:nth-child(3),
.listado-table td:nth-child(3) {
    width: 35%;
}

.listado-table th:nth-child(4),
.listado-table td:nth-child(4) {
    width: 25%;
}


/* Reset de estilos Bootstrap para el carrusel */
.carousel-custom {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.carousel-custom .carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.carousel-custom .carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    height: 400px;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform .6s ease-in-out;
}
.carousel-custom .carousel-item.active {
    display: block;
}
.carousel-custom .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.carousel-custom .carousel-control-prev,
.carousel-custom .carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 5%;
    opacity: 0.8;
    background-color: rgba(0,0,0,0.3);
    border: none;
    cursor: pointer;
}
.carousel-custom .carousel-control-prev { left: 0; }
.carousel-custom .carousel-control-next { right: 0; }
.carousel-custom .carousel-control-prev:hover,
.carousel-custom .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0,0,0,0.5);
}
.carousel-custom .carousel-indicators {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0 0 0.5rem 0;
    list-style: none;
}
.carousel-custom .carousel-indicators button {
    background-color: rgba(255,255,255,0.5);
    border: none;
    height: 3px;
    width: 30px;
    margin: 0 4px;
    cursor: pointer;
}
.carousel-custom .carousel-indicators button.active {
    background-color: white;
}
.carousel-custom .carousel-control-prev-icon,
.carousel-custom .carousel-control-next-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 100% 100%;
}
.carousel-custom .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}
.carousel-custom .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}