main {
    display: flex;
    flex-direction: column;
    margin: 20px 0;
    padding: 0 5%;
    gap: 50px;
}

.back {display:inline-block; width: 100%; text-align:left; margin: 0px; padding:0px 5% 0px 5%; font-family:'Poppins', sans-serif; font-weight:300; border:0px solid red;}
.back img {width: 30px; vertical-align: middle; border:0px solid red;}

.wrapper {
    display: flex;
    width: 100%;
    gap: 30px;
}

.container-images-location {
    display: flex;
    flex-direction: column;
    width: 60%;      
    gap: 30px;
}

.container-images-location-m {
    display: none; /* Oculto en PC */
    width: 100%; /* Asegura que el slider no se expanda más de la pantalla */
    height: 300px; /* Ajusta según necesites */
    /*
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    */
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2); /* Leve sombreado */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Transiciones suaves */
    border:0px solid red;
    overflow: hidden;
}


.swiper {
    width: 100%;
    height: 100%;
    padding: 0px !important;
    margin: 0px !important;
    background: #f7f7f7;
    border-radius: 12px; /* Bordes redondeados */
}

.swiper-wrapper {
    position: relative;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  /*object-fit: contain;*/
  object-fit: cover;
}

.swiper-pagination-bullet {
    background-color: var(--primary) !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary) !important;
}







/* Contenedor para mantener las flechas sin afectar el slider */
.swiper-wrapper-container {
    position: relative;
    width: 100%;
    /*max-width: 1200px;*/ /* Ajusta según el diseño */
    margin: auto;
    border:0px solid red;
}

.swiper-carrusel {
    width: 100%;
    padding: 20px 0;
    overflow: hidden; /* Mantiene el tamaño correcto */
    border:0px solid green;
}

.carrusel-slide {
    border:0px solid gray;
}

/* Estilos de las flechas */
.carrusel-prev, .carrusel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: var(--primary);
    /*background: var(--primary);
    padding: 15px;
    border-radius: 50%;*/
    cursor: pointer;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
}

.carrusel-prev::after{
    font-size: 40px;
    font-weight: 200;
    color: var(--primary);
    content: "<";  
}
.carrusel-next::after {
    font-size: 40px;
    font-weight: 200;
    color: var(--primary);
    content: ">";
}


/* Ajustamos bien su posición */
.carrusel-prev {
    left: -40px; /* Ahora sí se verá bien */
}

.carrusel-next {
    right: -40px; /* Ahora sí se verá bien */
}

.swiper-carrusel-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px; /* Ajusta según necesites */
}

/* Estilos del nuevo swiper */
.swiper-carrusel-secundario {
    width: 100%;
    padding: 20px 0;
    overflow: hidden; /* Mantiene el tamaño correcto */
}

.carrusel-slide-secundario {
    border: 0px solid gray;
}

/* Estilos de las flechas para el nuevo swiper */
.carrusel-prev-secundario, .carrusel-next-secundario {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: var(--primary);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
}

.carrusel-prev-secundario::after {
    font-size: 40px;
    font-weight: 200;
    color: var(--primary);
    content: "<";  
}

.carrusel-next-secundario::after {
    font-size: 40px;
    font-weight: 200;
    color: var(--primary);
    content: ">";
}

/* Ajustamos las posiciones de las flechas */
.carrusel-prev-secundario {
    left: -40px;
}

.carrusel-next-secundario {
    right: -40px;
}

.swiper-carrusel-secundario-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0px; /* Ajusta según necesites */
}


.container-location-buttons {
    display: flex;
    gap: 30px
}

.container-location {
    display: flex;
    flex-direction: column;    
    width: 50%;
    padding: 20px;
    gap: 15px;
    /*
    background-color: #f7f7f7; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);   
    */
    background-color: #f7f7f7; 
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2); /* Leve sombreado */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Transiciones suaves */
}

.container-location-m {
    display: none ;
    width: 100%;
    padding: 20px;
    background-color: #f7f7f7; 
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2); /* Leve sombreado */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Transiciones suaves */
}

.container-buttons {
    display: flex;
    flex-direction: column;    
    width: 50%;
    padding: 20px;
    gap: 15px;    
    background-color: #f7f7f7; 
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2); /* Leve sombreado */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Transiciones suaves */
}

