/* Importa tu fonts.css al inicio si no lo haces ya */
@import url('/public/css/fonts.css');



/* â€”â€”â€”â€”â€” Contenedor general â€”â€”â€”â€”â€” */
.ubicaciones {
    max-width: 1800px;
    margin: 30px auto;
    padding: 3rem 2rem;
    display: grid;
    /* Dos columnas, cada una mÃ­nimo 600px y se expanden hasta 1fr */
   /*grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));*/
    gap: 3rem;
}

/* â€”â€”â€”â€”â€” TÃ­tulo de secciÃ³n â€”â€”â€”â€”â€” */
.ubicaciones__heading {
    grid-column: 1 / -1;
    font-size: 2.5rem;
    color: #0d315e;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* â€”â€”â€”â€”â€” Tarjeta de ubicaciÃ³n â€”â€”â€”â€”â€” */
.ubicacion {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    display: grid;
    /* Ahora dividimos en 2 columnas iguales */
    grid-template-columns: 1fr 1fr;
    height: 600px;
    /* puedes ajustar si quieres mÃ¡s o menos alto */
}

/* Imagen izquierda, ocupa toda la primera columna */
.ubicacion__imagen {
    grid-column: 1 / 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cuerpo derecho (info + mapa) */
.ubicacion__body {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
}

/* ================================= */
/*  Aplicar Ghino a tÃ­tulos y texto  */
/* ================================= */

/* tÃ­tulo de cada tarjeta */
.ubicacion__title {
    font-family: 'Ghino', sans-serif;
    font-weight: 700;        /* GhinoBold, suficiente presencia sin exagerar */
    font-size: 1.75rem;      /* un poco mÃ¡s grande que el cuerpo */
    margin-bottom: 0.75rem;
    color: #0d315e;
  }
  
  /* texto de informaciÃ³n (direcciÃ³n, horarios, tel.) */
  .ubicacion__info p {
    font-family: 'Ghino', sans-serif;
    font-weight: 400;        /* GhinoBook, lecturable y limpio */
    font-size: 1rem;
    line-height: 1.6;
    margin: 0.5rem 0;
  }
  
  /* etiquetas fuertes */
  .ubicacion__info strong {
    font-family: 'Ghino', sans-serif;
    font-weight: 600;        /* GhinoSemiBold, para destacar â€œUBICACIÃ“Nâ€, â€œHORARIOSâ€ */
    color: #0d315e;
  }
  

.ubicacion__map {
    flex: 3;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

/* â€”â€”â€”â€”â€” Header personalizado con gradiente animado â€”â€”â€”â€”â€” */
.loc-header {
    max-width: 3000px;
    margin: 260px auto 3rem;
    padding: 2rem 3rem;
    height: 300px;
    background: linear-gradient(135deg, #0d315e, #1e5fa1, #0d315e);
    background-size: 300% 300%;
    border-radius: 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    animation: loc-slide-in 1s ease-out both,
        gradient-move 6s ease infinite;
}

.loc-header__wrap {

    color: #fff;
}



/* â€” TÃ­tulo principal: â€œConoce nuestras ubicacionesâ€ â€” */
.loc-header__main-title {
    font-family: 'Ghino', sans-serif;
    font-weight: 950;        /* GhinoUltra: el mÃ¡s grueso */
    font-size: 3rem;         /* o el tamaÃ±o que prefieras */
    margin: 0;
}

/* â€” SubtÃ­tulo: â€œÂ¡Esperamos tu visita!â€ â€” */
.loc-header__subtitle {
    font-family: 'Ghino', sans-serif;
    font-weight: 400;        /* GhinoBook: mÃ¡s ligero */
    font-size: 1.5rem;       /* o ajÃºstalo segÃºn tu diseÃ±o */
    margin: 0.5rem 0 0;
    opacity: 0.85;
}

.loc-header__actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.loc-header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    font-family: 'Ghino', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.loc-header__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.loc-header__btn--active {
    background: #e30613;
    color: #ffffff;
    border-color: transparent;
}

.loc-header__btn--active.loc-header__btn--ghost {
    background: #e30613;
    color: #ffffff;
    border-color: transparent;
}

.loc-header__btn--ghost {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

.loc-header__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.15);
}

.is-hidden {
    display: none !important;
}

.dist-section {
    max-width: 1800px;
    margin: 30px auto 4rem;
    padding: 3rem 2rem;
}

.dist-section__wrap {
    display: grid;
    grid-template-columns: minmax(320px, 1.2fr) minmax(260px, 0.8fr);
    gap: 2.5rem;
    align-items: stretch;
}

.dist-map-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dist-map-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(13, 49, 94, 0.12);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(13, 49, 94, 0.18);
    backdrop-filter: blur(6px);
}

.dist-map-toolbar__label {
    color: #0d315e;
    font-weight: 700;
    font-family: 'Ghino', sans-serif;
}

.dist-map-toolbar__select {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(13, 49, 94, 0.25);
    font-family: 'Ghino', sans-serif;
    background: #ffffff;
}

.dist-map {
    width: 100%;
    height: 560px;
    border-radius: 16px;
    border: 1px solid rgba(13, 49, 94, 0.2);
    box-shadow: 0 12px 28px rgba(13, 49, 94, 0.15);
    overflow: hidden;
    background: #f2f4f8;
    position: relative;
}

.dist-card {
    background: #0d315e;
    color: #fff;
    border-radius: 18px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 12px 28px rgba(13, 49, 94, 0.25);
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dist-card__media {
    width: 380px;
    height: 185px;
    border-radius: 5%;
    overflow: hidden;
    border: 4px solid #e30613;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin: 0.6rem 0 0.8rem;
    background: rgba(255, 255, 255, 0.1);
}

.dist-card--empty .dist-card__media {
    width: 100%;
    height: auto;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    margin: 9vh 0 0.8rem;
}

.dist-card--empty .dist-card__badge {
    margin-top: 6vh;
}

.dist-card--empty .dist-card__actions {
    display: none;
}

.dist-card--empty .dist-card__name {
    margin-top: 0.4rem;
}

.dist-card--empty #dist-brand {
    margin-bottom: 0.4rem;
}

.dist-card--empty #dist-photo {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.dist-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dist-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dist-card__name {
    font-family: 'Ghino', sans-serif;
    font-size: 1.6rem;
    margin: 0.2rem 0 0.4rem;
}

.dist-card__subtitle {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.dist-card__brand {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
}

.dist-card__actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.6rem;
}

.dist-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.98rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dist-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
    background: #e30613;
    border-color: rgba(255, 255, 255, 0.5);
}

