


html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}


.carousel-image-container {
    width: 576px;
    height: 432px;
    background-color: #000; /* Fondo negro opcional para contraste */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .carousel-image-container img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.accordion {
    --bs-accordion-btn-bg: #ffffff;
    --bs-accordion-active-bg: FloralWhite;
    --bs-accordion-bg: FloralWhite;
    --bs-accordion-btn-focus-box-shadow: none;
}

.compacto p {
    line-height: 1.3; /* Más compacto pero aún legible */
    margin-bottom: 0.4rem; /* Reduce el espacio entre párrafos */
}

html {
    scroll-behavior: smooth;
}
/*nav*/
.custom-link {
    position: relative;
    transition: color 0.2s ease-in-out;
    color: white !important; /* Asegura color blanco por defecto */
}

    .custom-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0.1em;
        width: 0%;
        height: 2px;
        background-color: white; /* subrayado blanco */
        transition: width 0.3s ease-in-out;
    }
    
    .custom-link:hover::after,
    .custom-link:focus::after {
        width: 100%;
    }

    .custom-link:hover,
    .custom-link:focus {
        color: white; /* mantiene color blanco al pasar el mouse */
    }

    .custom-link:active {
        color: white;
    }


#map-container {
    height: 400px;
}

#map {
    height: 100%;
    width: 100%;
}

h1 {
     color:#e4002b;
}

/* Garantiza recorte uniforme de imágenes dentro del contenedor ratio */
.ratio > img {
    object-fit: cover;
    object-position: center;
}

/* (Opcional) fija altura mínima del título para alinear la segunda línea si hay nombres largos */
.card-title {
    min-height: 2.5rem;
}
/* ~2 líneas */

/* Gradiente inferior que mejora el contraste del texto */
.img-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,0) 65% );
    pointer-events: none;
}

/* Fondo sólido (semi) detrás del texto + sombra al texto */
.caption-solid {
    background: rgba(0,0,0,.55);
    padding: .5rem .75rem;
    border-radius: .5rem;
    text-align: left;
}

.carousel-caption h5,
.carousel-caption p {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,.85);
}

/* En pantallas chicas, sube la opacidad para máxima legibilidad */
@media (max-width: 576px) {
    .caption-solid {
        background: rgba(0,0,0,.75);
    }
}


.datos-detalle > div {
    display: flex;
    margin: 4px 0;
}

    .datos-detalle > div > span:first-child {
        font-weight: 600;
        color: #444;
        width: 180px; /* columna fija para alinear todas las etiquetas */
        flex-shrink: 0;
    }

    .datos-detalle > div > span:last-child {
        color: #222;
    }

.nombre {
    font-size: 1.8rem;
    font-weight: bold;
    color: #7B1E1E; /* burdeos */
    margin-bottom: 1rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
}

/* Carrusel + Mapa lado a lado (mobile: apilados) */
.media-pair {
    margin-top: 1rem;
}

/* Caja del mapa responsive */
#map-container {
    position: relative;
    min-height: 260px; /* altura mínima mobile */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* El mapa ocupa todo el contenedor */
#map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* En pantallas medianas+ aumenta la altura del mapa */
@media (min-width: 768px) {
    #map-container {
        min-height: 360px;
    }
}

@media (min-width: 1200px) {
    #map-container {
        min-height: 420px;
    }
}


/* ====== Contenedor principal ====== */
.container {
    max-width: 1200px;
}

/* ====== Carrusel móvil ====== */
#hero .caption-bg {
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
    border-radius: .5rem;
    padding: .5rem .75rem;
    text-align: left;
}

    #hero .caption-bg h5 {
        margin: 0 0 .25rem 0;
        font-weight: 700;
    }

#hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ====== Tarjetas (grid desktop) ====== */
.card.h-100 {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .card.h-100:hover,
    .card.h-100:focus-within {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0,0,0,.10);
    }

/* Imagen con proporción uniforme (más alta que ancha) */
.card .ratio {
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

    .card .ratio > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

/* Cuerpo de tarjeta: columnas siempre alineadas */
.card .card-body {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.card .card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
}

    .card .card-title a {
        text-decoration: none;
    }

        .card .card-title a:hover, .card .card-title a:focus {
            text-decoration: underline;
        }

.card .text-muted {
    color: #5b5b5b !important;
}

.card .card-text.mt-auto {
    margin-top: auto;
    font-weight: 600;
}

/* Espaciado del grid */
.row.g-4 > [class*="col"] {
    display: flex;
}

/* Pequeños ajustes responsivos */
@media (min-width: 992px) {
    /* reduce ligeramente el espacio vertical del grid desktop */
    .row.g-4 {
        row-gap: 1.25rem;
    }
}

.titulo-principal {
    text-align: center;
    margin: 0.5rem auto 2rem auto;
    max-width: 900px;
    padding: 0.75rem 1rem;
    border-bottom: 3px solid #7B1E1E; /* burdeos institucional */
}

    .titulo-principal h2 {
        font-family: "Segoe UI", Arial, sans-serif;
        font-size: clamp(1.5rem, 3vw, 2rem); /* responsivo */
        font-weight: 700;
        line-height: 1.3;
        color: #222;
        margin: 0;
    }


body {
    background-color: #fff; /* gris suave */
}

.main-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 0rem;
    margin-top:1rem;
}

