/* Estilos generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    color: hsl(0, 0%, 0%);
    background-color:rgba(238, 230, 230, 0.634);
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
}

ul, ol {
    list-style: none;
    padding: 0;
}

p, li {
    margin-bottom: 0.15em;
}

a {
    text-decoration: none;
    text-align: center;
    color: #ffffff;
}

h1, 
h2, 
h3, 
h4 {
    margin-bottom: 1em;
    color: hsl(0 0% 15%);
}


.contenedora {
    max-width: 65rem;
    margin: 0 auto;
    padding: 1rem;
}



/* Estilos para la navegación */
.navegacion {
    display: flex;
    justify-content: space-between;
    background-color: #333;
    padding: 1.5rem;
    align-items: flex-start;
}

.navegacion a {
    text-decoration: none;
    margin: 0 10px;
}

.navegacion ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navegacion li {
    margin: 0 10px;
}

.navegacion img#logo {
    margin-left: 5em;
}

header nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

header nav ul li {
    min-width: 4em;
    margin: .45em 0 .45em .45em;
}

header nav ul li a {
    border-radius: .25em;
    color: white;
    padding: .25em .5em;
    text-align: center;
    display: block;
    text-transform: uppercase;
    font-weight: bold;
}

header nav ul li a:hover {
    background-color:#d34017;
    color: white;
}

header .navegacion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: justify;
    
}



.peticion-link {
    color: #FF5722; /* Color específico para la petición */
    font-weight: bold;
}


@media (max-width: 768px) {
    header .contenedora {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    header nav ul li {
        margin: 0.5em 0;
    }

    header nav ul li a {
        padding: 0.5em 1em;
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 480px) {
    header .contenedora {
        padding: 1rem;
    }

    header nav ul li a {
        padding: 0.25em 0.5em;
    }
}


@media (max-width: 768px) {
    header .contenedora {
        flex-wrap: nowrap;
        overflow-x: auto; 
    }

    header nav ul {
        display: flex;
        flex-wrap: nowrap; 
        justify-content: flex-start;
    }

    header nav ul li {
        margin: 0 0.5em; 
    }

    header nav ul li a {
        padding: 0.5em 1em;
    }
}

@media (max-width: 480px) {
    header .contenedora {
        padding: 0.5rem; 
    }

    header nav ul li {
        margin: 0 0.25em; 
    }

    header nav ul li a {
        padding: 0.25em 0.5em; 
    }
}




/* PORTADA-----------------------------------*/

.background-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url(../imagenes/portada.jpeg);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-container{
    object-fit: cover;
}


.background-container h1{
    text-transform: uppercase;
    font-weight: black;
    font-size:200%;
    margin-bottom: 0.25em;
}


.text-overlay {
    background-color: #ffffffd8;
    padding: 2rem;
    position: absolute;
    color:  #000000;
    text-align: center;
    border-radius: 0.5em;
    font-size: large;
    margin-bottom: 5em;
}

.btn-peticion {
    background-color: #d34017;
    color: white;
    border: none;
    padding: 0.6em;
    font-weight: 500;
    font-size: large;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0.5em;
    margin-top: 10.5em;
}

/* NOTICIAS ---------------------- */


.header-mov{
    background-color: #000000;
    color: #fff;
    text-transform: uppercase;
    font-size: small;
    padding: 0.25em;
}

.noticias_articulos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2rem;
    
}

.noticias_articulos article {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    flex: 1 1 auto;
    text-wrap: wrap;
    border: 1px solid #ccc;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 5px;
}

.noticias_articulos h3 {
    margin-top: 0;
}

.noticias_articulos img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.contenedora.noticias h2 {
    grid-column: span 2;
    text-align: center;
    background-color: #d34017;
    color: aliceblue;
}

.title {
    grid-column: span 2;
    text-align: center;
    background-color: #d34017;
    padding: 0.50em;
    color: aliceblue;
    font-size: x-large;
    text-transform: uppercase;
}

.btn-mas {
    background-color: #d34017;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
}

div.boton {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}
div.boton button{
    display: flex;
    background-color: #d34017;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;

}

--------

/*Destacados (NOTICIAS)*/


.info-destacada{
    background-color: #e0f7fa;
}
  
  
.destacados{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18em, 1fr));
    gap: 1rem;
    color: white;
    padding-bottom: 4em;
}
  

.destacados figure { 
    aspect-ratio: 1; 
    position: relative; 
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 5px 5px 10px hsla(0, 0%, 0%, 0.593);
} 
  
.destacados img { 
    object-fit: cover; 
    object-position: left center; 
    width: 100%; 
    height: 100%; 
} 
  
.destacados figcaption {
    position: relative;
    background-color: #333;
    padding: .5rem;
    position: absolute;
    inset: 0;
    transform: translateY(calc(100% - 3em));
    transition: all .6s ease;
    transition: transform 2s;
} 
  
.destacados figure:hover figcaption { 
    background-color: #d34017bb;
    transition: all .3s ease; 
    transform: translateY(0); 
    display: grid; 
    text-align: center; 
    place-items: center; 
    place-content: center; 
    padding-inline: 1em; 
} 
  
.destacados figure:hover img {
    transition: .5s;
}
  
.destacados figcaption h4 {
    margin: 0;
    padding: 1em;
    color: white;
    position: absolute;
    top: 0;
    width: 100%;
    text-align: center;
    margin-left: -8px;
    background-color: rgba(0, 0, 0, 0.5); 
  
}
  
.destacados figcaption span {
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    color: white;
}
  
.destacados figure:hover figcaption span {
    opacity: 1;
    transform: translateX(0);
}
  
.destacados a {
    color: white;
}


/* FORO ---------------------- */

