/**
 * Estilos base del Portal Municipal
 */

/* Variables CSS - Paleta Institucional Clásica */
:root {
    --color-primary: #151a24;
    /* Azul Marino - Institucional */
    --color-secondary: #2d6f4d;
    /* Verde Bosque - Sostenibilidad */
    --color-success: #d4a54a;
    /* Dorado - Prestigio */
    --font-family: 'Nunito Sans', sans-serif;
}

/* Sobrescribir colores de Bootstrap para usar variables del proyecto */
.text-primary {
    color: var(--color-primary) ;
}

.bg-primary {
    background-color: var(--color-primary) ;
}

.text-secondary {
    color: var(--color-secondary) ;
}

.bg-secondary {
    background-color: var(--color-secondary) ;
}

.text-success {
    color: var(--color-success) ;
}

.bg-success {
    background-color: var(--color-success) ;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: #152d47;
    /* Azul Marino más oscuro */
    border-color: #152d47;
}

html {
    font-size: 15px;
}

/* Reset básico */
body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Módulos */
.modulos-dinamicos {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modulos-dinamicos section {
    margin-bottom: 1rem;
}

/* Footer */
footer .contact-item {
    display: flex;
    align-items: flex-start;
}

/* ========================================
   SUBTÍTULO DE SECCIÓN (Global)
   ======================================== */

.subtitulo_seccion {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #fff;
    padding: 2rem 0;
    box-shadow: 0 0.7rem 2rem 0.3rem rgba(0, 0, 0, 0.15);
    font-size: 1.3rem;
    text-transform: uppercase;
    line-height: 2rem;
    font-weight: 500;
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
}

main.container.mt-4>section:first-child>.subtitulo_seccion:first-child {
    margin-top: -1.5rem;
}

.subtitulo_seccion .seccion {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.9rem;
    color: var(--color-primary);
    text-align: center;
}

@media (max-width: 992px) {
    .subtitulo_seccion .seccion {
        font-size: 1.4rem;
        text-align: center;
        line-height: 2.2rem;
    }
}

/* ========================================
   BOTÓN VOLVER (Global)
   ======================================== */

.contenedor-btn-volver,
.contenedor-boton-volver {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.btn-volver {
    background: transparent;
    border: 2px solid var(--color-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.btn-volver:hover,
.btn-volver:focus {
    background: var(--color-success);
    border-color: var(--color-success);
    color: #fff;
    text-decoration: none;
}

/* ========================================
   WIDGET USERWAY - Accesibilidad
   ======================================== */

.userway_buttons_wrapper,
.uwy.userway_p1 .uai,
.uwy .uai {
    top: 60% !important;
    /* Bajado un poco para evitar la flecha del slider que está al 50% */
    bottom: auto !important;
    left: 15px !important;
    /* Separado del borde izquierdo */
    right: auto !important;
    transform: translateY(-50%) !important;
}

/* ========================================
   BOTÓN FLOTANTE DE CONTACTO
   ======================================== */

.btn-flotante-contacto {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* Posición estándar derecha */
    width: 80px;
    /* Un poco más grande para la mascota */
    height: 80px;
    background-color: #fff;
    /* Fondo blanco para resaltar la mascota */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none ;
    overflow: hidden;
    /* Para que la mascota no se salga */
    border: 3px solid var(--color-primary);
    /* Borde institucional */
}

.img-mascota {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
    mix-blend-mode: multiply;
    /* Truco para mezclar el fondo blanco de la imagen */
}

.btn-flotante-contacto:hover .img-mascota {
    transform: scale(1.1) translateY(-5px);
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .btn-flotante-contacto {
        width: 65px;
        height: 65px;
        bottom: 15px;
        right: 15px;
        /* Ajuste móvil derecha */
    }

    .userway_buttons_wrapper,
    .uwy.userway_p1 .uai,
    .uwy .uai {
        top: 60% !important;
        bottom: auto !important;
        left: 10px !important;
        transform: translateY(-50%) scale(0.8) !important;
        /* Un poco más pequeño en móvil */
    }
}