.container-buttons-m {
    display: none ;
    width: 100%;
    padding: 20px;
    gap: 15px;    
    background-color: #f7f7f7; 
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2); /* Leve sombreado */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Transiciones suaves */
}

.container-images {
    display: flex;
    flex-grow: 1;
    width: 100%;
    gap: 3px;
}

/* Primer div (izquierda) */
.left-div {
    position: relative;
    flex: 1;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

/* Imagen dentro de left-div */
.left-div img {
    object-fit: cover; /* Hace que la imagen cubra todo el contenedor sin deformarse */
    width: 100%;
    height: 100%;
}

/* Segundo div (derecha) */
.right-div {
    flex: 1; /* Ocupa el mismo espacio que el primer div */
    display: flex;
    flex-direction: column; /* Hace que los divs internos se apilen verticalmente */
    height: 100%; /* Asegura que ocupe toda la altura disponible dentro del contenedor */
    gap: 3px;
}

/* Div dentro de right-div - Parte superior */
.top-div {
    flex: 1; /* Ocupa el 50% del height de right-div */
    overflow: hidden; /* Evita desbordamiento */  
    border-radius: 4px;
    cursor: pointer;
}

.top-div img {
    object-fit: cover; /* Hace que la imagen cubra todo el contenedor sin deformarse */
    width: 100%;
    height: 100%;
}

/* Div dentro de right-div - Parte inferior */
.bottom-div {
    flex: 1; /* Ocupa el 50% del height de right-div */
    display: flex; /* Se usa flex para dividir el ancho */
    gap: 3px;
}

/* Los dos divs dentro de bottom-div */
.bottom-left {
    flex: 1; /* Cada div ocupa el 50% del ancho de bottom-div */
    border-radius: 4px;
    cursor: pointer;
}
.bottom-right {
    flex: 1; /* Cada div ocupa el 50% del ancho de bottom-div */
    border-radius: 4px;
    cursor: pointer;
}

.container-info {
    display: flex;
    flex-direction: column;
    width: 40%;      
    gap: 30px;
}

.reporting {
    /*
    position: absolute;
    top: 15px;
    right: 15px;*/
    z-index: 100;
    cursor: pointer;
}

.reporting img {
    width: 26px !important;
}

.reporting span {
    font-size: 10px !important;
}

.info-top {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Esto evita que los hijos se expandan */
    background-color: #f7f7f7;
    /*
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    */
    background-color: #f7f7f7; 
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2); /* Leve sombreado */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Transiciones suaves */
    gap: 15px;
    padding: 20px;
}

.info-top-m {
    display: none;
    width: 100%; /* Asegura que el slider no se expanda más de la pantalla */
    border-radius: 12px; /* Bordes redondeados */
    background-color: #f7f7f7;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2); /* Leve sombreado */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Transiciones suaves */
    border:0px solid red;
    overflow: hidden;    
}

.info-row {
    display: flex;
    align-items: center; /* Centrado vertical */
    gap: 40px; /* Espacio entre los dos grupos */
}

.info-item {
    display: flex;
    align-items: center; /* Centrado vertical */
    gap: 5px; /* Espacio entre la imagen y la label */
}

.info-item img {
    width: 20px;
    height: auto;
}

.info-item-big {
    display: flex;
    align-items: center; /* Centrado vertical */
    gap: 10px; /* Espacio entre la imagen y la label */
}
    
.info-item-big img {
    width: 24px;
    height: auto;    
}

.info-item-big span {
    margin-top: 2px;
}

.info-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--black);
}

.info-bottom {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    background-color: #f7f7f7; /* Fondo de color suave */
    /*
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    */
    background-color: #f7f7f7; 
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2); /* Leve sombreado */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Transiciones suaves */
    gap: 15px; /* Espaciado entre elementos */
    padding: 20px;
}

.info-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 70%; /* Ajusta el valor según el diseño */
}

.product_option_edit {
    display: flex;
    align-items: center;
    justify-content: end;    
    border:0px solid red;
    cursor: pointer;
}

.product_option_edit img {
    width: 20px;
    height: 20px;
}

