:root {
    
    /*FONTS*/
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;


    /*COLORS*/
    --color-primary: #e57fc9;
    --color-text: #000000;
    --color-dark-grey: #666666;
    --color-grey: #f5f5f5;
    --color-light-grey: #fcfcfc;
    --color-white: #ffffff;
    --color-primary-alt: #d064b2;
    --color-grey-alt: #dfdfdf;
    --font-serif: "Cormorant Garamond", sans-serif;
    --font-sans: "Inter", sans-serif;

    /* DEFAULT CSS */
    font-family: var(--font-serif);
    font-size: 20px;
    line-height: 1.5em;
    background-color: var(--color-grey);
    color: var(--color-text);
    display: block;
}

/* TYPOGRAPHY */

h1 {
    font-size: 2rem;
    line-height: 1.2em;
    font-weight: 400;
    text-wrap: balance;
}

h2 {
    font-size: 1.5rem;
    line-height: 1.2em;
    font-weight: 400;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.2em;
    font-weight: 700;
}

.intro {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.2em;
}

h1,
h2,
h3,
.intro {
    text-wrap: balance;
}

.sans-regular {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 400;
    font-family: var(--font-sans);
}

a {
    color: var(--color-primary-alt);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-alt);
    text-decoration: underline;
}

ul {
    padding-left: 1.5rem;
}

ul li {
    list-style: disc;
}

ul li::marker {
    color: var(--color-primary);
}

/* UTILITIES */

.text-center {
    text-align: center;
}

.flex-left {
    align-items: flex-start;
}

.flex-center {
    align-items: center;
}

.flex-right {
    align-items: flex-end;
}



/* LAYOUT */

body {
    padding: 3rem 0;
}

.container {
    background-color: var(--color-light-grey);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 60px 80px -40px #24001a4d;
    padding-top: 1rem
}

.content {
    margin-left: auto;
    margin-right: auto;
    width: 85%;
    max-width: 560px;
    padding-top: 6rem;
    padding-bottom: 8rem;
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
    column-gap: 1.5rem
}

.content__block {
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
    column-gap: 1.5rem;
    width: 100%;
}

.main-footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--color-dark-grey);
    font-size: 14px;
    font-family: var(--font-sans);
}


@media screen and (max-width: 800px) {
    .container {
        padding-top: 0;
        box-shadow: none;
    }

    body {
        padding: 0 0 3rem 0;
    }
}

@media screen and (max-width: 600px) {
    .content {
        padding-top: 4rem;
    }
}

.social__links {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.social__link {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    justify-content: center;
    padding: 2px 8px 4px 8px;
    background: var(--color-light-grey);
    color: var(--color-dark-grey);
    border-radius: 4px;
    font-weight: bold;
}

.social__link svg {
    width: 16px;
    height: 16px;
}

.social__link svg path {
    fill: var(--color-primary);
}



/* COMPONENTS */

hr {
    border: none;
    height: 2px;
    width: 100%;
}

hr.primary {
    background-color: var(--color-primary);
    width: 3rem;
}

hr.grey {
    background-color: var(--color-grey);
}

hr.center {
    margin-left: auto;
    margin-right: auto;
}

hr.large {
    height: 3rem;
}

.button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1rem;
    border: solid 2px var(--color-primary);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    border-radius: 5px;
}

.button:hover {
    color: var(--color-white);
    background-color: var(--color-primary-alt);
    border-color: var(--color-primary-alt);
    text-decoration: none;
}

.button.secondary {
    border: solid 2px var(--color-primary);
    background-color: var(--color-light-grey);
    color: var(--color-primary);
}

.button.secondary:hover {
    background-color: var(--color-grey);
    border-color: var(--color-primary-alt);
    color: var(--color-primary-alt);
}

.card {
    background: var(--color-grey);
    border-radius: 8px;
    padding: 1.5rem;
    color: var(--color-text);
    border: solid 2px var(--color-grey);

    display: flex;
    flex-direction: row;
    gap: 1rem;

    width: 700px;
    max-width: 120%;
}

a.card:hover {
    text-decoration: none;
    color: var(--color-text);
    border-color: var(--color-primary);
    background: var(--color-light-grey);
}

.card__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 60%;
}

.card__header {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card__desc {
    color: var(--color-dark-grey);
    line-height: 1.2em;
}

.card:hover .card__desc {
    color: var(--color-text);
}

.card__img__container {
    max-width: 40%;
}

.card__img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.card__meta {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-dark-grey);
}

@media screen and (max-width: 800px) {
    .card {
        width: 100%;
    }
}

