﻿:root {
    /* Colores principales basados en el logo de San Cristóbal */
    --primary-color: #4A90E2 !important; /* Azul del círculo del logo */
    --primary-hover: #7ED321 !important; /* Azul más claro para hover */
    --primary-active: #3A80D2 !important; /* Azul más oscuro para active */
    --secondary-color: #050505 !important; /* Naranja/rojo del gradiente superior */
    --secondary-hover: #fa0202 !important; /* Naranja más claro para hover */
    --accent-color: #7ED321; /* Verde del gradiente inferior */

    --primary-rojo: rgb(248, 22, 6);
    --boton-descarga: rgba(1, 90, 255, 0.808);
    --text-color: rgb(88, 88, 88);
    --background-color: #f9f9f9;
    --border-color: #ccc;
    --texto-menu: black;
    --texto-hover: white;
}


/* Estilos generales */
body {
    margin: 10;
    font-family: Arial, sans-serif;
}

#nav {
    background-color: var(--background-color);
    padding: 20px;
    box-sizing: border-box;
}

#menu-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.menu-item {
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-item:hover {
    background-color: var(--primary-hover);
    color: var(--texto-hover);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.menu-item.active {
    background-color: var(--primary-color);
    color: var(--texto-hover);
}
/*
.menu-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}*/

.menu-text {
    font-size: 16px;
    font-weight: bold;
}

.menu-item.selected {
    background-color: var(--primary-color);
    color: var(--texto-hover);
}

/* New styles for the "Show All" button */
.show-all-button {
    grid-column: 1 ;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    margin-top: 0px;
}

.show-all-button:hover {
    background-color: var(--primary-hover);
}

/* Style for when only one button is visible */
#menu-container:has(.menu-item:only-of-type) {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#menu-container:has(.menu-item:only-of-type) .menu-item {
    width: 100%;
    max-width: 200px;
}

iframe {
    width: 100%;
    height: calc(100vh - 100px); /* Ajusta el iframe para ocupar el espacio restante */
    border: none;
}
#menu-container2 {
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* Alinea los elementos a la izquierda */
}

iframe2 {
    width: 100%;
    height: calc(100vh - 100px); /* Ajusta el iframe para ocupar el espacio restante */
    border: none;
}

/* Títulos */
h1#titulo2 {
    margin: 0; /* Elimina el margen superior e inferior del h1 */
    padding: 0; /* Elimina el padding del h1 */
}

h2, h3 {
    margin-top: 2px;
    margin-bottom: 2px;
}
#titulo1, #titulo2 {
    color: #333;
    text-shadow: 2px 2px 4px rgb(141, 140, 140);
}
#titulo2 {
    width: 100%;
    padding: 0px 0px;
    border: 2px solid var(--primary-color);
    display: inline-block;
}

/* Estilo para la etiqueta */
.form-label {
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

/* Estilo para el campo de fecha */
.date-input {
    font-family: Arial, sans-serif;
    font-size: 16px;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background-color: var(--background-color);
    color: #333;
    transition: border-color 0.3s ease-in-out;
    width: 100%;
    max-width: 130px;
    box-sizing: border-box;
}

/* Cambia el color del borde cuando el campo de fecha está enfocado */
.date-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Estilo para el botón */
.material-button {
    font-family: Arial, sans-serif;
    font-size: 16px;
    /*color: var(--primary-color);*/
    color: black;
    background-color: var(--primary-hover);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    margin-top: 10px;
    margin-right: 10px;
    text-decoration: none;
}

/* Cambia el color de fondo cuando se pasa el mouse sobre el botón */
.material-button:hover {
    background-color: var(--primary-active);
}

.material-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Iframe */
/*#content-iframe, iframe {
    width: 100%;
    border: none;
}
#content-iframe {
    height: 80vh;
}
iframe {
    height: 100vh;
    margin-top: 10px;
}
*/
/* Menú */

/* Layout */
.row {
    display: flex;
    border-bottom: 1px solid #ccc;
}
.column {
    flex: 1;
    padding: 10px;
    box-sizing: border-box;
}

/* Contenedor de mensajes */
.message-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease-out;
}

/* Mensaje de éxito */
.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-left: 5px solid #28a745;
}

/* Mensaje de error */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-left: 5px solid #dc3545;
}

/* Icono para los mensajes */
.message-container::before {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
}

.success-message::before {
    color: #28a745;
}

.error-message::before {
    color: #dc3545;
}