.product_option_edit span {
    font-size:12px;
    font-weight: 400;
    margin-left: 5px;
}

.text {
    font-size: 14px;
    font-weight: 400;
    color: #000;
    margin-bottom: 3px;
}

.text-big {
    font-size: 18px;
    font-weight: 600;    
}

.text-price {
    font-size: 26px;
    color: var(--black);
    font-weight: 600;    
}

.text-urlcompra {
    padding: 5px 10px;
    border-radius: 4px;
    background-color: var(--secondary);
}

.break-word {
  word-break: break-word;        
  overflow-wrap: break-word;     
  word-wrap: break-word;         
}

.text a {
    text-decoration: none;
    color: var(--black);
}

.text a:hover {
    text-decoration: none;
}

.tachado {
    font-size: 16px;
    font-weight: 300 !important;    
    color: var(--gray-6) !important;
    text-decoration: line-through !important;
    margin-right: 20px;
}

.red {
    font-size: 26px;
    color: var(--primary) !important;
}

.label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

button {
    width: 100%;
    padding: 10px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 35px;
}

.oferta {
    background-color: var(--primary);
    color: var(--white);
    margin: 3px 0px 5px 0px;
    transition: background-color 0.3s ease;
}

.oferta:hover {
    background-color: var(--primary-hover);
}

.mensaje {
    background-color: var(--white);
    color: var(--primary);
    border:2px solid red;
}

.text-envio {
    color: var(--black);
}

.user-container-m {
    display: flex;
    justify-content: center;
    width: 100%;
}

.user-avatar-m {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden; /* Asegura que la imagen no sobresalga */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
    background-color: var(--primary); /* Color de fondo si la imagen no carga */
    flex-shrink: 0;
}

.user-avatar-m img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen sin deformarla */
}

.user-info-m {
    flex: 1; /* Ocupa todo el espacio restante */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 15px; /* Espaciado entre el avatar y la info */
}

.product_label {
    display: inline-flex !important;
    width: auto !important;
    text-align: left;
    margin-bottom: 10px;
}

.product_label div {
    font-size: 16px;
    font-weight: 600;
    background-color: #fff;
    border-radius: 4px;
    padding: 1px 45px;
}

.label_vendido {
    border: 1px solid var(--label-vendido);
    background-color: var(--label-vendido) !important;
    color: var(--white);    
}

.label_nuevo {
    border: 1px solid var(--label-nuevo);
    color: var(--label-nuevo);    
}

.label_usado {
    border: 1px solid var(--label-usado);
    color: var(--label-usado);    
}

.label_alquiler {
    border: 1px solid var(--label-alquiler);
    color: var(--label-alquiler);    
}

.label_reservado {
    border: 1px solid var(--label-reservado);
    background-color: var(--label-reservado) !important;
    color: var(--white);    
}


.otros-anuncios-vendedor {
    display: flex;
    flex-direction: column;
}

.otros-anuncios-similares {
    display: flex;
    flex-direction: column;
}

.otros-anuncios-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 25px;
}

.product-grid{display:grid; grid-template-columns:repeat(4, 1fr); gap:20px;} /* para cuando metamos ads, el repeat baja de 4 a 3 columnas .product-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:20px;} */
.product-link {
    width: 100% !important;
    text-decoration: none;
    color:#000;
}
.product {
    background-color: #ffffff; /* Fondo blanco */
    padding: 10px;
    text-align: center;
    border: 1px solid #ededed; /* Bordes suaves */
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2); /* Leve sombreado */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Transiciones suaves */
}

.product:hover {
    background-color: #f7f7f7;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2); /* Leve sombreado */

}

.product_image {
    width: 100%;
    height: 300px; /* Ajusta la altura según sea necesario */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 2px;
}

.product_image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* La imagen cubrirá todo el contenedor */
}

.product_price_fav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 28px;
    margin-bottom: 5px;
}

.product_price {
    font-size: 14px;
    font-weight: 500;    
}

.product_price_strike {
    font-size: 14px;
    font-weight: 300; 
    text-decoration: line-through;
    color: var(--gray-6);
}

.modified_price {
    margin-left: 5px;
    font-size: 14px;
    font-weight: 500;        
    color: var(--primary);
}

