:root{
    --neutral-color-0: #ffffff;
    --neutral-color-100: #FAF8F6;
    --neutral-color-300: #E0DDD9;
    --neutral-color-500: #B8B3AD;
    --neutral-color-700: #7D7871;
    --neutral-color-900: #4A4540;
    --neutral-color-1000: #2D2926;

    --primary-color-100: #E8F1FF;
    --primary-color-300: #B0C7E8;   
    --primary-color-500: #6089B0;   
    --primary-color-700: #2B4C70;   
    --primary-color-900: #162A3A;    

    --secondary-color-100: #FAF3E0;
    --secondary-color-300: #EAD3B1;   
    --secondary-color-500: #C69A6E;   
    --secondary-color-700: #8B5E3C;   
    --secondary-color-900: #5C3A24;

    --border-radius-s: 8px;
}
* {
    Padding: 0;
    Margin: 0;
    box-sizing: border-box;
    list-style: none;
}

.merriweather-font,h1,h2,h3,h4,h4,h6 {
  font-family: "Merriweather", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.inter-font,p,a {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.main{
    padding-top: 170px;
}

.bg-secondary{
    background-color: var(--secondary-color-100);
}

.bg-tertiary{
    background-color: var(--primary-color-100);
}

.article{
    padding: 48px 64px;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 80px;
}

.section{
    padding: 40px 64px;
}

.part{
    margin-top: 32px;
}

.article p + img {
    margin: 16px 0 32px 0;
}

.article .part img {
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(74, 69, 64, 0.3);
}

.article .part img.horizontal{
   max-width: 680px;
}

.article .part img.vertical{
    max-width: 450px;
}

img{
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* NAVEGACIÓN */

.btn{
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: var(--border-radius-s);
    background: var(--primary-color-700);
    color: var(--neutral-color-0);
    display: flex;
    gap: 8px;
    justify-content: center;
    transition: background-color 0.3s linear;
}

.btn:hover{
    background-color: var(--primary-color-900);
    color: var(--neutral-color-0);
}

.icon{
    width: 20px;
    height: 20px;
}

a{
    text-decoration: none;
    font-weight: 600;
    color: var(--primary-color-700);
    cursor: pointer;
    transition: color 0.3s linear;
}

header .menu li a.active{
    color: var(--primary-color-500);
}

a:hover {
    color: var(--primary-color-500);
}


/* TEXTO */

h2{
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--primary-color-900);
}

h2 .page-title{
    color: var(--primary-color-700);
}

h3{
    font-size: 26px;
    margin-bottom: 16px;
    color: var(--primary-color-700);
}

h4{
    font-size: 22px;
    margin-bottom: 8px;
}

h5{
    color: var(--neutral-color-900);
    font-size: 18px;
    margin-bottom: 4px;
}

p{
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--neutral-color-1000);
    line-height: 1.3;
}

p.size-M{
    font-size: 18px;
    margin-bottom: 18px;
}

p.size-S{
    font-size: 14px;
    margin-bottom: 14px;
}

.italic{
    font-style: italic;
}


/* HEADER */

header{
    position: fixed;
    background-color: var(--neutral-color-0);
    width: 100%;
    box-shadow: 0 3px 8px rgba(74, 69, 64, 0.2);
    z-index: 6;
}

header .upper{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 64px;
    max-width: 1200px;
    margin: 0 auto;
    height: 100px;
}

header .upper .title{
    font-size: 24px;
    font-weight: 400;
    color: var(--neutral-color-700);
}

header .upper .pececito{
    height: 90px;
}

header .downer{
    background: var(--neutral-color-100);
    padding: 8px 64px;
    width: 100%;
}
header .menu{
    display: flex;
    justify-content: space-evenly;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}
header .menu li{
    width: fit-content;
    height: fit-content;
}
header .menu li a{
    font-size: 16px;
    color: var(--primary-color-700);
    padding: 16px 16px;
    border-radius: var(--border-radius-s);
    background-color: var(--neutral-color-100);
    transition: all 0.2s linear;
    line-height: 1.4;
    display: block;
}
header .menu li a:hover{
    color: var(--primary-color-500);
    background-color: var(--neutral-color-0);
}

.burger{
    display: none;
}


/* HERO SECTION */

.hero {
    display: flex;
    height: calc(100dvh - 212px);
    padding: 0 10dvw;
}

.hero .text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.hero .text .title{
    font-size: 40px;
    color: var(--primary-color-700);
}

.hero .text h3{
    font-size: 24px;
    font-weight: 400;
    color: var(--neutral-color-500);
}

.hero .text h3 .author{
    font-weight: 500;
    color: var(--neutral-color-700);
}

.hero .img-wrapper img{
    object-fit: contain;
    width: fit-content;
}

/* BIBLIOGRAFÍA SECTION */

.bibliografia.section{
    background-color: var(--secondary-color-100);
    padding: 0;
}

.bibliografia.section h2{
    padding: 40px 64px 0;
}

.timeline {
    display: flex;
    overflow-x: scroll;
    padding: 42px 64px 16px;
}
.bibliografia .item {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.bibliografia.section .item {
    padding: 16px 16px 0 0;
    border-top: 4px solid var(--secondary-color-300);
}

.bibliografia.section .textwrapper {
    order: 2;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
}

.bibliografia.section h4.italic {
    color: var(--neutral-color-900);
}

.bibliografia.section p {
    color: var(--neutral-color-700);
}

.bibliografia .ball {
    width: 16px;
    height: 16px;
    background-color: var(--secondary-color-500);
    border-radius: 100%;
    order: 1;
    position: absolute;
    top: -10px;
}
.bibliografia.section .ball {
    top: -10px;
}

.bibliografia.section .btn-wrapper {
    padding: 16px 64px 40px;
    display: flex;
    justify-content: flex-end;
}

/* BIBLIOGRAFÍA SECTION */

.bio.section{
    padding-bottom: 64px;
}

.bio.section .tabs{
    margin-bottom:56px;
}

.bio.section .btn{
    width: fit-content;
    margin-top: 24px;
}

.bibliografia.section h2 {
    padding: 40px 64px 0;
    max-width: 900px;
    margin: 0 auto 24px;
}

/* Translate tabs*/

h2.traduccion{
    margin-bottom: 40px;
}

.tabs {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 16px;
  }

  .tab-btn {
    padding: 16px 24px;
    border: none;
    background: var(--neutral-color-0);
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
    background: var(--neutral-color-100);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }

  .tab-btn:first-of-type{
    border-radius: 8px 0 0 8px;
  }

  .tab-btn:nth-of-type(3){
    border-radius: 0 8px 8px 0;
  }

  .tab-btn:hover {
    background: var(--primary-color-100);
    border-radius: 8px;
  }
  .tab-btn.active {
    background: var(--neutral-color-300);
    border-color: var(--primary-color-700);
    border-radius: 8px;
  }

  .tab-content {
    display: none;
  }

  .tab-content.active {
    display: block;
  }

  .flag{
    width: 20px;
    height: 20px;
    border-radius: 100%;
  }
  .flag.-es{
    background: center url(../assets/img/flags/esp-civ.gif) no-repeat;
    background-size: cover;
  }
  .flag.-en{
    background: center url(../assets/img/flags/gbr.gif) no-repeat;
    background-size: cover;
  }
  .flag.-fr{
    background: center url(../assets/img/flags/fra.gif) no-repeat;
    background-size: cover;
  }

/* BIOGRAFÍA PAGE */

.biografia-page .firma{
    margin: 40px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--neutral-color-700);
}

.biografia-page .firma span{
    display: block;
    font-weight: 400;
    color: var(--neutral-color-500);
    margin-top: 4px;
}

.biografia-page .container.bg-secondary .firma{
    color: var(--neutral-color-900);
}

.biografia-page .container.bg-secondary .firma span{
    color: var(--neutral-color-700);
}

.article.bibliografia.page p.caption {
    font-size: 16px;
}

.article.bibliografia.page h4 {
    font-size: 18px;
}
/* Lectura Page */

.poem{
    margin-top: 56px;
}

.caption{
    font-size: 14px;
}

/* Bibliografía Page */

.bibliografia.page .item {
    padding: 16px;
    border-left: 4px solid var(--secondary-color-300);
}

.bibliografia.page .ball {
    left: -10px;
    top: 18px;
}

/* Poemas */

details.note {
    padding: 12px 16px;
    background: var(--neutral-color-100);
    font-size: 16px;
    border-radius: 4px;
  }
  details.note summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color-700);
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
  }
  summary .icon{
    width: 24px;
    height: 24px;
  }

  details.note p {
    margin-top: 12px;
    margin-bottom: 0;
  }
  details.note[open] {
    border-color: #999;
    background: #f5f5f5;
  }

  /*Contacto*/

  form {
    max-width: 800px;
    padding: 32px 24px 24px;
    border-radius: 24px;
    background-color: var(--neutral-color-0);
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  form .item{
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  form label{
    font-size: 14px;
    color: var(--neutral-color-900);
  }
  
  input,
  textarea {
    font: 1em sans-serif;
    border: 2px solid var(--neutral-color-100);
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    background: var(--neutral-color-100);
  }

  input:hover, textarea:hover{
    border: 2px solid var(--primary-color-300);
  }

  input:focus, input:focus-visible, textarea:focus, textarea:focus-visible{
    outline: none;
    border: 2px solid var(--primary-color-500);
  }
  
  input::placeholder ,textarea::placeholder{
    color: var(--neutral-color-500);
  }
  
  textarea {
    height: 5em;
    resize: none;
  }

  input.btn{
    cursor: pointer;
  }

  /*translate*/
  .translate .tab-content{
    margin-bottom: 80px;
  }

  /*FOOOTER*/

  footer{
    background-color: var(--neutral-color-1000);
  }

  footer h2{
    color: var(--neutral-color-100);
  }

  footer p{
    color: var(--neutral-color-300);
  }

 footer h2{
    margin-bottom: 16px;
 }

 footer .container{
    display: flex;
    padding: 0 64px;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
 }
 footer .firma, .biografia-page footer .firma{
    margin: 0;
 }

footer .firma img{
    width: 300px;
}

footer .article{
    padding: 0;
    margin: 0;
}
  
  

/*______________________TABLET______________________*/

@media (max-width: 1024px){

    /*BURGER MENU*/

    .burger{
        display: block;
    }

    .burger input[type="checkbox"] {
        display: none;
    }

    .burger input:checked ~ nav>.menu{
        display: flex;
    }

    .burger .burger-icon{
        display: block;
        height: 24px;
        width: 27px;
        position: relative;
        margin: auto;
        -moz-transition: 0.2s;
        -o-transition: 0.2s;
        -webkit-transition: 0.2s;
        transition: 0.2s;
        cursor: pointer;
    }

    .burger .burger-icon .bar {
        height: 3px;
        width: 26px;
        display: block;
        position: relative;
        background-color: var(--primary-color-700);
        -moz-border-radius: 10px;
        -webkit-border-radius: 10px;
        border-radius: 10px;
        -moz-transition: 0.2s;
        -o-transition: 0.2s;
        -webkit-transition: 0.2s;
        transition: 0.2s;
        position: absolute;
    }

    .burger .burger-icon .bar:nth-of-type(1) {
        top: 0;
        -moz-transition: top 0.2s ease 0.2s, -moz-transform 0.2s ease-out 0.1s;
        -o-transition: top 0.2s ease 0.2s, -o-transform 0.2s ease-out 0.1s;
        -webkit-transition: top 0.2s ease, -webkit-transform 0.2s ease-out;
        -webkit-transition-delay: 0.2s, 0.1s;
        transition: top 0.2s ease 0.2s, transform 0.2s ease-out 0.1s;
        -moz-animation: mrotr 2s cubic-bezier(0.5, 0.2, 0.2, 1.01);
        -webkit-animation: mrotr 2s cubic-bezier(0.5, 0.2, 0.2, 1.01);
        animation: mrotr 2s cubic-bezier(0.5, 0.2, 0.2, 1.01);
    }

    .burger .burger-icon .bar:nth-of-type(2) {
        top: 10px;
        -moz-transition: ease 0.2s 0.2s;
        -o-transition: ease 00.2s 0.2s;
        -webkit-transition: ease 0.2s;
        -webkit-transition-delay: 0.2s;
        transition: ease 0.2s 0.2s;
        -moz-animation: fade 2s cubic-bezier(0.5, 0.2, 0.2, 1.01);
        -webkit-animation: fade 2s cubic-bezier(0.5, 0.2, 0.2, 1.01);
        animation: fade 2s cubic-bezier(0.5, 0.2, 0.2, 1.01);
    }

    .burger .burger-icon .bar:nth-of-type(3) {
        top: 20px;
        -moz-transition: top  0.2s ease  0.2s, -moz-transform  0.2s ease-out 0.1s;
        -o-transition: top  0.2s ease  0.2s, -o-transform  0.2s ease-out 0.1s;
        -webkit-transition: top  0.2s ease, -webkit-transform  0.2s ease-out;
        -webkit-transition-delay:  0.2s, 0.1s;
        transition: top  0.2s ease  0.2s, transform 0.2s ease-out 0.1s;
        -moz-animation: mrotl 2s cubic-bezier(0.5, 0.2, 0.2, 1.01);
        -webkit-animation: mrotl 2s cubic-bezier(0.5, 0.2, 0.2, 1.01);
        animation: mrotl 2s cubic-bezier(0.5, 0.2, 0.2, 1.01);
    }

    .burger input:checked ~ label>.bar:nth-of-type(1) {
        top: 10px;
        -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
        -moz-transition: top 0.2s ease 0.1s, -moz-transform  0.2s ease-out 0.3s;
        -o-transition: top 0.2s ease 0.1s, -o-transform 0.3s ease-out 0.3s;
        -webkit-transition: top 0.2s ease, -webkit-transform  0.2s ease-out;
        -webkit-transition-delay: 0.1s, 0.5s;
        transition: top  0.2s ease 0.1s, transform 0.3s ease-out 0.2s;
    }

    .burger input:checked ~ label>.bar:nth-of-type(2) {
        opacity: 0;
    }

    .burger input:checked ~ label>.bar:nth-of-type(3) {
        top: 10px;
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
        -moz-transition: top 0.2s ease 0.1s, -moz-transform  0.2s ease-out 0.3s;
        -o-transition: top 0.2s ease 0.1s, -o-transform 0.3s ease-out 0.3s;
        -webkit-transition: top 0.2s ease, -webkit-transform  0.2s ease-out;
        -webkit-transition-delay: 0.1s, 0.5s;
        transition: top  0.2s ease 0.1s, transform 0.3s ease-out 0.2s;
    }

    header{
        padding: 0 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    header .upper{
        padding: 0;
        display: flex;
        justify-content: flex-start;
        gap: 24px;
        width: inherit;
    }

    header .upper .pececito{
        height: 60px;
    }

    header .menu{
        display: none;
        position: absolute;
        width: 100%;
        flex-direction: column;
        right: 0;
        background-color: var(--neutral-color-100);
        top: 100px;
        box-shadow: 0 3px 8px rgba(74, 69, 64, 0.2);
        z-index: -1;
        padding: 16px 24px;
        gap: 0;
    }

    header .menu li{
        width: inherit;
    }

    header .menu li a {
        font-size: 18px;
        padding: 32px 16px;
    }

    header .downer{
        display: none;
    }

    .main{
        padding-top: 100px;
    }
    .section {
        padding: 40px 24px;
    }
    .article {
        padding: 80px 24px 48px;
    }
    .hero {
        height: calc(80dvh - 202px);
        padding: 0 24px;
        position: relative;
        max-width: 1200px;
        margin: 0 auto;
    }

    .hero .text{
        padding: 24px;
        gap: 0;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        width: 57%;
    }

    .hero .text .title {
        font-size: 32px;
    }
    
    .hero .img-wrapper{
        width: 100%;
        display: flex;
        justify-content: flex-end;
        overflow: hidden;
        z-index: -1;
    }
    .hero .img-wrapper img{
        transform: scale(1.2);
    }

    .bibliografia.section h3.italic {
        font-size: 20px;
    }

    .bibliografia.section h2 {
        padding: 56px 24px 0;
    }

    .timeline {
        padding: 24px 24px 8px;
    }
    .bibliografia.section .btn-wrapper {
        padding: 16px 64px 40px;
        display: flex;
        justify-content: center;
    }
    footer .container {
        padding: 0 24px;
    }

}

/*______________________MOVIL______________________*/


@media (max-width: 600px) {

    header{
        height: 100px;
        padding: 0 24px 0 16px;
    }

    header .upper .pececito{
        display: none;
    }

    header .upper .title{
        font-size: 20px;
    }

    .hero{
        padding: 0;
    }

    .hero .text {
        padding: 16px;
    }

    .hero .text .title {
        font-size: 22px;
    }

    .hero .text h3 {
        font-size: 18px;
    }

    .hero .img-wrapper img{
        transform: scale(1);
    }

    .bibliografia.section h2 {
        padding: 40px 16px 0;
    }

    h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }

    h3{
        font-size: 24px;
    }

    h4 {
        font-size: 20px;
    }

    p.size-M {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .timeline {
        padding: 24px 16px 16px;
    }
    .bibliografia.section .btn-wrapper {
        padding: 16px 16px 40px;
    }
    .bibliografia.section .item {
        padding: 24px 24px 0 0;
    }
    .tabs {
        margin-bottom: 40px;
    }
    .tab-btn{
        width: 100%;
    }
    .main {
        padding-top: 100px;
    }
    .article {
        padding: 56px 16px 48px;
    }

    footer .container {
        flex-direction: column;
    
    }    
    footer .article{
        order: 2;
        margin-bottom: 56px;
        margin-top: -40px;
    }
    footer .firma {
        margin-top: 16px;
        order: 1;
    }
    footer .firma img {
        width: 230px;
    }

}
