*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: fantasy;
    font-style: revert;
}

body {
    background-color: rgb(255, 255, 255);
    font-family: Arial, Helvetica, sans-serif;
}
h1{
    color: beige;
}
header{
    background-color: rgb(0, 0, 0);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px;
}

nav{
    display: flex;
    gap: 20px;
    
}

nav a{
    text-decoration: none;
    color: rgb(255, 255, 255);
    display: flex;
}

nav:hover{
    color: brown;
}

ul{
    display: flex;
}

a {
    align-items: center;
    padding: 10px;
} 

@media (max-width: 430px){
    header{
        flex-direction: column;
    }
    nav{
        margin-top: 15px;
        align-items: center;
    }
}

a img{
    width: 30px;
    margin: 0;
}

img {
    padding: 10px 0;
}

span {
    background-image: url(img/pexels-fox-58267-4418657.jpg);
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    display: list-item;
    text-align: center;
    width: auto;
    align-items: center;
    font-size: 20px;
    color: dimgrey;
}

span h2{
    padding: 30px;
    font-family: fantasy;
    font-style: revert;
    color: rgba(15, 12, 8, 0.507);
}

.ADOPTA{
    color: rgb(39, 39, 35);
    border: 2px solid rgb(94, 90, 97);
}
   /*ont-weight: bold; #para subrayar */
    /*    -webkit-text-stroke: 1px black; # para que la fuenta sea contorneada*/
 
aside{
    width: auto;
    display: flex;
}

aside h3{
    background-color: rgba(178, 185, 172, 0.719);
    border-radius: 40px;
}

.images{
    width: 60%;
    
}


.images img{
    width: 40%;
    height: auto;
    object-fit: cover;
    border-radius: 1vw;
    border-radius: 40px;
    margin-left: 2%;
    padding: 0;
}

.image1{
    width: 60vw;
    margin-left: 100px;


}

.images2 {
    display: flex;
    gap: 2%;
    margin-top: 2%;

}

.images2 img {
    width: 50%;
    height: 30vh;
}

main{
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px;
}

aside {
    flex-direction: column;
    gap: 20px;
}

/* 1. Reset y Estilo Global (Se mantiene tu tipografía original) */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: fantasy;
    font-style: revert;
}

body {
    background-color: rgb(255, 255, 255);
    font-family: Arial, Helvetica, sans-serif;
}

h1 {
    color: beige;
}

/* 2. Header y Navegación (Corregido para alineación limpia) */
header {
    background-color: rgb(0, 0, 0);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px;
}

.nav-list {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-list a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

/* Hover aplicado correctamente al texto del enlace */
.nav-list a:hover {
    color: brown;
}

.nav-list img {
    width: 30px;
    margin: 0;
}

/* 3. Banner Principal (Cambiado de 'span' a 'section' para estabilidad) */
.hero-banner {
    background-image: url(img/pexels-fox-58267-4418657.jpg);
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.ADOPTA {
    color: rgb(39, 39, 35);
    border: 2px solid rgb(0, 0, 0);
    background-color: rgba(255, 255, 255, 0.4); /* Mantiene tu colorimetría */
    padding: 30px;
    max-width: 800px;
}

.ADOPTA h2 {
    font-family: fantasy;
    font-style: revert;
    color: rgba(0, 0, 0, 0.966);
    font-size: 32px;
    margin-bottom: 10px;
}


/* 4. Estructura del Main y Bloques */
main {
    display: flex;
    flex-direction: column; /* Apila los bloques uno abajo del otro */
    gap: 50px; /* Espacio entre el bloque 1 y el bloque 2 */
    padding: 40px 20px;
}

.bloque-proyecto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.columna-texto {
    flex: 0 0 40%; /* No crece, no se encoge, ocupa exactamente el 40% */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 20px;
}

/* 5. Galería de Imágenes (60%) */
.images-container {
    flex: 0 0 60%; /* Ocupa el 60% restante */
    display: grid;
    flex-direction: column;
    gap: 20px;
}

/* Estilos de imágenes se mantienen igual a tu código original */
.image-main-box img {
    width: 30%;
    height: auto;
    object-fit: cover;
    border-radius: 40px;
}

.images-grid {
    display: flex;
    gap: 20px;
}

.images-grid img {
    width: 50%;
    height: 30vh;
    object-fit: cover;
    border-radius: 40px;
}

/* 6. Ajuste para Celulares */
@media (max-width: 768px) {
    .bloque-proyecto {
        flex-direction: column; /* En móvil, el texto arriba y fotos abajo */
    }
    
    .columna-texto, .images-container {
        flex: 0 0 100%; /* En móvil ocupan todo el ancho */
    }

    .images-grid {
        flex-direction: column;
    }

    .images-grid img {
        width: 100%;
    }
}

.conteneder_footer {
    display: flex;
    flex-direction: row;
    gap: 100px;
    align-items: center;
    margin: 0 auto;
    color: rgb(255, 255, 255);
}   

li{
    text-decoration: none;
    list-style: none;
    margin: 10px;
}

footer {
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: rgb(0, 0, 0);
    
}

a {
    color: rgb(255, 255, 255);
}