.product_fav_d {
    position: absolute;
    top: 10px; /* Ajusta la posición desde arriba */
    right: 10px; /* Ajusta la posición desde la derecha */
    /*
    background: rgba(0, 0, 0, 0.5); 
    color: white;
    padding: 10px;
    border-radius: 8px;
    */
    z-index: 10; /* Asegura que esté por encima del swiper */
}

.product_fav_d img{
    width: 20px;
    cursor: pointer;
}

.product_fav {
    position: absolute;
    top: 10px; /* Ajusta la posición desde arriba */
    right: 10px; /* Ajusta la posición desde la derecha */
    /*
    background: rgba(0, 0, 0, 0.5); 
    color: white;
    padding: 10px;
    border-radius: 8px;
    */
    z-index: 10; /* Asegura que esté por encima del swiper */
}

.product_fav img{
    width: 20px;
    cursor: pointer;
}

.product_fav img{
    width: 20px;
    cursor: pointer;
}

.product-label-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product_label_oa {
    display: block;
    width: auto !important;
    text-align: left;
    margin: 10px 0;
}

.product_label_oa div {
    font-size: 10px;
    font-weight: 600; 
    background-color: #fff;
    border-radius: 4px;
    padding: 1px 15px;
}

.product_title {
    font-size: 14px;
    font-weight: 600; 
    text-align: left;
    white-space: nowrap;  
    overflow: hidden;  
    text-overflow: ellipsis;  
    display: block;
    margin-bottom: 8px;
}

.product_size {
    font-size: 12px;
    font-weight: 600; 
    text-align: left;    
    color: #666;
    margin-bottom: 2px;
}

.product_size span {
    font-weight: 400; 
}

.product_send {
    display: flex;
    align-items: center; /* Centra verticalmente */
    width: 100%;
    margin-bottom: 2px; 
}

.product_send img{
    width: 20px;
}

.product_send .send_title {
    margin-top: -2px; 
}

.product_send .send_title span{
    width: 20px;
    font-size: 12px;
    font-weight: 600; 
    text-align: left;    
    color: #666;
    margin-left: 5px;
}

.product_cp {
    font-size: 12px;
    font-weight: 400; 
    text-align: left;    
    color: #666;
}



/* Popup imágenes */
.popup-fullimg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000000;
}

.popup-fullimg img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.popup-fullimg.show {
    opacity: 1;
    visibility: visible;
}

/* Botón para cerrar */
.close-popup {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Flechas de navegación */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 5px;
    user-select: none;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}


/********************************* login popup *********************************/

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

/* Contenido del popup */
.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    position: relative;
    text-align: center;
}

/* Botón de cerrar */
.popup .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
}

/* Estilo del formulario */
#loginForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#loginForm input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

#loginForm button {
    background-color: #007bff;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#loginForm button:hover {
    background-color: #0056b3;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--w-400);
}

.login-box {
    width: var(--w-100pct);
    max-width: var(--w-100pct);
    background: var(--white);
    padding: var(--p-20);
    /*border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);*/
    text-align: left;
}

.login-logo {
    display:block;
    text-align: center;
    margin-bottom: var(--m-10);
}

