@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

/*body {
    font-family: "Roboto Condensed", sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}*/

body {
    font-family: "Roboto Condensed", sans-serif;
    /*background-color: #fff;*/
    background-image: url('../img/bg-san-nicolas.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    background-color: rgba(78, 38, 2, 0.9);
    /*background-color: #4e2602;*/
    z-index: -1;
}

/* Logo Municipalidad */

.logo-header {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-header:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .header-content {
        justify-content: center;
    }
}

h1,h2 {
    color: #666;
}

.contenido {
    color:#666;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1em;
    text-align: justify;
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 50px;
}

.contenido-centro {
    color:#666;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1em;
    text-align: center;
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 50px;
}

.escudo {
    padding-left: 50px;
    padding-right: 50px;
    font-size: 1.1em;
}

/* Enlaces de Transparencia */
.link-item {
    text-align: left;
    font-size: 0.75em;
    color: #ec0000;
    text-decoration: none;
    line-height: 1.2;
    transition: opacity 0.3s;
}

.link-item:hover {
    opacity: 0.7;
}

.link-item strong {
    display: block;
    font-size: 1.1em;
    text-transform: uppercase;
}

/* Redes Sociales */
.social-icons {
    display: flex;
    gap: 10px;
}

.icon-circle {
    width: 30px;
    height: 30px;
    border: 2px solid #ec0000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ec0000;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.icon-circle:hover {
    background-color: #ec0000;
    color: white;
}

.enlace {
    text-decoration: none;
    color: #ec0000;
}

.volver {
    text-decoration: none;
    color: #007bff;
}

.centro {
    text-align: center;
}

.divisor{
    margin: 40px 0;
    border: 0;
    border-top: 1px solid #eee;
}

/* Contenedor Principal */
.main-content {
    /*margin-top: 140px;*/
    margin-top: 150px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 450px;
    width: 90%;
    text-align: center;
    margin-bottom: 40px;
}

.main-index {
    margin-top: 150px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 100%;
    width: 90%;
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    max-width: 200px;
    margin-bottom: 30px;
    height: auto;
}

/* Botón de Pago */
.btn-pago {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 18px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.2s;
    margin-bottom: 20px;
}

.btn-pago:hover {
    transform: scale(1.03);
    background-color: #0056b3;
}

/* Mensaje de Renovación */
.mensaje-renovacion {
    margin-top: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 5px solid #ec0000;
    color: #555;
    font-style: italic;
    font-size: 0.95em;
    margin-bottom: 20px;
}

/* Contacto Footer */
.contacto-footer {
    font-size: 0.9em;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Imagen Banners */

.banner-adaptable {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
    transition: all 0.3s ease;
}

.banner-adaptable:hover {
    transform: translateY(-5px); 
    box-shadow: 0 12px 20px rgba(0,0,0,0.2); 
    filter: brightness(1.05);
}

.header-adaptable {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 10px 10px 0 0;
}

/* Para videos concejos */
.main-content-wide {
    margin-top: 160px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 1100px;
    width: 95%;
    text-align: center;
    margin-bottom: 40px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.video-card {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}

.video-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border-radius: 5px;
}

/* Organigrama */

.cab-org {
    padding-bottom: 20px;
    text-align: center;
}

#chart-container {
    width: 100%;
    height: 800px;
    background-color: white;
    border: 1px solid #d1d1d1;
    border-radius: 12px;
}

.node-foreign-object-div {
    background-color: #ffffff !important;
    border: 2px solid #3498db !important;
    border-radius: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important; 
    overflow: visible !important;
}

.node-name {
    color: #2C3E50 !important;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
    margin-top: 50px;
    padding: 0 10px;
}

.button-group {
    transition: transform 0.2s;
}

.button-group:hover circle {
    fill: #3498db !important;
    stroke: #2980b9 !important;
}

.button-group:hover text {
    fill: #ffffff !important;
}

.node-foreign-object {
    overflow: visible !important;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(3px);
}

/* modal organigrama */
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease;
}

#modalDesc {
    width: 100%;
    text-align: justify;
    margin-top: 15px;
    padding: 0 10px;
    box-sizing: border-box;
}

.contenido-html-externo {
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 12px;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

.modal-content div {
    text-align: left;
}

.modal-content ul {
    text-align: left;
    padding-left: 20px;
    margin-top: 10px;
}

.modal-content li {
    margin-bottom: 8px;
    color: #555;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #95a5a6;
}

.modal-content img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #3498db;
    margin-bottom: 15px;
}