/* Animación de entrada */
@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.continue-button {
    display: inline-block;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: var(--primary-hover);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.continue-button:hover {
    background-color: var(--primary-active);
}

.continue2-button {
    display: inline-block;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: var(--primary-rojo);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.continue2-button:hover {
    background-color: var(--primary-active);
}


.descarga-button {
    display: inline-block;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: var(--boton-descarga);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.descarga-button:hover {
    background-color: var(--primary-active);
}

.pagar-button {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background-color: var(--primary-hover);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.pagar-button:hover {
    background-color: var(--primary-active);
}

/* Estilos para tablas */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    max-width: 100%; /* Agregado */
}
.custom-table .table-row {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    font-family: 'Arial Narrow', Arial, 'Franklin Gothic Medium', sans-serif;
    border-bottom: 1px solid #ddd;
}
.custom-table .table-cell {
    flex: 1 1 0;
    padding: 4px;
    text-align: left;
    width: auto; /* Agregado */
}
.custom-table .table-cell.referencia {
    flex: 3 1 0;
     /* Agregado width: 20%; */
}
.custom-table .header .table-cell {
    font-weight: bold;
    background-color: #f2f2f2;
}
.custom-table .header2 .table-cell {
    font-weight: bold;
    background-color: #f2f2f2;
}

.custom-table .table-cell.dos {
    text-align: right;
}
.custom-table .table-cell.tres {
    text-align: center;
}
.custom-table .table-cell.centro {
    text-align: center;
    font-weight: bold;
    background-color: var(--primary-color);
}
.fondo-titulo {
    background-color: var(--primary-color); /* Elige el color que prefieras */
}
.cantidad-input {
    text-align: right;
}
.custom-table .mobile-title {
    display: none;
}
.hidden-row {
    display: none !important;
}

/* Estilos para formularios */
.form-section {
    margin-bottom: 20px;
    display: flex;
}
.form-column {
    flex: 1;
    padding: 10px;
}
.form-column label {
    display: block;
    margin-bottom: 5px;
}
.form-column input[type="number"] {
    width: 100px;
    padding: 5px;
    box-sizing: border-box;
}

/*Estilo del encabezado - logo y nombre */
.header-container {
    display: flex;
    align-items: center;
    justify-content: start; /* Alinea el logo y el nombre hacia la izquierda */
    padding: 2px;
}

.logo-column img {
    max-width: 100px; /* Tamaño máximo del logo */
    height: auto;
}

.name-column {
    font-size: 36px;
    font-weight: bold;
    text-align: left; /* Alinea el texto a la izquierda */
    margin-left: 10px; /* Espacio entre el logo y el nombre */
}

#selectTributo {
    width: 100%;
    padding: 10px;
    font-size: 18px;
    background-color: yellow;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#selectTributo:hover {
    background-color: #FFD700; /* Un amarillo más intenso al pasar el cursor */
    transform: scale(1.02); /* Un pequeño zoom al pasar el cursor */
}

.custom-table input {
    width: 100%; /* Hace que los inputs ocupen todo el ancho disponible */
    padding: 8px; /* Añade un padding cómodo */
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho */
    font-size: 14px; /* Ajusta el tamaño de la fuente */
    border: 1px solid #ccc; /* Bordes para inputs */
    border-radius: 5px; /* Bordes redondeados */
}
.custom-table input.fecha {
    width: 120px; 
    padding: 8px; /* Añade un padding cómodo */
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho */
    font-size: 14px; /* Ajusta el tamaño de la fuente */
    border: 1px solid #ccc; /* Bordes para inputs */
    border-radius: 5px; /* Bordes redondeados */
}
.custom-table input.campo1 {
    width: 120px; 
    padding: 8px; /* Añade un padding cómodo */
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho */
    font-size: 14px; /* Ajusta el tamaño de la fuente */
    border: 1px solid #ccc; /* Bordes para inputs */
    border-radius: 5px; /* Bordes redondeados */
}

.contrasena {
    width: 100%; 
    padding: 8px; /* Añade un padding cómodo */
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho */
    font-size: 14px; /* Ajusta el tamaño de la fuente */
    border: 1px solid #ccc; /* Bordes para inputs */
    border-radius: 5px; /* Bordes redondeados */
}

/* Estilo del selector */
select {
    width: 200px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
}

/* Cambio de borde en foco */
select:focus {
    border-color: var(--primary-hover);
    outline: none;
}

/* Estilo para la superposición de carga */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: none; /* Oculto por defecto */
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Estilos para el modal de "Procesando" */
.loading-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
}

#loadingModal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

#loadingModal .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.customNavContainer2024 {
    width: 100%;
    margin: 0 auto;
}