.login-logo a {color:#000; font-weight:600; font-size:20px; text-decoration:none;}

.login-logo a img {
    width: 50px;
    height: auto;
}


.welcome-text {
    font-size: var(--fs-20);
    font-weight: var(--fw-500);
    text-align: left;
    margin-bottom: var(--m-10);
}

.sub-text, .register-text {
    color: var(--gray-2);
    text-align: left;
    font-size: var(--fs-14);
    margin-bottom: var(--m-20);
}

/*
.register-text {
    margin-bottom: var(--m-30);
}*/

.sub-text a, .register-text a {
    color: var(--blue-asnadi);
    text-decoration: none;
}

.sub-text a:hover, .register-text a:hover {
    text-decoration: underline;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.label-container {
    display: flex;
    justify-content: space-between; /* Espacio entre las etiquetas */
    align-items: center; /* Alinea verticalmente las etiquetas */
}

.label-left {
    font-size: var(--fs-12);
    color: var(--gray-3);
    margin-right: auto; /* Asegura que la etiqueta de la izquierda se alinee a la izquierda */
}

.error-label-right {
    margin-left: auto; /* Asegura que la etiqueta de la derecha se alinee a la derecha */
    color: var(--primary);
    font-size: var(--fs-12);
}

input[type="text"], input[type="password"] {
    width: var(--w-100pct);
    padding: var(--p-7);
    font-size: var(--fs-16);
    font-weight: var(--fw-300);
    color: var(--gray-3);
    border: 1px solid var(--gray-4);
    border-radius: var(--br-4);
    transition: border 0.3s;
}

input[type="text"]:hover, input[type="password"]:hover {
    border: 1px solid var(--primary);
}

/* Modificación para el focus */
input[type="text"]:focus, input[type="password"]:focus {
    border: 1px solid var(--primary);
    outline: none;
}

#nombre, #email, #reg-email {
   margin-bottom: var(--m-20);
}

#password {
   margin-bottom: var(--m-30);
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password, .toggle-reg-password {
    position: absolute;
    right: var(--m-10);
    top: var(--m-7);
    cursor: pointer;
    font-size: var(--fs-18); 
    color: var(--blue-asnadi); 
}

.toggle-password img, .toggle-reg-password img {
    width:16px;
    height:16px;
    margin-top:4px;
}

.login-button {
    width: 100%;
    padding: var(--p-15);
    background-color: var(--blue-asnadi);
    color: var(--white);
    border: none;
    border-radius: var(--br-30);
    font-size: var(--fs-16);
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: var(--blue-asnadi-hover);
}

.forgot-password {
    font-size: var(--fs-14);
    text-align: left;
    margin-top: var(--m-5);
    margin-bottom: var(--m-20);
}

.forgot-password a {
    color: var(--gray-2);
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Estilos para el texto debajo del input de contraseña */
.password-hint {
    font-size: var(--fs-12);
    color: var(--gray-2); 
    margin-top: var(--m-3);
}

/* Estilos para el texto debajo del botón */
.terms-text {
    font-size: var(--fs-12);
    color: var(--gray-2);
    text-align: left;
    margin-top: var(--m-5);
}

/* Estilos para los enlaces en el texto de términos y condiciones */
.terms-text a {
    color: var(--gray-2);
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

.login-err {
    display:visible;
    min-height: var(--mh-15);   
    font-size: var(--fs-12);
    color: var(--red);
    text-align: left;
    margin-top: var(--m-3);    
    margin-bottom: var(--m-15);    
}

/* Contenedor padre para alinear el error y el checkbox */
.login-footer {
    display: flex;
    align-items: center; /* Alinea verticalmente los elementos */
    justify-content: space-between; /* Espacia los elementos a izquierda y derecha */
    /*margin-top: var(--m-15);*/ /* Separación superior */
    margin-bottom: var(--m-30);
}

/* Estilo para el contenedor del checkbox "Recordar usuario" */
.remember-me-container {
    display: flex;
    align-items: center; /* Alinea verticalmente el checkbox y el texto */
    text-align: left;
}

.remember-me-container input[type="checkbox"] {
    margin-right: var(--m-10); /* Separación entre el checkbox y el texto */
}

.remember-me-container label {
    font-size: var(--fs-14);
    color: var(--gray-3);
    cursor: pointer;
}

/* Estilo para el mensaje de error */
.error {
    font-size: var(--fs-12);
    color: var(--red);
}

#doRegister {
   margin-top: var(--m-30);
}

.register-message {
    text-align: center;
    padding: 20px;
    font-size: 16px;
}

.success-message {
    color: green;
    font-weight: bold;
}

.error-message {
    color: red;
    font-weight: bold;
}


/********************************* login popup *********************************/

/********************************* offer popup *********************************/
.popupOffer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

/* Contenido del popup */
.popupOffer-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    position: relative;
    text-align: center;
}

/* Botón de cerrar */
.popupOffer .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
}

.offer-info {
    display: flex;
    align-items: center; /* Centra verticalmente los elementos */
    gap: 15px; /* Espaciado entre la imagen y el texto */
    width: 100%; /* Ocupar todo el ancho disponible */
    margin-top: 20px;
}

