body {
  min-height: 100vh;
  margin: 0;
  background-color: #000;
  background-image: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(150, 145, 146, 0.25) 0%,
    rgba(0, 0, 0, 0.1) 70%,
    rgba(0, 0, 0, 0.5) 100%
  );
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
}

header{
    height: 80px;
    align-items: center;
    justify-content: center;
    width: 100%;
    display: flex;
}

ul{
    display: flex;
    gap: 200px;
}
li{
    list-style: none;
    font-size: 25px;
    font-family: fantasy;
}
a{
    text-decoration: none;
    color: rgb(201, 198, 198);
}
a:hover{
    color: white;
}

h1{
    color: rgb(201, 198, 198);
    font-family:serif;
    text-align: center;
    margin-top: 80px;
    font-style: italic;
    /*para hacer el fecto de aparición con scroll*/
    opacity: 0;
    transform: translateY(20px);
    animation: aparecer 2s ease-out forwards;
}
@keyframes aparecer { /*para que el h1 tenga su efecto scroll al iniciar la pagina*/
  to {
    opacity: 1;
    transform: translateY(0);
  }

}
h1:hover{
    color:white;
}
.contenedor{
    display: flex;
    justify-content: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
    /*para hacer el fecto de aparición con scroll*/
    opacity: 0;
    transform: translateY(20px);
    animation: aparecer 2s ease-out forwards;
}
@keyframes aparecer { /* para que las imagenes salgan con su efecto scroll al iniciar la pagina */
  to {
    opacity: 1;
    transform: translateY(0);
  }

}

.mustang1{
    width: 320px;
    height: 300px;
    background-color: rgb(0, 0, 0);
    border: solid rgba(167, 167, 167, 0.603);
    border-radius: 10px;
    transition: trasnform 0.3s ease, box-shadow 0.3s ease;
    
}
.mustang2{
    width: 340px;
    height: 300px;
    background-color: rgba(0, 0, 0, 0.993);
    border: solid rgba(167, 167, 167, 0.603);
    border-radius: 10px;
    transition: trasnform 0.3s ease, box-shadow 0.3s ease;
}
.mustang3{
    width: 340px;
    height: 300px;
    background-color: rgb(0, 0, 0);
    border: solid rgba(167, 167, 167, 0.603);
    border-radius: 10px;
    transition: trasnform 0.3s ease, box-shadow 0.3s ease;
}
.mustang1:hover, .mustang2:hover, .mustang3:hover{
  transform: translateY(-10px); /* se levanta 10px hacia arriba */
  box-shadow:  0 10px 20px rgba(255, 255, 255, 0.4); /* sombra más fuerte */
}
img{
    width: 340px;
    height: 300px;
}
.imgmustang1{
    width: 320px;
    height: 300px;
}
.text{
    background-color: rgba(104, 101, 101, 0.753);
    position: absolute;
    top: 0;
    left: 0;
    text-align: justify;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.mustang1:hover .text, .mustang2:hover .text, .mustang3:hover .text{
  opacity: 1;               /* aparece */
  visibility: visible;
}

h3{
    text-align: center;
    font-family: serif;
    color: rgb(15, 15, 15);
    font-size: 25px;
    font-weight: bold;
 }
 p{
    font-size: 20px;
    font-family: serif;
    color: black;
 }


/*--------------------------------*/

/* ============================================ */
/* MEDIA QUERIES RESPONSIVE - PÁGINA GALERÍA */
/* ============================================ */

/* Tablets (768px - 1024px) */
@media screen and (max-width: 1024px) {
    header {
        height: 70px;
    }
    
    ul {
        gap: 100px;
    }
    
    li {
        font-size: 22px;
    }
    
    h1 {
        font-size: 32px;
        margin-top: 60px;
    }
    
    .contenedor {
        flex-wrap: wrap;
        gap: 30px;
        padding: 20px;
    }
    
    .mustang1, .mustang2, .mustang3 {
        width: 300px;
        height: 280px;
    }
    
    img, .imgmustang1 {
        width: 300px;
        height: 280px;
    }
    
    h3 {
        font-size: 22px;
    }
    
    p {
        font-size: 18px;
        padding: 0 10px;
    }
}

/* Móviles (hasta 768px) */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    header {
        height: auto;
        padding: 15px 0;
    }
    
    ul {
        gap: 20px;
        padding: 0;
        margin: 0;
        justify-content: center;
    }
    
    li {
        font-size: 16px;
    }
    
    h1 {
        font-size: 28px;
        margin-top: 40px;
        padding: 0 20px;
    }
    
    .contenedor {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 20px 10px;
        margin-bottom: 30px;
    }
    
    .mustang1, .mustang2, .mustang3 {
        width: 90%;
        max-width: 340px;
        height: auto;
        position: relative;
        overflow: visible;
    }
    
    img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        display: block;
    }
    
    .imgmustang1 {
        width: 100%;
        height: auto;
    }
    
    .text {
        position: relative;
        opacity: 1;
        visibility: visible;
        height: auto;
        padding: 15px;
        border-radius: 0 0 10px 10px;
        margin-top: 0;
        background-color: rgba(104, 101, 101, 0.9);
    }
    
    /* Hacer que el texto siempre esté visible en móvil */
    .mustang1 .text,
    .mustang2 .text,
    .mustang3 .text {
        opacity: 1;
        visibility: visible;
    }
    
    h3 {
        font-size: 20px;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    p {
        font-size: 16px;
        padding: 0 5px;
        margin: 0;
    }
}

/* Móviles pequeños (hasta 480px) */
@media screen and (max-width: 480px) {
    ul {
        gap: 15px;
    }
    
    li {
        font-size: 14px;
    }
    
    h1 {
        font-size: 24px;
        margin-top: 30px;
    }
    
    .contenedor {
        gap: 25px;
        padding: 15px 5px;
    }
    
    .mustang1, .mustang2, .mustang3 {
        width: 95%;
        max-width: 320px;
    }
    
    .text {
        padding: 12px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    p {
        font-size: 14px;
    }
}

/* Tablets en landscape */
@media screen and (max-width: 1024px) and (orientation: landscape) {
    .contenedor {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .mustang1, .mustang2, .mustang3 {
        width: 280px;
    }
}

/* Ajuste especial: En móviles, las cards se apilan verticalmente */
@media screen and (max-width: 768px) {
    .mustang1, .mustang2, .mustang3 {
        display: flex;
        flex-direction: column;
    }
    
    /* El hover ya no aplica transformación en móvil */
    .mustang1:hover, .mustang2:hover, .mustang3:hover {
        transform: none;
        box-shadow: 0 10px 20px rgba(255, 255, 255, 0.4);
    }
}

