/* 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__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;
    }
  }
  
  
  
  
  

/* â‰¤ 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;
    }
}