.customMenuToggle2024 {
    display: none;
    padding: 12px 15px;
    background: var(--primary-active);
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    margin-bottom: 10px;
}

.customMenuList2024 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}

.customMenuItem2024 {
    background: var(--primary-color);
    padding: 12px 15px;
    border-radius: 4px;
    color: rgb(255, 255, 255);
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 1 auto;
}

.customMenuItem2024:hover {
    background: var(--primary-hover);
    color: var(--secondary-color);
}

.customMenuItemActive2024 {
    background: var(--primary-hover);
    color: var(--secondary-color);
}

/* Personalización del encabezado de la tarjeta */
.bg-gradient-green {
    background: linear-gradient(45deg, var(--primary-color),var(--primary-hover)) !important;
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
    border-bottom: none;
    padding: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.bg-gradient-green {
    background: linear-gradient(45deg, var(--primary-color),var(--primary-hover)) !important;
}

/*----------------*/
.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
}
.btn-primary {
    color: #fff;
    background-color:var(--primary-color);
    border-color: var(--primary-hover);
}
.btn-primary:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

/*-------------------- pantallas pequeñas --------------------------------*/
@media (max-width: 768px) {
    .customMenuToggle2024 {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .customMenuList2024 {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .customMenuList2024.customMenuShow2024 {
        display: flex;
    }

    .customMenuItem2024 {
        width: 100%;
        margin: 0;
    }

    .currentSelection2024 {
        background: var(--primary-active);
        color: white;
        padding: 12px 15px;
        border-radius: 4px;
        margin-top: 10px;
        display: none;
    }

    .currentSelection2024.show {
        display: block;
    }
   
    #menu-container {
        grid-template-columns: repeat(2, 1fr);
    }

    #nav a {
        float: none;
        width: 100%;
    }
    .menu {
        position: relative;
    }
    .menu a {
        display: none;
        width: 100%;
    }
    .menu.active a {
        display: block;
    }
    .menu-toggle {
        display: block;
        background-color: #333;
        color: white;
        text-align: center;
        padding: 14px 20px;
        cursor: pointer;
    }
    .menu-toggle:after {
        content: '\25BC';
    }
    .menu.active .menu-toggle:after {
        content: '\25B2';
    }
    .column:last-child {
        border-bottom: none;
    }

    .custom-table .table-row,
    .custom-table .table-cell {
        display: block;
        width: 100%;
    }

    .custom-table .table-row:not(.hidden-row) {
        display: block;
    }
    
    .custom-table .table-cell {
        width: 100%;
        box-sizing: border-box;
        position: relative;
        padding-left: 110px;
    }

    .custom-table .header .table-cell {
        display: none;
    }
    
    .custom-table .header2 .table-cell {
        display: block;
        width: 100%; /* Hace que ocupe el ancho completo */
        text-align: center; /* Alinea el contenido al centro */
        box-sizing: border-box; /* Evita que el padding afecte el tamaño */
        padding-left: 10px;
    }

    /* Aseguramos que todo ocupe el ancho completo */
    .custom-table .table-row.header2 {
        display: block;
        width: 100%; /* Forzamos que la fila también ocupe el ancho completo */
    }

    .custom-table .mobile-title {
        display: inline-block;
        position: absolute;
        left: 10px;
        width: 100px;
        font-weight: bold;
        text-align: left;
    }
    .custom-table .table-cell.dos {
        text-align: left !important;
    }
    .custom-table .table-cell.tres {
        text-align: left !important;
    }
    .custom-table .table-cell.centro2 {
        text-align: center !important;
    }

    .custom-table input {
        width: 100%; /* En pantallas pequeñas, siempre ocupa el 100% */
        font-size: 14px; /* Un tamaño de fuente más pequeño para móviles */
    }    

    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .logo-column img {
        max-width: 80px;
    }

    .name-column {
        font-size: 20px;
        text-align: center; /* Centrar el texto cuando la columna es vertical */
        margin-left: 0;
    }
    #selectTributo {
        font-size: 16px;
        padding: 8px;
    }
    .custom-table input.fecha {
        width: 100%; 
    }
    .custom-table input.campo1 {
        width: 100%; 
    }
    select {
        width: 100%;
        font-size: 14px;
        padding: 8px;
    }
    .modal {
        width: 95vw;
        top: 5vh; /* Ajuste superior menor en pantallas pequeñas */
    }

    .message-container {
        margin: 1rem;
        padding: 1rem;
    }

    .material-button {
        display: block;
        width: 100%;
    }

}
