:root{
    --color1:rgb(248, 226, 230);
    --color2:rgb(243, 100, 195);
    --color3:rgb(131, 90, 57);
    --color4:black;
    --color5:pink;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.grid-container{
    background: linear-gradient(135deg,rgb(248, 150, 166), #ffb3d9, #ffd9ec);;
    display: grid;
    min-height: 100vh;
    grid-template-areas: 
        "header header header"
        "section section section"
        "footer footer footer";
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.header {
    grid-area: header;
    width: 100%;
    height: 300px; /* altura fija del header */
    overflow: hidden;
    position: relative;
}

/* BXSlider debe manejar la altura por sí mismo */
.slider img {
    width: 100%;
    height: 300px;
    object-fit: cover; 
    display: block;
}

/* Evita que BXSlider fuerce alturas incorrectas */
.bx-wrapper,
.bx-viewport {
    max-height: 300px !important;
    height: 300px !important;
}

/* SECTION como grid interno */
.section{
    grid-area: section;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* las 3 columnas */
    gap: 20px;
    padding: 20px;
}

.section h2{
    grid-column: 1 / -1; 
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-family: Boldins;
    font-size: 40px;
    color: var(--color3);
    animation: rebote 1s infinite;
}

@keyframes rebote {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@font-face {
    font-family: Boldins;
    src: url(Boldins.ttf) format(truetype);
}

.section h3{
    text-align: center;
    margin: 5px;
    font-family: Boldins;
    font-size: 30px;
    
}

.section p{
    text-align: left;
    margin-bottom: 5px;
}

/* Artículos */
.article1, .article2, .formulario{
    padding: 20px;
    border-radius: 10px;
}

.article1{
    background: var(--color1);
}

.article1 img{
width: 100%;
}

.article2{
    background: var(--color1);
}

.article2 img{
width: 100%;
}

.formulario{
    background: var(--color1);
}

.formulario label {
  font-weight: bold;
}

.formulario form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.formulario input,
.formulario textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--color2);
  border-radius: 5px;
  box-sizing: border-box;
}

.btn {
  margin-top: 10px;
  background-color: var(--color2);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn:hover {
  background-color: deeppink;
}

.footer{
    grid-area: footer;
    background-color: rgb(24, 22, 22);
    width: 100%;
    padding: 20px;
    margin-top: auto;
    text-align: center;
}

.footer p{
    color: var(--color5);
    margin-bottom: 7px;
}

.footer ul{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 0 auto;
    padding: 0;     
}

.footer ul li{
    list-style-type: none;
}

.footer ul li a{
    text-decoration: none;
    color: var(--color5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    gap: 5px; 
}

.footer li a:hover{
    color:var(--color2);
    position: relative; 
}

.footer ul li a i {
    font-size: 20px; 
}
