.containerresultmodelos {
    max-width: 90%;
    margin: 40px auto;
    color: #5c5757;
    background: #FAFAFA;
}
.modelos {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.modelo-box {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 0px;
    flex-basis: calc(24% - 16px);
  position: relative;
  font-family: "Oswald", sans-serif;
  background: #FFF;
}
.modelo {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9); 
    z-index: 10; 
    padding: 20px;
    box-sizing: border-box;
}
.modelo h3 {
  text-align: left;
  color: #5c5757;
  font-size: 2rem;
  margin: 0px;
}
.modelo-box .modelo h3 {
  white-space: normal;
  word-break: break-word;
}
.modelo h3 {
    margin-top: 0;
}
.modelo-contenido {
    display: block;
    gap: 1rem;
    flex: 1;
    padding: 20px;
    align-self: center;
    padding-top: 170px;
}
.modelo-img {
    flex-shrink: 0;
}
.modelo-img img {
    max-width: 275px;
    height: auto;
}
.modelo-detalle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-height: 160px;
}
.modelo-detalles {
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9); 
    z-index: 10; 
     box-sizing: border-box;
}
.precio-boton {
  //display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 0px;
}
.precio {
    margin: 0 0 4px 0; 
    text-align: right;
}
.boton-detalles {
  background-color: #00bfba;
  color: white;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  display: block;
  padding: 20px;
  margin-top: 15px;
  text-decoration: none; 
  text-align: center;
  border: none;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.boton-detalles:hover {
    background-color: #009e9a; 
}
.modelo-marca {
    font-size: 0.9em; 
    color: #666; 
    margin-bottom: 5px; 
    font-weight: bold; 
    text-transform: uppercase; 
}
.modelo-detalle .descripcion {
        text-align: justify;
        margin-top: 0px;
        margin-bottom: 0px;
        padding-bottom: 20px;
    }
.aspect-ratio-box {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

@media (max-width: 767px) {
    .containerresultmodelos {
    max-width: 100%;
    padding: 0 10px 0 10px;
    }
    .modelos {
    display: block;
    }
    .modelo-box {
        align-items: center;
        text-align: center;
    }
    .modelo h3 {
    margin-top: 0;
    font-size: 2.2em;
    color: #5c5757;
    margin-bottom: 10px;
    text-align: center;
    padding-bottom: 15px;
    }
    .modelo-contenido {
        flex-direction: column; /* !!! Key change: Stack image and description vertically !!! */
        align-items: center; /* Center image and description horizontally when stacked */
        text-align: center; /* Center text content within .modelo-contenido */
    }
    .modelo-img {
        max-width: 100%; /* Allow image to use full width of content area */
    }
    .modelo-img img {
        max-width: 250px; /* Adjust this to your desired image size on mobile */
        /* You already have this in your media query, good! */
    }
    .modelo-detalle {
        width: 100%; /* Ensure detalle takes full width for centering text */
    }
    .precio-boton {
        text-align: center; /* Center the price and button */
    }
}   