.contenedora-foro .title {
    grid-column: span 2;
    text-align: center;
    background-color: #d34017;
    color: aliceblue;
    font-size: x-large;
    text-transform: uppercase;
}

.todosusuarios img{
    max-width: 9em; 
    height: auto; 
    border-radius: 50rem;
    border: 4px solid #d34017;
}


.todosusuarios {
    display: block;
    padding-inline-start: 2rem;
    padding: 1rem;
    margin-block: 1rem;
    max-width: 65%;
}

.usuario {
    background-color: rgb(228, 228, 228);
    color: rgb(24, 24, 24);
    padding: 1rem;
    padding-left: 1rem;
    margin: 1rem 15rem 1rem 1rem;
    border-radius: 0.5em;
}

.todosusuarios input {
    margin-top: 1rem;
}

.usuario {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1em;
    align-items: center;
    justify-items: center;

}
  
.publicar{
    background-color:#d34017;
    color: white;
    border: none;
    padding: 4px 10px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

.boton-comentar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
}

.boton-comentar input{
    max-width: 500px;
    padding: 2rem;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}



/* Responsive Foro */
@media (max-width: 768px) {
    .contenedora-foro .title {
        font-size: large;
    }

    .todosusuarios {
        max-width: 100%;
        padding-inline-start: 1rem;
    }

    .usuario {
        margin: 1rem 1rem 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .contenedora-foro .title {
        font-size: medium;
    }

    .todosusuarios {
        padding-inline-start: 0.5rem;
    }

    .usuario {
        margin: 1rem 0.5rem 1rem 0.5rem;
        padding: 0.5rem;
    }

    .publicar {
        padding: 2px 5px;
        font-size: 0.875rem;
    }

    .boton-comentar input {
        padding: 1rem;
        font-size: 14px;
    }
}



/*FOOTER */

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 0.25rem;
}

.Newsletter {
    max-width: 400px;
    margin: 0 auto;
    
}

.Newsletter input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    border: none;
}

.Newsletter_botton {
    background-color:#d34017;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

.Newsletter p{
    margin-top: 1em

}



/* FIRMA ---------------------- */

.contenedora-peticion{
    display: flex; 
    align-items: self-start;
    max-width: 100%;
}


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

.cuadrado-firma {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

.progress-bar {
    background-color: #e0e0e0;
    border-radius: 5px;
    height: 10px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.progress {
    background-color:#d34017;
    height: 100%;
    border-radius: 5px;
}

.signatures {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.current-signatures {
    font-size: 24px;
    color:  #d34017;
}

.goal-signatures {
    font-size: 24px;
    color: #b0b0b0;
}

.support-button {
    background-color: #e0e0e0;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    margin-bottom: 20px;
    display: block;
    width: 100%;
    font-weight: bold;
}


.petition-form input[type="text"],
.petition-form input[type="email"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}


.submit-button {
    background-color: #d34017;
    border: none;
    border-radius: 5px;
    padding: 10px;
    color: #fff;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
}

/* confirmación de petición ---------------------- */

.contenedora-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    width: 100%;
    height: 100%;
}

.contenedora-btn p{
    margin-bottom: 3rem;
}


.btn-confirmacion {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #d34017;
    color: white;
    border: none;
    border-radius: 5px;
}

 
/* SOBRE NOSOTROS ---------------------- */


/*equipo datos*/

.contenedora-nosotros .title {
    grid-column: span 2;
    text-align: center;
    background-color: #d34017;
    color: aliceblue;
    font-size: x-large;
    text-transform: uppercase;
}


.contenedora-nosotros img{
    max-width: 30%;
    border-radius: 2rem;
    border: 4px solid #d34017;
    margin-right: 2rem;

}

.contenedora-nosotros {
    max-width: 65%;
    margin: 0 auto;
    display: flex; 
    align-items: self-start;
    margin-bottom: 2rem;
}


/*equipo datos*/

.equipo_contenedora {
    margin-block: .5em;
    max-width: 90%;
    padding: 5em;
    border-radius: .25em;
    text-align: center;
}


.equipo_textos h3 {
  margin-right: auto;
  color: white
}

.equipo img {
    width: 100px;
    border-radius: 1em;
    border: solid 3px #d34017;
    text-align: center;
}

.equipo img:hover {
    border: solid 5px #ffffff;

}

.equipo_textos h3 {
    margin-block-start: 0; 
    text-align: center;
    font-family: sans-serif;
}

.equipo_textos a {
    background-color: hsl(0, 0%, 100%);
    border-radius: 100vw;
    color: #161616;
    font-size: .85em;
    padding-block: .125em .25em;
    padding-inline: 1em .75em;
}

/*grilla equipo-------------------------------------------*/

.equipo_articulos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
    gap: 1rem;
}
  
/* cada integrante */

.equipo_articulos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1rem;
}

.equipo_articulos article {
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: 1rem;
    background-color: #d34017;
    border-radius: 1em;
    padding: 20px;

}
  
.equipo_textos {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 1.25em;
}
  
.equipo_textos > * {
    margin: 0;  
}
  
.equipo_textos a {
    margin-inline-start: auto;
}
  





/* Responsive SOBRE NOSOTROS */
@media (max-width: 768px) {
    .contenedora-nosotros {
        flex-direction: column;
        align-items: center;
        max-width: 90%;
        padding: 1rem;
    }

    .contenedora-nosotros .title {
        font-size: large;
    }

    .contenedora-nosotros img {
        max-width: 50%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .contenedora-nosotros {
        padding: 0.5rem;
    }

    .contenedora-nosotros .title {
        font-size: medium;
    }

    .contenedora-nosotros img {
        max-width: 70%;
    }
}