/* Encabezado y pie institucionales, portados del sitio de predial-salamanca.
   Sin Bootstrap: el grid y los contenedores se resuelven con flex/grid propios,
   y se declaran tipografías y listas porque el preflight de Tailwind las resetea. */

body {
    font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
}

/* ================================ */
/* HEADER Y TOPBAR                  */
/* ================================ */

.topbar {
    background-color: rgb(144, 12, 63);
    padding: 5px 0;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.topbar-contenedor {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.contact-info {
    color: #fff;
    font-size: 14px;
    gap: 10px;
    display: flex;
    align-items: center;
    margin: 5px 0;
    white-space: nowrap;
}

.contact-info a {
    color: inherit;
    text-decoration: none;
}

.contact-info-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.contact-info img {
    width: 20px;
    filter: brightness(0) invert(1);
}

/* ================================ */
/* ICONOS SOCIALES                  */
/* ================================ */

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
    margin: 5px 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
    color: #fff;
    line-height: 1;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #ccc;
}

.social-icon.facebook:hover {
    color: blue;
}

.social-icon.x:hover {
    color: black;
}

.social-icon.youtube:hover {
    color: red;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    background-clip: text;
    color: transparent;
}

.social-icon.tiktok:hover {
    background: linear-gradient(45deg, #000, #fff, #ff0050, #00f2ea);
    background-clip: text;
    color: transparent;
}

.social-icon.x img,
.footer-social-icon.x img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(1);
    transition: all 0.3s ease;
}

.social-icon.x:hover img,
.footer-social-icon.x:hover img {
    filter: brightness(0) saturate(100%) invert(0);
}

/* ================================ */
/* NAVBAR Y LOGOTIPO                */
/* ================================ */

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 10px;
}

.navbar-logo {
    text-align: center;
    width: 100%;
}

.navbar-logo img {
    display: inline-block;
    height: auto;
    max-height: 110px;
    width: auto;
}

/* ================================ */
/* FOOTER                           */
/* ================================ */

.footer {
    background-image: url('/img/fondo-verde.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.footer-top {
    max-width: 1320px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.footer h4 {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.footer p {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer a:hover {
    color: #ccc;
}

.footer ul {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer img.icon {
    width: 20px;
    filter: brightness(0) invert(1);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-top: 10px;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.icon-small {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.white-icon {
    filter: invert(1);
}

/* ================================ */
/* RESPONSIVO                       */
/* ================================ */

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

    .contact-info {
        font-size: 13px;
    }

    .social-icons {
        justify-content: center;
        width: 100%;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer p,
    .footer a {
        justify-content: center;
    }

    .social-links {
        gap: 10px;
        justify-content: center;
    }

    .footer a {
        font-size: 16px;
    }

    .footer-social-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .navbar-logo img {
        max-height: 80px;
    }
}

/* Scrollbar discreta para las columnas laterales del mapa. */
aside::-webkit-scrollbar,
aside ul::-webkit-scrollbar {
    width: 8px;
}

aside::-webkit-scrollbar-thumb,
aside ul::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

aside::-webkit-scrollbar-track,
aside ul::-webkit-scrollbar-track {
    background-color: transparent;
}