.dist-card__btn--location {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.dist-card__icon {
    font-size: 1.1rem;
    color: #ffffff;
}

.dist-card__text {
    color: #ffffff;
}

.dist-card--pulse {
    animation: dist-card-pulse 0.45s ease;
}

.dist-card--fade {
    animation: dist-card-fade 0.5s ease;
}

@keyframes dist-card-fade {
    from {
        opacity: 0.2;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dist-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 55%);
    pointer-events: none;
}

@keyframes dist-card-pulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 12px 28px rgba(13, 49, 94, 0.25);
    }
    50% {
        transform: translateY(-6px) scale(1.01);
        box-shadow: 0 18px 34px rgba(13, 49, 94, 0.3);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 12px 28px rgba(13, 49, 94, 0.25);
    }
}

@media (max-width: 1100px) {
    .dist-section__wrap {
        grid-template-columns: 1fr;
    }
    .dist-map {
        height: 420px;
    }
}

@media (max-width: 600px) {
    .dist-section {
        padding: 2rem 1rem;
    }
    .dist-map {
        height: 360px;
    }
    .dist-card {
        padding: 1.5rem;
    }
}

.dist-map-fullscreen {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(13, 49, 94, 0.35);
    background: #ffffff;
    color: #0d315e;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(13, 49, 94, 0.2);
}

.dist-map-fullscreen:hover {
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .leaflet-bottom.leaflet-right {
        bottom: 12px;
        right: 12px;
    }
}