@media screen and (max-width: 600px) {
    .card {
        flex-direction: column;
    }
    
    .card__text {
        width: 100%;
    }

    .card__img__container {
        max-width: 100%;
    }
}

.tabs__container {
    width: 100%;
    gap: 2.5rem;
}

.tabs {
    border-bottom: solid 2px var(--color-grey-alt);
    display: flex;
    flex-direction: row;
    align-items:flex-start;
    justify-content: center;
    padding: 10px 10px 0 10px;
    gap: 10px;

    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: bold;

    width: 100vw;
    max-width: 800px;
}

.tab__link {
    background: var(--color-grey);
    border-radius: 8px 8px 0 0;
    border: solid 2px var(--color-grey-alt);
    padding: 0.5rem 1rem;
    text-align: center;
    margin-bottom: -2px;

    text-decoration: none;
    color: var(--color-dark-grey);
    text-transform: uppercase;
}

.tab__link.active {
    background: var(--color-light-grey);
    color: var(--color-dark-grey);
    border-bottom-color: var(--color-light-grey);
}

.tab__link:hover {
    text-decoration: none;
}

.tab__link:not(.active):hover {
    color: var(--color-primary);
}

.tabs__content {
    width: 100%;
}

.tab__pane {
    display: none;
}

.tab__pane.active {
    display: flex;
}

@media screen and (max-width: 600px) {
    .tabs {
        gap: 5px;
    }
}




/* NAVIGATION */

.nav__container {
    background: var(--color-light-grey);
    position: sticky;
    top: 0;
    z-index: 2;
}

.nav__logo {
    padding: 1rem 0;
}

.nav__logo .logo {
    fill: var(--color-primary);
    width: 2.5rem;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 auto;
    width: 85%;
    max-width: 560px;
}

.nav__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 0;
    gap: 1.5rem;
}


.nav__link {
    color: var(--color-dark-grey);
    text-decoration: none;
}

.nav__link:hover {
    color: var(--color-primary);
}

.nav__mobile {
    display: none;
}

@media screen and (max-width:600px) {
    .nav__mobile {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        /* width: 100%; */
        padding: 1rem 1.5rem;
        color: var(--color-dark-grey);
        text-transform: uppercase;
        font-weight: bold;
       /*  border-bottom: solid 2px var(--color-grey-alt); */
    }

    .nav {
        padding: 0;
        width: 100%;
        border-bottom: solid 2px var(--color-grey-alt);
    }

    .nav__logo {
        padding-left: 2rem;
    }

    .nav__icon {
        width: 1rem;
        height: 1rem;
        position: relative;
    }

    .nav__icon .icon__line {
        width: 1rem;
        height: 2px;
        background: var(--color-dark-grey);
        position: absolute;
        transition: all 0.2s linear;
    }

    .nav__icon .icon__line__1 {
        left: 0;
        top: 0.3rem;
    }

    .nav__icon .icon__line__2 {
        left: 0;
        bottom: 0.3rem;
    }

    .nav__mobile.active {
        color: var(--color-primary);
    }

    .nav__mobile.active .nav__icon .icon__line {
        background: var(--color-primary);
    }
    
    .nav__mobile.active .nav__icon .icon__line__1 {
        left: 0;
        top: 0.4rem;
        transform: rotate(45deg);
    }

    .nav__mobile.active .nav__icon .icon__line__2 {
        left: 0;
        top: 0.4rem;
        transform: rotate(-45deg);
    }

    .nav__links {
        transform: scaleY(0);
        transform-origin: top left;
        opacity: 0;
        height: 0;
        transition: all 0.3s linear;
        position: absolute;
        top: 3rem;

        width: 100%;
        flex-direction: column;
        gap: 0;
        background: var(--color-grey);
        border-top: solid 2px var(--color-grey-alt);
    }

    .nav__links.active {
        transform: scaleY(1);
        opacity: 1;
        height: auto;
    }

    .nav__link {
        width: 100%;
        padding: 0.5rem 1.5rem;
        text-align: center;
    }

}




/*********************************
******
******  HOME
******
*********************************/

.home__cta {
    display: flex;
    gap: 0.5rem;
}

.home__avatar {
    width: 120px;
    height: 120px;
}



/*********************************
******
******  ACERCA
******
*********************************/





/*********************************
******
******  CONTACTO
******
*********************************/

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

label {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.3em;
    color: var(--color-dark-grey);
}

input, select, textarea {
    width: 100%;
    border: solid 2px var(--color-grey-alt);
    padding: 0.5rem;
    border-radius: 5px;
    color: var(--color-dark-grey);
    background: var(--color-grey);
}

