﻿:root {
    --black: #2B2A29;
    --gray: #C1C1C1; /*BLACK 25% in figma*/
    --gray-light: #F5F5F5;
    --white: #FFFFFF;
    --green: #5C9834;
    --green-light: #E6F5EC;
    
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    position: relative;
}

::-webkit-scrollbar {
    width: 1rem;
}

::-webkit-scrollbar-track {
    background: var(--white);
}

::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: .6rem;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--green);
    }

::-webkit-scrollbar-button {
    display: none;
}

html {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    font-size: 10px;
    font-weight: 400;
}

body {
    font-size: 1.4rem;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: var(--white);
    color: var(--black);
    transition: all 0.2s;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

button {
    background-color: transparent;
}

h1 {
    font-size: 6.4rem;
    font-weight: 400;
}

h1:focus {
    outline: none;
}

h2 {
    font-size: 4.6rem;
    font-weight: 400;
}

h3 {
    font-size: 4rem;
    font-weight: 400;
    line-height: 4.8rem;
}

h4 {
    font-size: 3.2rem;
    font-weight: 400;
}

h5 {
    font-size: 2rem;
    font-weight: 400;
    line-height: 2.8rem;
}

h6 {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 2.8rem;
}

p, li {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 2.4rem;
}

small {
    font-size: 1.4rem;
    font-weight: 400;
}

button {
    cursor: pointer;
    border: none;
}

textarea {
    resize: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.container-wide {
    margin: 0 auto;
    width: 100%;
    max-width: 192rem;
}

.container {
    width: 100%;
    padding-left: 5rem;
    padding-right: 5rem;
    max-width: 162rem;
    margin: 0 auto;
    display: flex;
}

/* common site wide styles */
.standard-button{
    padding: 1.1rem 2.2rem;
    border-radius: 10rem;
    transition: all .3s ease-in-out;
    background-color: var(--green);
    border: .1rem solid var(--green);
    color: white;
    font-size: 1.6rem;
    font-weight: 600;
    width: fit-content;
    min-width: 24rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.standard-button:hover{
    color: var(--green);
    background-color: white;
}

.standard-h1{
    color: var(--white);
    font-weight: 700;
    border-bottom: 0.1rem solid var(--white);
    padding-bottom: 2rem;
    position: absolute;
    left: 5rem; 
    right: 5rem;
    bottom: 7rem;
    width: fit-content;
}

.standard-banner{
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 70rem;
}

.subtitle-underline{
    width: fit-content;
    padding-bottom: 3rem;
    text-align: center;
    font-weight: 600;
    margin: 0 auto;
}

.subtitle-underline::after{
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 18rem;
    border-bottom:.3rem solid var(--green);
}

.weight-500{
    font-weight: 500;
}

.semibold {
    font-weight: 600;
}

.bold {
    font-weight: 700;
}

.extra-bold {
    font-weight: 800;
}

.italic {
    font-style: italic;
}

.primary-green {
    color: var(--green);
}

.underline {
    text-decoration: underline;
}

.text-center{
    text-align: center;
}

.standard-flex{
    display: flex;
    align-items: center;
    justify-content: center;
}

/* admin pages styles  */
.admin-inner{
    margin-top: 5rem;
    margin-bottom: 5rem;
    width: 100%;
}

.admin__bg{
    height: 100%; 
    background-color: var(--gray-light);
    display: flex;
    justify-content: center;
    align-items: center; 
}

.admin__box{
    background-color: white;
    width: 100%;
    height: 100%;
    padding: 4.5rem 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 6.4rem;
    border-radius: 1rem;
}

.admin__title{
    font-size: 3.2rem;
    font-weight: 600;
}

@media (max-width: 1600px) {
    .standard-banner{
        height: 55rem;
    }
}

@media (max-width: 1440px) {
    .standard-banner{
        height: 50rem;
    }
}

@media (max-width: 1280px) {
    .standard-banner{
        height: 45rem;
    }

    .admin__box{
        padding: 4.5rem;
    }
}


@media (max-width: 1024px) {
    .standard-flex{
        flex-direction: column;
    }

    .standard-h1{
        left: 2.5rem;
        right: 2.5rem;
    }

    .standard-banner{
        height: 40rem;
    }

    .container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    /* El tamaño del <p> cambia en tablet */
    p, li {
        font-size: 1.4rem;
        line-height: 2.4rem;
    }

    .standard-button{
        padding: .7rem 2.6rem;
        font-size: 1.4rem;
        font-weight: 500;
        min-width: 22rem;
    }
}

@media (max-width: 768px) {

    h1 {
        font-size: 3.2rem;
        font-weight: 400;
    }

    .standard-h1{
        bottom: 4rem;
        padding-bottom: 1.2rem;
    }

    .subtitle-underline{
        font-size: 3.6rem;
        padding-bottom: 1rem;
    }

    .standard-banner{
        height: 34rem;
    }

    /* admin pages */
    .admin-inner{
        margin: 0;
    }

    .admin__bg{ 
        background-color: white;
    }

    .admin__box{
        padding: 1rem 0;
        gap: 4rem;
    }
}

@media (max-width: 576px) {
    .subtitle-underline{
        font-size: 2rem;
        padding-bottom: 1rem;
        font-weight: 700;
    }

    .subtitle-underline::after {
        width: 10rem;
        border-bottom:.1rem solid var(--green);
    }
}