.loc-header__figure img {
    display: block;
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

@keyframes loc-slide-in {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* â€”â€”â€”â€”â€” Breakpoints â€”â€”â€”â€”â€” */

/* â‰¤ 1900px: ajustar tamaÃ±o interno de la tarjeta */
@media (max-width: 1900px) {
    .ubicacion {
        grid-template-columns: 570px 1fr;
        height: 570px;
    }

    .ubicacion__imagen {
        width: 400px;
        height: 570px;
    }
    .ubicacion__body {
        grid-column: 2 / 3;
        display: flex;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        width: 165%;
        margin-left: -165px;
    }
}
@media (max-width: 1920px) {
    .ubicacion {
        grid-template-columns: 570px 1fr;
        height: 570px;
    }

    .ubicacion__imagen {
        width: 760px;
        height: 570px;
    }
    .ubicacion__body {
        grid-column: 2 / 3;
        display: flex;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        width: 80%;
        margin-left: 200px;
    }
}

/* â‰¤ 1366px */
@media (max-width: 1366px) {
    .ubicacion {
        grid-template-columns: 500px 1fr;
        height: 500px;
    }

    .ubicacion__imagen {
        width: 635px;
        height: 500px;
    }
    .ubicacion__body {
        grid-column: 2 / 3;
        display: flex;
        flex-direction: column;
        padding: 2rem;
        margin-left: 135px;
        gap: 1.5rem;
        width: 85%;
    }
}

/* â‰¤ 992px: 1 columna, apilar imagen + contenido */
@media (max-width: 992px) {
    .ubicaciones {
        grid-template-columns: 1fr;
    }

    .ubicacion {
        grid-template-columns: 1fr;
        grid-template-rows: 0px auto;
        height: auto;
    }

    .ubicacion__imagen {
        height: 530px;
        width: 320px;
    }

    .ubicacion__body {
        grid-row: 2;
        padding: 1.5rem;
    }

    .ubicacion__map {
        flex: none;
        height: 250px;
        width: 478px;
    }
    .ubicacion__body
    {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    margin-left: -10px;
    gap: 1.5rem;
    width: 100%;
    }
}
@media (max-width: 886px) {
    .ubicaciones {
        grid-template-columns: 1fr;
    }

    .ubicacion {
        grid-template-columns: 1fr;
        grid-template-rows: 0px auto;
        height: auto;
    }

    .ubicacion__imagen {
        height: 530px;
        width: 225px;
    }

    .ubicacion__body {
        grid-row: 2;
        padding: 1.5rem;
    }

    .ubicacion__map {
        flex: none;
        height: 250px;
        width: 478px;
    }
    .ubicacion__body {
        grid-column: 2 / 3;
        display: flex;
        flex-direction: column;
        padding: 2rem;
        margin-left: -100px;
        gap: 1.5rem;
        width: 100%;
    }
}
@media (max-width: 800px) {
    .ubicaciones {
        grid-template-columns: 1fr;
    }

    .ubicacion {
        grid-template-columns: 1fr;
        grid-template-rows: 0px auto;
        height: auto;
    }

    .ubicacion__imagen {
        height: 530px;
        width: 225px;
    }

    .ubicacion__body {
        grid-row: 2;
        padding: 1.5rem;
    }

    .ubicacion__map {
        flex: none;
        height: 250px;
        width: 478px;
    }
    .ubicacion__body {
        grid-column: 2 / 3;
        display: flex;
        flex-direction: column;
        padding: 2rem;
        margin-left: -14px;
        gap: 1.5rem;
        width: 100%;
    }
}

/* ======= MÃ“VIL: pantallas â‰¤ 600px ======= */
@media (max-width: 600px) {
    /* 1) Una sola columna */
    .ubicaciones {
      grid-template-columns: 1fr;
    }
  
    /* 2) Grid directo: info â†’ img â†’ map */
    .ubicacion {
      display: grid !important;
      grid-template-areas:
        "info"
        "img"
        "map";
      grid-template-columns: 1fr;
      grid-template-rows: auto auto auto;
      gap: 1rem;
      width: 100%;
      height: auto !important;
      overflow: visible !important;
    }
  
    /* 3) â€œDesenmascaramosâ€ los hijos de .ubicacion__body */
    .ubicacion__body {
      display: contents !important;
    }
  
    /* 4) Texto en fila 1 */
    .ubicacion__info {
      grid-area: info;
      padding: 1rem;
      box-sizing: border-box;
      width: 100%;
    }
    .ubicacion__info p {
      margin: 0.5rem 0;
      white-space: normal;
      word-break: break-word;
      overflow-wrap: break-word;
      hyphens: auto;
    }
  
    /* 5) Imagen en fila 2 */
    .ubicacion__imagen {
      grid-area: img !important;
      display: block !important;
      width: 100% !important;
      height: auto !important;
      object-fit: cover;
    }
  
    /* 6) Mapa en fila 3 */
    .ubicacion__map {
      grid-area: map;
      width: 100%;
      height: 250px;
    }
  
    /* 7) Header con logo bajo el texto */
    .loc-header {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin: 16rem auto 3rem;
      padding: 2rem 1rem;
      width: 100%;
      height: auto;
    }
    .loc-header__figure {
      display: block;
      margin-top: 1rem;
    }
    .loc-header__figure img {
      display: block;
      max-height: 120px;
      width: auto;
      object-fit: contain;
    }
  }
  
  @media (max-width: 1024px) and (min-width: 768px){
    .ubicacion__imagen {
        width: 510px;
        height: 500px;
    }
    .ubicacion__body{
        grid-column: 2 / 3;
        display: flex;
        flex-direction: column;
        padding: 2rem;
        margin-left: 2px;
        gap: 1.5rem;
        width: 100%;
    }
  }
  
  
/* â‰¤ 400px: texto mÃ¡s pequeÃ±o */
@media (max-width:400px) {
    .loc-header__main-title {
        font-size: 2rem;
    }

    .loc-header__subtitle {
        font-size: 1rem;
    }
}

/* â‰¤ 300px: ajustes extremos */
@media (max-width:300px) {
    .loc-header__main-title {
        font-size: 1.5rem;
    }

    .loc-header__subtitle {
        font-size: .85rem;
    }

    .loc-header__figure img {
        max-height: 80px;
    }
}
