html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 6px;
    /*font-family: 'Roboto', sans-serif !important;*/
}

.hero-section {
    background-image: url('/img/1820a0b6-2d4e-4aaa-9f30-998c0430e5b0.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 75vh;
    transition: filter 0.3s ease;
}

.magazine-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.magazine-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.magazine-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.magazine-card {
    display: flex;
    flex-direction: column;
    /*justify-content: space-between;*/
    background-color: #fff;
    /*border-radius: 0.5rem;*/
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    height: 100%;
}

    .magazine-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

.magazine-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
/*    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;*/
}

.magazine-card-body {
    padding: 1rem;
}

.magazine-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.magazine-card-date {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.magazine-card-summary {
    font-size: 1rem;
    color: #333;
}
.magazine-card-link {
    text-decoration: none;
    color: inherit;
    /*display: flex;*/ /* hace que cada enlace crezca */
    height: 100%; /* fuerza que ocupe todo el espacio disponible */
}

/*el teniente quiere #1830a6 de color */

/*Modificaciones 09/06/25*/
:root {
    /*Definimos variables*/
    /*--main-blue: #478BDF;*/ /*color original COAMAS*/
    --main-blue: #052240; /*Nuevo azul*/
    --main-blue-tr: #052240d4; /*Nuevo azul con transparencias*/
    --main-white: #f8f9fa;
}

body {
    padding-top: 70px;
    background-color: var(--main-white);
}

.navbar {
    background-color: var(--main-blue);
}

.navbar-brand, .nav-link {
    color: white !important;
}

.carousel-caption {
    background: var(--main-blue-tr);
    padding: 1rem;
    border-radius: 10px;
}

.carousel-item img {
    height: 600px; /*VER*/
    object-fit: cover;
    width: 100%;
}

.card-square {
    aspect-ratio: 1 / 1;
}

.card-horizontal {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

    .card-horizontal img {
        width: 40%;
        height: 150px;
        object-fit: cover;
    }

    .card-horizontal .card-body {
        width: 60%;
    }

.card-horizontal-link {
    color:inherit;
}

/*.card-horizontal-link:hover {
    color: inherit;
}*/

footer {
    background-color: var(--main-blue);
    color: white;
    padding: 1rem 0 0.5rem 0;
    text-align: center;
}

    footer a {
        color: #d1e7ff;
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }

.footer-img {
    /*filter: grayscale(100%) brightness(80%) contrast(120%);*/
    max-width: 50px;
    opacity: 0.6;
}

.footer-img:hover {
    filter: none;
    opacity: 1;
}

.navbar-nav .nav-link {
    transition: text-shadow 0.3s ease;
}

.nav-link:focus, .nav-link:hover, .nav-link:active {
    text-shadow: 1px 0 0 #FFF;
}

.nav-item.active .nav-link {
    text-shadow: 1px 0 0 #FFF;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 108px;
}

.content {
    flex: 1;
}

/* Menu */
.navbar-toggler i {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
}

#navbar {
    transition: top 0.3s ease;
    transition: background-color 0.3s ease;
    z-index: 1040;
    top: 25px;
}

.top-message {
    border-bottom: 1px solid #4c5661;
    background-color: var(--main-blue);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    transition: transform 0.3s ease;
}

.bottom-message {
    border-top: 1px solid #4c5661;
    background-color: var(--main-blue);
}

.autoridad-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.autoridad-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}

    .autoridad-card:hover {
        transform: scale(1.02);
    }

.autoridad-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.autoridad-body {
    padding: 1rem;
}

.autoridad-nombre {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #052240;
}

.autoridad-cargo {
    font-size: 0.95rem;
    color: #333;
}

.page-item {
    cursor: pointer;
    user-select: none; /*Saco la posibilidad de que sea seleccionable el boton para evitar bug visual*/
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}

#editor {
    min-height: 100px; /* Alto mínimo */
    max-width: 100%; /* Que no se salga del contenedor */
    font-size: 1rem; /* Tamaño de fuente estándar */
}

.btn-rounded {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
    width: 38px;
    height: 38px;
}

@media (min-width: 768px) {
    .card-horizontal img {
        width: 30% !important;
    }

    .card-horizontal .card-body {
        width: 70% !important;
    }

    .magazine-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .autoridad-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-img {
        max-width: 70px;
    }
}

@media (min-width: 992px) {
    .card-horizontal img {
        width: 20% !important;
    }

    .card-horizontal .card-body {
        width: 80% !important;
    }

    .magazine-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .autoridad-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}




/* Estilos específicos para los botones dentro de la sección CAMAS */
#coamasTabs .camas-link {
    background-color: white !important; /* Fondo azul oscuro */
    color: black !important; /* El texto sigue siendo blanco */
    border: none; /* Quitamos el borde si lo hay */
}

    #coamasTabs .camas-link.active {
        background-color: white !important; /* Fondo azul más oscuro para el enlace activo */
    }


#coamasTabs .camas-link {
    border-radius: 5px; /* Bordes redondeados */
}

.camas {
    color: white !important; /* Forzamos que el color sea blanco */
    background-color: #0d6efd;
    text-align: center;
}
.camassub {
    color: black !important; /* Forzamos que el color sea negro */
}

/* agregados a la noticia */
.image-container-edit {
    position: relative;
    width: 200px;
    height: 120px;
    overflow: hidden;
}

    .image-container-edit img {
        width: 200px;
        height: 120px;
        object-fit: cover;
        object-position: center;
        cursor: pointer;
    }

.close-icon-edit {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #f00;
    font-size: 16px;
    cursor: pointer;
    background-color: white;
    border-radius: 50%;
}

#dropZone {
    cursor: pointer;
    border: 1px dashed green;
}

.main-blue-color {
    color: var(--main-blue);
}

/* Estilos para la galería de ver una noticia */
.gallery-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: 1rem 0;
}

    .gallery-container::-webkit-scrollbar {
        height: 8px;
    }

    .gallery-container::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.2);
        border-radius: 4px;
    }

.gallery-image {
    max-height: 200px;
    margin-right: 1rem;
    cursor: pointer;
    transition: transform .2s;
    object-fit: cover;
}

    .gallery-image:hover {
        transform: scale(1.05);
    }

.modal-header {
    border: none !important;
}

/* Contenedor circular */
.swal-warning-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border: 0.25rem solid #facea8;
    border-radius: 50%;
    color: #f8bb86;
    font-size: 3rem;
    font-weight: bold;
    animation: swal-scale-in 0.3s ease-out;
}

/* Animación tipo SweetAlert2 */
@keyframes swal-scale-in {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    80% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}