.img-ajustada {
    max-height: 70vh;
    width: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

/* Contenedor con tamaño consistente en todas las imágenes */
.carousel-frame {
    width: 100%;
    max-height: 70vh; /* quepa en móviles sin scroll; ajusta 60-75vh a gusto */
    aspect-ratio: 4 / 5; /* marco vertical típico; cámbialo si prefieres otro */
    margin: 0 auto;
    background: #f8f9fa; /* color del “letterbox” cuando la imagen no llena */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* oculta cualquier desborde si usas cover */
}

/* La imagen se adapta sin deformarse y centrada */
.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* muestra la foto completa (sin corte) */
    object-position: center;
}

/* En pantallas más grandes puedes cambiar el marco si quieres más ancho */
@media (min-width: 768px) {
    .carousel-frame {
        max-height: 65vh; /* un poco menos alto en desktop */
        aspect-ratio: 3 / 4; /* marco un poco más “ancho” en desktop */
    }
}

.carousel-img {
    object-fit: cover;
}

#listado a {
    line-height: 1.25;
}

    #listado a:hover, #listado a:focus {
        background: #f8f9fa;
        text-decoration: underline;
    }


/* Grid responsivo para A-Z */
.az-index {
    grid-template-columns: repeat(6, minmax(0, 1fr)); /* móvil: 6 columnas */
}

@media (min-width: 768px) {
    .az-index {
        grid-template-columns: repeat(12, 1fr);
    }
    /* desktop: 12 */
}

/* Botón/píldora de letra (ajusta a tu paleta) */
.btn-letter {
    padding: .6rem 0;
    font-weight: 600;
    letter-spacing: .5px;
}

    .btn-letter:focus-visible {
        box-shadow: 0 0 0 .25rem rgba(220,53,69,.25); /* accesible */
    }

/* Opcional: que el índice quede fijo bajo el header */
.sticky-az {
    position: sticky;
    top: 64px;
    z-index: 1010;
}


/* 1 sola columna y ancho cómodo en desktop */
.one-col {
    grid-template-columns: 1fr;
    max-width: 520px; /* centra y evita que se estire */
    margin: 0 auto;
}

/* Botón legible/táctil */
.btn-letter {
    padding: .8rem 1rem;
    font-weight: 600;
    letter-spacing: .3px;
}

/* Colores acorde a tu branding (#7B1E1E) */
.btn-outline-danger {
    border-color: #7B1E1E;
    color: #7B1E1E;
}

    .btn-outline-danger:hover {
        background: #7B1E1E;
        color: #fff;
    }

:root {
    --mv-burdeo: #7B1E1E;
}

/* Centra el contenedor y su contenido */
.titulo-principal {
    display: grid;
    place-items: center; /* centra horizontal y verticalmente el contenido */
    margin: .75rem 0 1.25rem;
}

    /* Centra el texto del H2 */
    .titulo-principal h2 {
        color: var(--mv-burdeo);
        font-weight: 700;
        line-height: 1.15;
        text-align: center;
        margin: 0 auto; /* asegura centrado del propio elemento */
    }

    /* Barra decorativa centrada */
    ._titulo-principal::after {
        content: "";
        display: block;
        width: min(240px,60%);
        height: 4px;
        background: var(--mv-burdeo);
        border-radius: 999px;
        margin: .6rem auto 0; /* centra la barra */
    }

/* Tamaños responsivos opcionales */
@media (max-width:576px) {
    .titulo-principal h2 {
        font-size: 1.25rem;
    }
}

@media (min-width:577px) and (max-width:992px) {
    .titulo-principal h2 {
        font-size: 1.6rem;
    }
}

@media (min-width:993px) {
    .titulo-principal h2 {
        font-size: 2rem;
    }
}

/* Gutters más compactos */
.tight-gutters {
    --bs-gutter-x: .75rem; /* antes ~1.5rem (g-4) */
    --bs-gutter-y: .75rem;
}
/* Contenedor más angosto para que las columnas no se abran tanto */
.grid-narrow {
    max-width: 1100px; /* prueba 960–1140px según te guste */
}

@media (min-width: 1400px) {
    .grid-narrow {
        max-width: 1200px;
    }
}

:root {
    --mv-burdeo: #7B1E1E;
}

.site-footer .text-brand {
    color: var(--mv-burdeo);
}

.site-footer .footer-link {
    color: #212529;
    text-decoration: none;
}

    .site-footer .footer-link:hover {
        color: var(--mv-burdeo);
        text-decoration: underline;
    }

.site-footer .footer-icon {
    color: #212529;
    font-size: 1.25rem;
}

    .site-footer .footer-icon:hover {
        color: var(--mv-burdeo);
    }


.navbar-brand.custom-link {
    font-size: 2rem;
    letter-spacing: 1px; /* opcional, separa un poco las letras */
    text-transform: uppercase; /* opcional, lo pone en mayúsculas */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 100% 100%; /* asegura que use toda el área */
    width: 3rem; /* aumenta tamaño del ícono */
    height: 3rem;
    filter: brightness(0) invert(1); /* asegura que se vean blancos */
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%; /* agranda el área clickeable */
}

.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
    font-size: 3rem; /* si usas iconos basados en texto */
}
.carousel-control-prev,
.carousel-control-next {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 1rem; /* un poco separado del borde */
}

.carousel-control-next {
    right: 1rem;
}


.comunicado-box {
    background-color: #f8f1ec; /* fondo suave, cálido */
    color: #5a2a2a; /* texto burdeo oscuro */
    text-align: center;
    font-size: 1.1rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 6px; /* bordes suaves */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* ligera sombra para resaltarlo */
}

.comunicado-link {
    color: #7B1E1E; /* burdeo corporativo */
    font-weight: bold;
    text-decoration: underline;
    font-size: 1.15rem;
}

    .comunicado-link:hover {
        color: #5e1515; /* más oscuro en hover */
    }

.navbar-brand {
    text-transform: none !important;
}
   