.offer-info-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0; /* Evita que el div de la imagen cambie de tamaño */
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-info-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen sin deformarla */
    border-radius: 5px; /* Opcional: Bordes redondeados */
}

.offer-info-txt {
    flex-grow: 1; /* Ocupar el resto del espacio */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Alinea el texto a la izquierda */
}

.offer-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary, #333); /* Usa tu variable o color deseado */
}

.offer-product {
    font-size: 14px;
    color: #555;
}

.offer-amount {
    width: 100%; /* Ocupar todo el ancho disponible */
    font-size: 16px;
    font-weight: 500;
    color: #333;
    padding: 0px !important;
    margin-top: 20px;
    border: 0px !important;
    border-bottom: 1px solid var(--secondary) !important;
    outline: none; /* Evita el borde azul al hacer clic */
    text-align: left; /* Centrar el texto */
}

.offer-amount::placeholder {
    color: #999;
    font-weight: 300;
}

.offer-sent {
    display: block !important;  
    padding-top: 52px !important; 
    color: green;
}

.do-oferta {
    background-color: var(--primary);
    color: var(--white);
    margin-top: 30px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.do-oferta:hover {
    background-color: var(--primary-hover);
}

.do-oferta:disabled, .do-oferta[disabled] {
    cursor: default !important;
}

/********************************* offer popup *********************************/

/********************************* mssg popup *********************************/

.popupMsg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

/* Contenido del popup */
.popupMsg-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    position: relative;
    text-align: center;
}

/* Botón de cerrar */
.popupMsg .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
}

.msg-info {
    display: flex;
    align-items: center; /* Centra verticalmente los elementos */
    gap: 15px; /* Espaciado entre la imagen y el texto */
    width: 100%; /* Ocupar todo el ancho disponible */
    margin-top: 20px;
}

.msg-info-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0; /* Evita que el div de la imagen cambie de tamaño */
    display: flex;
    align-items: center;
    justify-content: center;
}

.msg-info-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen sin deformarla */
    border-radius: 5px; /* Opcional: Bordes redondeados */
}

.msg-info-txt {
    flex-grow: 1; /* Ocupar el resto del espacio */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Alinea el texto a la izquierda */
}

.msg-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary, #333); /* Usa tu variable o color deseado */
}

.msg-product {
    font-size: 14px;
    color: #555;
}

.msg-txt {
    width: 100%; /* Ocupar todo el ancho disponible */
    font-size: 14px;
    font-weight: 400;
    color: #333;
    padding: 5px !important;
    margin-top: 20px;
    border: 1px solid var(--secondary);
    border-radius: 4px;
    outline: none; /* Evita el borde azul al hacer clic */
    text-align: left; /* Centrar el texto */
    resize: none;
}

.msg-txt::placeholder {
    color: #999;
    font-weight: 300;
}

.msg-sent {
    display: block !important;  
    padding-top: 43px !important; 
    color: green;
}

.do-msg {
    background-color: var(--primary);
    color: var(--white);
    margin-top: 20px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.do-msg:hover {
    background-color: var(--primary-hover);
}

.do-msg:disabled, .do-msg[disabled] {
    cursor: default !important;
}

/********************************* mssg popup *********************************/

/********************************* reporting popup *********************************/

.popupReporting {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

/* Contenido del popup */
.popupReporting-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    position: relative;
    text-align: center;
}

/* Botón de cerrar */
.popupReporting .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
}

.reporting-info {
    display: flex;
    align-items: center; /* Centra verticalmente los elementos */
    gap: 15px; /* Espaciado entre la imagen y el texto */
    width: 100%; /* Ocupar todo el ancho disponible */
    margin-top: 20px;
}

.reporting-info-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0; /* Evita que el div de la imagen cambie de tamaño */
    display: flex;
    align-items: center;
    justify-content: center;
}

.reporting-info-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen sin deformarla */
    border-radius: 5px; /* Opcional: Bordes redondeados */
}

.reporting-info-txt {
    flex-grow: 1; /* Ocupar el resto del espacio */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Alinea el texto a la izquierda */
}

.reporting-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary, #333); /* Usa tu variable o color deseado */
}

.reporting-product {
    font-size: 14px;
    color: #555;
}