input:focus,
select:focus,
textarea:focus {
    border: solid 2px var(--color-primary);
    outline: none;
}






/*********************************
******
******  LIBROS
******
*********************************/

.libro__links {
    display: flex;
    flex-wrap: true;
    flex-direction: column;
    gap: 0.5rem;
}

.libro__link {
    background: var(--color-grey);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: var(--color-text);
    border: solid 2px var(--color-grey);

    width: 1fr;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.libro__link:hover {
    text-decoration: none;
    color: var(--color-text);
    border-color: var(--color-primary);
    background: var(--color-light-grey);
}

.libro__link__title {
    font-weight: bold;
}

.libro__link__title svg {
    width: 0.8rem;
    height: auto;
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
}

.libro__link__title svg path {
    fill: var(--color-primary);
}

.libro__link:hover .libro__link__title svg {
    display: inline-block;
}

.libro__link__desc {
    color: var(--color-dark-grey);
    line-height: 1.2em;
}

.libro__link:hover .libro__link__desc {
    color: var(--color-text);
}

.libro__meta {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-dark-grey);
    text-align: center;
}

.libro__img__container {
    width: 100%;
}

.libro__img {
    width: 300px;
    max-width: 100%;
    border-radius: 5px;
    margin-left: auto;
    margin-right: auto;
}

.libro__detalles {
    border: none;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.3em;
    text-align: left;
    color: var(--color-dark-grey);
    border-top: solid 1px var(--color-grey-alt);
}

.libro__detalles tr th,
.libro__detalles tr td {
    border-bottom: solid 1px var(--color-grey-alt);
    padding: 0.5rem 0;
}

.libro__detalles tr th {
    font-weight: bold;
}








/*********************************
******
******  DESIGN
******
*********************************/

:root.design-page {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5em;
    background-color: var(--color-grey);
    color: var(--color-dark-grey);
}

:root.design-page body {
    padding: 0;
}

:root.design-page .container {
    background-color: transparent;
    width: 100%;
    max-width: none;
    box-shadow: none;
}

:root.design-page .content {
    width: 85%;
    max-width: 800px;
    padding-bottom: 4rem;
}

:root.design-page .nav__container {
    background: var(--color-grey);
}

:root.design-page .nav {
    max-width: 800px;
}

:root.design-page .nav__link {
    font-weight: bold;
}

:root.design-page h1,
:root.design-page h2,
:root.design-page h3 {
    color: var(--color-text);
    font-weight: bold;
}

:root.design-page .intro {
    font-style: normal;
    line-height: 1.5em;
}

.design__boxes {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.design__box {
    background: var(--color-light-grey);
    border-radius: 16px;
    padding: 3rem;
    flex: 1 0 0;
    min-width: 300px;
}

.design__box .card__img__container {
    margin-bottom: 1rem;
}

.design__box .card__text {
    width: 100%;
}

.design__box .card__desc {
    line-height: 1.5em;
}




.template__boxes {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;

    width: 100%;
    /* max-width: 500px; */
    margin-left: auto;
    margin-right: auto;
}

.template__box {
    background: var(--color-light-grey);
    border-radius: 16px;
    flex: 1 0 0;
    display: flex;
    flex-direction: row;

    padding: 2rem;
    gap: 1.5rem;
    align-items: stretch;
}

.template__box .template__text {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    width: 60%;
    justify-content: flex-start;
}

.template__box .template__desc {
    line-height: 1.5em;
}

.template__img__container {
    width: 40%;
    flex-grow: 1;
}

.template__img__container img {
    border-radius: 8px;
}

@media screen and (max-width: 840px) {
    
    .template__box {
        padding: 0;
        flex-direction: column;
        gap: 0;
    }

    .template__box .template__text {
        padding: 2rem;
        width: 100%;
    }

    .template__img__container {
        width: 100%;
    }

    .template__img__container img {
        border-radius: 16px 16px 0 0;
    }
}

.accordion__item {
    border-bottom: solid 1px var(--color-grey-alt);
    padding: 0;
}

.accordion__content {
    visibility: hidden;
    height: 0;
    padding: 0;
    transition: all 0.3s linear;
    transform-origin: top left;
    transform: scaleY(0);
}

.accordion__item.active .accordion__content {
    height: auto;
    visibility: visible;
    transform: scaleY(1);
    padding: 0 0 1rem 0;
}

.accordion__head {
    font-weight: bold;
    cursor: pointer;
    padding: 1rem 0;
}

.accordion__item.active .accordion__head {
    color: var(--color-primary-alt);
}