.modal-content h3 { margin: 10px 0; color: #2C3E50; }
.modal-content p { color: #7f8c8d; line-height: 1.6; }

/***************/

/* Contenedor de Gastos */
.gastos-container {
    text-align: left;
    max-width: 600px;
    margin: 20px auto;
}

.anio-titulo {
    color: #ec0000;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.pdf-icon {
    color: #ec0000;
    margin-right: 12px;
}

/* Estilos del Acordeón */
.acordeon-item {
    max-width: 600px;
    margin: 10px auto;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

.acordeon-header {
    width: 100%;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #ec0000;
    transition: background-color 0.3s;
}

.acordeon-header:hover {
    background-color: #f0f0f0;
}

.icon-arrow {
    transition: transform 0.3s ease;
}

/* Control del despliegue */
.acordeon-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #fff;
}

.acordeon-item.active .acordeon-content {
    max-height: 1000px;
    padding: 15px;
}

.acordeon-item.active .icon-arrow {
    transform: rotate(180deg);
}

.lista-descargas {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-descarga {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 5px;
    text-decoration: none;
    color: #444;
    transition: all 0.2s;
}

.item-descarga:hover {
    background-color: #fef1f1;
    border-color: red;
    color: red;
}

/* noticias */

/*.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}*/

.noticia-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s;
}

.noticia-card:hover { transform: translateY(-5px); }

.noticia-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.noticia-card h3 {
    padding: 15px;
    font-size: 1.1em;
    color: #333;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.btn-leer {
    display: block;
    background: red;
    color: white;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
}

/* Agrega noticia */

.form-container {
    margin: 180px auto 40px auto;
    max-width: 900px;
    /*margin: 50px auto;*/
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input[type="text"], .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-group textarea {
    height: 200px;
    font-family: sans-serif;
}

.btn-enviar {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-enviar:hover {
    background-color: #218838;
}

.ck-editor__editable {
    min-height: 350px;
}

/* Listado de noticias */

.img-preview {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: block;
}

.tabla-admin {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 20px;
    background: transparent;
}

.tabla-admin tr {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tabla-admin th {
    background-color: #ec0000;
    color: white;
    padding: 15px;
    text-transform: uppercase;
    font-size: 0.85em;
}

.tabla-admin td {
    padding: 15px;
    border: none;
    vertical-align: middle;
}

.tabla-admin tr td:first-child {
    border-radius: 10px 0 0 10px;
}

.tabla-admin tr td:last-child {
    border-radius: 0 10px 10px 0;
}

.btn-contenedor {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-accion { 
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.btn-editar {
    background: #ffc107;
    color: #000 !important;
}

.btn-borrar {
    background: #dc3545;
}

.btn-accion:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.paginacion {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pag-link {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.pag-link.active {
    background: #ec0000;
    color: white;
    border-color: #ec0000;
}

/* Enlaces de interés */

.enlaces-grid {
    display: grid;
    background-color: #f4f7f6;
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px;
    border-radius: 10px;
}

/* Grilla noticias */

.noticias-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
}

.noticia-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.noticia-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.noticia-info {
    padding: 15px;
    flex-grow: 1;
}

.noticia-titulo {
    font-size: 1.1em;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

.noticia-card:hover {
    transform: translateY(-5px);
}

/*.noticia-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}*/

.noticia-card-body {
    padding: 15px;
}

.noticia-card-title {
    font-weight: bold;
    font-size: 1.1em;
     color: #cc0000;
     margin-bottom: 10px;
     display: block;
     text-decoration: none;
}

.noticia-card-date {
    font-size: 0.85em;
    color: #666;
}

.btn-noticia {
    width: auto;
    background: #28a745;
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1em;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

@media (max-width: 992px) {
    .noticias-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }
}

@media (max-width: 600px) {
    .noticias-grid {
        grid-template-columns: 1fr; /* 1 columna en celulares (vertical) */
    }
}

/* Login */

.login-box {
    max-width: 350px;
    margin: 180px auto 40px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 90%;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.btn-login {
    width: 100%;
    background-color: red;
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1em;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #cc0000;
}

/* Concejo */

.concejo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
}
.concejal-card {
    background: #fff;
    border-radius: 12px;
    text-align: center;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border-bottom: 4px solid #ec0000;
}
.concejal-card:hover { transform: translateY(-5px); }
.concejal-foto {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 5px solid #f4f4f4;
}
.concejal-nombre {
    color: #ec0000;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.concejal-info {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 5px;
}

.concejal-info i {
    color: #4e2602;
    width: 20px;
}

.btn-concejo {
    width: auto;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1em;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

@media (max-width: 992px) {
    .concejo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .concejo-grid {
        grid-template-columns: 1fr;
    }
}

/* Ordenanzas */

.ordenanza-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ordenanza-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: background 0.3s;
    text-decoration: none;
    color: #444;
}
.ordenanza-row:hover {
    background: #f9f9f9;
    border-color: #ccc;
}
.ordenanza-texto {
    font-size: 0.95em;
    line-height: 1.4;
    padding-right: 15px;
}
.btn-descarga-link {
    background-color: #ec0000;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: background 0.3s;
}
.btn-descarga-link:hover {
    background-color: #cc0000;
    color: white;
}

/* Video BG */

/* Contenedor principal del video */
.video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

#video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    z-index: -1;
}

/* Estilos para los botones de compartir */
.compartir-redes {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}
.compartir-titulo {
    font-weight: bold;
    color: #4e2602;
    font-size: 0.9em;
    text-transform: uppercase;
}
.btn-share {
    text-decoration: none;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
}
.btn-facebook { 
    background-color: #1877F2;
}
.btn-x {
    background-color: #000000;
}
.btn-whatsapp {
    background-color: #25D366;
}
.btn-share:hover {
    opacity: 0.8; color: white;
}

.container-btn-cargar {
    text-align: center;
    margin: 40px 0;
}
#btn-cargar-mas {
    background-color: #4e2602;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}
#btn-cargar-mas:hover {
    background-color: #ec0000;
}
#btn-cargar-mas:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.paginacion { margin: 30px 0; text-align: center; display: flex; justify-content: center; gap: 5px; }
.paginacion a { 
    padding: 8px 16px; 
    background: #fff; 
    border: 1px solid #ddd; 
    text-decoration: none; 
    color: #4e2602; 
    border-radius: 4px;
}
.paginacion a.active { background: #4e2602; color: #fff; border-color: #4e2602; }
.paginacion a:hover:not(.active) { background: #f4f4f4; }
.img-preview { width: 80px; height: 50px; object-fit: cover; border-radius: 4px; }
.btn-contenedor { display: flex; gap: 10px; }
.btn-accion { padding: 5px 10px; border-radius: 4px; color: white; text-decoration: none; }
.btn-editar { background: #28a745; }
.btn-borrar { background: #dc3545; }