.reporting-titulo-tipo {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 20px;
    
}

.reporting-tipo {
    background-color: var(--white);
    border:1px solid var(--gray-2);
    color: var(--black);
    padding: 5px 10px;
    margin-top: 10px;
    border-radius: 35px;
    transition: background-color 0.3s ease;
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;    
}

.reporting-tipo:hover, .reporting-tipo.selected {
    background-color: var(--primary);
    border:1px solid var(--primary);
    color: var(--white);
    padding: 5px 10px;
    margin-top: 10px;
    border-radius: 35px;
    transition: background-color 0.3s ease;
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;        
}

.reporting-sent {
    display: block !important;  
    padding-top: 43px !important; 
    color: green;
}

.do-reporting {
    background-color: var(--primary);
    color: var(--white);
    margin-top: 30px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.do-reporting:hover {
    background-color: var(--primary-hover);
}

.do-reporting:disabled, .do-msg[disabled] {
    cursor: default !important;
}

.publish-btn {
    display: inline-flex; /* Se ajusta al contenido */
    align-items: center; /* Centrar verticalmente */
    justify-content: center; /* Centrar horizontalmente */
    gap: 10px; /* Espacio entre la imagen y el texto */
    background-color: var(--primary); /* Color del botón */
    color: white; /* Color del texto */
    border-radius: 25px; /* Bordes redondeados */
    padding: 5px 10px; /* Espaciado interno */
    cursor: pointer; /* Cursor de botón */
    transition: background 0.3s ease; /* Efecto suave en hover */
    width: auto; /* Ajuste automático al contenido */
    text-decoration: none !important;
}

.publish-btn:hover {
    background-color: var(--primary-hover); /* Cambio de color en hover */
}

.publish-btn img {
    width: 20px;
    height: 20px;
}

.publish-txt {
    font-size: 14px;
    font-weight: 300;
    text-decoration: none;
}

/********************************* reporting popup *********************************/


@media (max-width: 768px) {

    main {
        flex-direction:column;
        padding:0 20px;
        margin-bottom: 100px;
    }
    
    .back {
        text-align: left;
        padding: 0px 20px 0 20px;        
    }    
    
    .info-top {
        display: none;
    }
    
    .info-top-m {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Esto evita que los hijos se expandan */
        gap: 10px !important;
        padding: 20px;
        order: 5;
    }    
    
    .wrapper {
        flex-direction: column;
        width: 100%;
        gap: 20px;
        border: 0px solid red;
    }   
    
    .container-images-location {
        display: none;
    }
    

    .container-images-location-m {
        display: flex;
        flex-direction: column;
        width: 100%; 
        order: 1;
        border:0px solid red;
    }   
    
    .container-buttons {
        display: none !important;
    }
    
    .container-buttons-m {
        display: flex !important;
        flex-direction: column;    
        order: 4;
    }        

    .container-info {
        display: flex;
        flex-direction: column;
        width: 100%;      
        gap: 20px;
        order: 2;
        border:0px solid red;
    } 
    
    .container-location {
        display: none !important;
    }
    
    .container-location-m {
        display: flex !important;
        flex-direction: column;    
        padding: 0px 20px 10px 20px !important;
        order: 3;
    }    
    
    .user-container-m {
        padding: 0px !important;
        margin: 10px 0px !important;
    }
    
    .info-row-m {
        display: flex;
        align-items: center; /* Centrado vertical */
    }   
    
    .product-grid {grid-template-columns:repeat(2, 1fr);}    
    
    .popup {
        padding: 20px;
    }
    
    /* Contenido del popup */
    .popup-content {
        width: 100%;
    }    
    
    .popupOffer {
        padding: 20px;
    }
    
    /* Contenido del popup */
    .popupOffer-content {
        width: 100%;
    }
    
    .popupMsg {
        padding: 20px;
    }
    
    /* Contenido del popup */
    .popupMsg-content {
        width: 100%;
    }    
    
    .popupReporting {
        padding: 20px;
    }
    
    /* Contenido del popup */
    .popupReporting-content {
        width: 100%;
    }

}

@media (max-width: 620px) {
    .product-grid {grid-template-columns:1fr;}
}
