/* --- ESTILOS BASE (MOBILE FIRST) --- */
.em-tiendas-custom-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.em-tiendas-media {
    margin-right: calc(-65vw + 50%);
    text-align: right;
}

.em-tiendas-media picture {
    position: relative;
    width: 70%;
    top: 50px;
}

.em-tiendas-media picture img.em-tiendas-img  {
    min-height: auto;
    width: 100%;
 }


/* Integramos las variables de margen directamente en la clase */
.em-section-custom {
  --margin-top-custom: 100px;
  --margin-top-custom-responsive: 30px;
  margin-top: var(--margin-top-custom-responsive);
  padding-top: 25px;
  padding-bottom: 25px;
}

.em-button-item-tiendas-btn {
    display: block;
    font-family: 'Poppins Regular';
    font-style: normal;
    font-weight: 800;
    font-size: 15px;
    line-height: 15px;
    text-align: center;
    color: #000000;
    border: 2px solid #000000;
    padding: 10px;
    width: 50%;
}

/* Forzamos el orden visual en móvil si es necesario */
.em-tiendas-grid {
    row-gap: 0.5rem; /* Espaciado entre texto e imagen en móvil */
}

.em-tiendas-content {
  text-align: left;
}

.em-tiendas-action {
  text-align: center;
  margin-top: 5rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center; /* horizontal */
  align-items: center;     /* vertical */
}

.em-links-item-tiendas-btn {
  padding-top: 13px;
}

/* =========================================
   CONTROL DE IMÁGENES (MOBILE FIRST)
   ========================================= */

.em-mobile-wrapper {
    position: relative;
    width: 100vw;          /* Ocupa todo el ancho de la pantalla */
    margin-right: calc(-50vw + 50%); /* Quita padding del container */
    text-align: right;     /* Imagen alineada a la derecha */
    flex-direction: column;        /* Imagen arriba, botón debajo */
   align-items: center
}


.em-img-desktop {
  display: none !important;
}

.em-tiendas-img {
    margin: 0 auto;
    display: block !important;
    width: 70%;
    max-width: 400px;
    margin-left: auto;
}


.em-tiendas-info-title {
        font-size: 18px;
        line-height: 18px;
        font-weight: 600;
    }


@media (min-width: 768px) {
    .em-mobile-wrapper {
        position: relative;
        width: 62vw;
        margin-right: calc(-50vw + 50%);
        text-align: right;
        flex-direction: column;
        align-items: center;
    }
}

/* =========================================
   ESTILOS DESKTOP (A PARTIR DE 769px)
   ========================================= */
@media (min-width: 769px) {

    .em-tiendas-custom-grid {
        grid-template-columns: 2fr 4fr;
        grid-template-areas:
        "text image"
        "button image";
        align-items: center;
        column-gap: 12rem;
    }

    .em-tiendas-media{
        /* margin-right: calc(-50vw + 50%); */
        text-align:right;
        grid-area: image;
    }

    .em-tiendas-content {
        grid-area: text;
        align-self: end;
    }

    .em-tiendas-media picture {
        position: relative;
        top: 0;
        width: 40%;
    }

    img.em-tiendas-img {
        display: block !important;
        width: 100%;
        max-width: 100%;
    }

    .em-tiendas-action {
        grid-area: button;
        align-self: start;
        text-align: center;
        margin-top: 1.5rem;
        margin-bottom: 0;
        display: flex;
        justify-content: start;
        align-items: center;
    }

    .em-section-custom {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .em-img-mobile {
        display: none !important;
    }


    /* 4. Encendemos la imagen de Desktop */
    .em-img-desktop {
        display: block !important;
        width: 100%;
        max-width: 100%;
        margin-top: -40px;
    }

}



