 @import url('styles.css');

/* Título principal */
.descripcion-rec h1 {
    text-align: center;
    margin: 40px 0 20px;
    font-size: 30px;
    color: #333;
}

/* Contenedor de los proyectos */
.contenedor-proyectos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Tarjetas individuales de proyecto */
.proyecto {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ebebeb;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 1000px;
    text-align: left;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 20px;
    gap: 20px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.proyecto:nth-child(even) {
    flex-direction: row-reverse;
}

/* Contenedor de texto */
.proyecto .texto {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Título */
.proyecto h2 {
    font-size: 23px;
    margin: 0 0 10px;
    color: #444;
}

/* Descripción */
.proyecto p {
    font-size: 16px;
    color: #555;
}

/* Contenedor de la imagen */
.proyecto img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    margin-left: 10px;
    margin-right: 10px;
}

.proyecto:first-child img {
    margin-left: 10px;
}

.proyecto:nth-child(even) img {
    margin-right: 10px;
}

.proyecto-contenido {
    flex: 1;
}

.proyecto h2 {
    font-size: 24px;
    margin: 0 0 10px;
    color: #444;
    text-align: center;
}

.proyecto p {
    font-size: 16px;
    color: #555;
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    background-color: #111;
    color: white;
    padding: 20px;
    margin-top: 40px;
    font-size: 20px;
}

