@import url('https://fonts.googleapis.com/css2?family=Caveat+Brush&family=Shantell+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {

    /* Fonts */
    --font-family-primary: 'Shantell Sans', sans-serif;
    --font-family-secondary: 'Caveat Brush', cursive;

    /* Fonts Sizes */
    --font-size-xxs: clamp(0.625rem, 1vw, 0.75rem);
    --font-size-xs: clamp(0.75rem, 1.25vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 1.75vw, 1.125rem);
    --font-size-md: clamp(1rem, 1vw, 1rem);
    --font-size-lg: clamp(1.125rem, 2.25vw, 1.5rem);
    --font-size-xl: clamp(1.25rem, 2.5vw, 2rem);
    --font-size-xxl: clamp(1.5rem, 3vw, 2.5rem);
    --font-size-jumbo: clamp(1.75rem, 3.5vw, 3rem);
    --font-size-mega: clamp(2rem, 1.429rem + 2.857vw, 4rem);
    --font-size-giga: clamp(2.5rem, 1.786rem + 3.571vw, 5rem);


    --font-size-p: clamp(1rem, 2vw, 1.125rem);
    --font-size-caption: clamp(0.75rem, 1vw, 0.875rem);
    --font-size-button: clamp(0.875rem, 1.5vw, 1rem);

    /* Heading Sizes */
    --font-size-h1: clamp(2rem, 4vw, 3rem);
    --font-size-h2: clamp(1.75rem, 3.5vw, 2.5rem);
    --font-size-h3: clamp(1.5rem, 3vw, 2rem);
    --font-size-h4: clamp(1.25rem, 2.5vw, 1.75rem);
    --font-size-h5: clamp(1rem, 2vw, 1.2rem);
    --font-size-h6: clamp(0.875rem, 1.5vw, 1.25rem);

    /* Base Colors */
    --base-white: #fafafa;
    --base-black: #0a0a0b;
    --success: #308c3e;
    --warning: #d97925;
    --error: #e4626f;

    /* Primary Colors */
    --primary: #1da8e4;
    --primary-100: #d9f1fb;
    --primary-200: #b4e2f6;
    --primary-300: #8ed4f2;
    --primary-400: #68c5ed;
    --primary-500: #43b6e9;
    --primary-600: #1893c8;
    --primary-700: #147daa;
    --primary-800: #11688d;
    --primary-900: #0d526f;
    --primary-1000: #0a3c52;

    /* Secondary Colors */
    --secondary: #bf0f82;
    --secondary-100: #fcd7ef;
    --secondary-200: #f9aedf;
    --secondary-300: #f686cf;
    --secondary-400: #f25ebf;
    --secondary-500: #ef36af;
    --secondary-600: #e7129d;
    --secondary-700: #a30d6f;
    --secondary-800: #870b5c;
    --secondary-900: #6b0849;
    --secondary-1000: #4f0636;

    /* Neutrals Colors */
    --neutral-100: #e3e3e3;
    --neutral-200: #cccbcb;
    --neutral-300: #b5b3b3;
    --neutral-400: #9f9c9c;
    --neutral-500: #898384;
    --neutral-600: #726c6c;
    --neutral-700: #5a5555;
    --neutral-800: #433e3f;
    --neutral-900: #2b2829;
    --neutral-1000: #151314;

    /* Success Colors */
    --success-100: #afe4b7;
    --success-200: #5fc86f;
    --success-300: #22642c;

    /* Warning Colors */
    --warning-100: #f3d2b6;
    --warning-200: #e6a66d;
    --warning-300: #98551a;

    /* Error Colors */
    --error-100: #e4626f;
    --error-200: #c03744;
    --error-300: #8c1823;

    /* Green Colors */
    --green: #308c3e;
    --green-100: #e1f5e4;
    --green-200: #c3eac9;
    --green-300: #a5e0ae;
    --green-400: #87d693;
    --green-500: #69cc78;
    --green-600: #4bc15d;
    --green-700: #3aaa4b;
    --green-800: #287433;
    --green-900: #1f5c29;
    --green-1000: #17431e;

    /* Yellow Colors */
    --yellow: #ffc81a;
    --yellow-100: #fff2cc;
    --yellow-200: #ffe699;
    --yellow-300: #ffdb66;
    --yellow-400: #ffd033;
    --yellow-500: #ffc81a;
    --yellow-600: #e6b117;
    --yellow-700: #cc9a14;
    --yellow-800: #b38410;
    --yellow-900: #996d0d;
    --yellow-1000: #7f570a;

    /* Orange Colors */
    --orange: #d97925;
    --orange-100: #ffece0;
    --orange-200: #ffd4b8;
    --orange-300: #ffbd90;
    --orange-400: #ffa668;
    --orange-500: #ff8f40;
    --orange-600: #ff7818;
    --orange-700: #e06400;
    --orange-800: #b84f00;
    --orange-900: #903b00;
    --orange-1000: #682700;


    --purple: #6a367d;
    --purple-100: #f0e1f4;
    --purple-200: #dabde4;
    --purple-300: #c398d4;
    --purple-400: #ad74c4;
    --purple-500: #9650b4;
    --purple-600: #7f3da1;
    --purple-700: #6a367d;
    --purple-800: #552b66;
    --purple-900: #3f204f;
    --purple-1000: #2a1538;

    /* Spaging */
    --spacing-base: 16px;
    --spacing-xxs: 2px;
    --spacing-xs: 4px;
    --spacing-s: 6px;
    --spacing-sm: 10px;
    --spacing-m: 14px;
    --spacing-ml: 20px;
    --spacing-l: 28px;
    --spacing-xl: 40px;

    /* Radius */
    --radius-sharp: 0px;
    --radius-xxs: 2px;
    --radius-xs: 2px;
    --radius-s: 4px;
    --radius-sm: 6px;
    --radius-m: 10px;
    --radius-ml: 16px;
    --radius-lg: 24px;
    --radius-xl: 36px;
    --radius-round: 999px;
    --radius-small-perc: 5%;
    --radius-medium-perc: 10%;
    --radius-full-round-perc: 50%;

    /* Padding */
    --padding-xxs: 4px;
    --padding-xs: 8px;
    --padding-sm: 16px;
    --padding-md: 24px;
    --padding-lg: 32px;
    --padding-xl: 40px;
    --padding-xxl: 48px;

    /* Shadows */
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-heavy: 0 6px 12px rgba(0, 0, 0, 0.3);
    --shadow-button: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 8px 16px rgba(0, 0, 0, 0.25);
    --shadow-text: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-background: 0 0 10px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    font-size: inherit;
    font-family: inherit;
    vertical-align: baseline;
    text-decoration: none;
    list-style: none;
    text-wrap: pretty;
    color: inherit;
}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

h4 {
    font-size: var(--font-size-h4);
}

h5 {
    font-size: var(--font-size-h5);
}

h5 {
    font-size: var(--font-size-h5);
}

h6 {
    font-size: var(--font-size-h6);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
    font-family: var(--font-family-secondary);
    line-height: 1;
}

p,
i {
    font-size: var(--font-size-md);
}

option {
    font-size: var(--font-size-caption);
}

select,
label,
input,
textarea {
    padding: var(--padding-xs);
    width: 100%;
}

select,
input,
textarea {
    border: 1px solid var(--base-black);
    border-radius: var(--radius-sm);
}

body {
    min-height: 100vh;
    width: 100%;
    color: var(--neutral-900);
    font-family: var(--font-family-primary);
    background-color: var(--base-white);
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ? header */

header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--yellow);
    position: sticky;
    top: 0;
    transition: top 0.5s ease;
    z-index: 500;
}

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

nav .nav__content {
    padding: var(--padding-sm) var(--padding-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: var(--yellow);
    z-index: 100;
}

nav .nav__logo {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.logo {
    display: block;
    width: clamp(5rem, 4.167rem + 4.167vw, 7.5rem);
}

nav .nav__menu {
    z-index: 20;
    padding: var(--padding-xs);
    background: linear-gradient(45deg, var(--secondary-500), var(--secondary-700));
    color: var(--base-white);
}

nav .nav__links {
    position: absolute;
    left: 0;
    top: 100%;
    transform: translateY(-100%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-l);
    padding: var(--padding-sm) 0;
    width: 100%;
    z-index: 10;
    transition: .4s ease-in-out;
    background-color: var(--yellow);
}

nav .active {
    transform: translateY(0);
}

nav .nav__links li {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.button {
    padding: var(--padding-sm) var(--padding-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-secondary);
    font-size: var(--font-size-md);
    border-radius: var(--radius-round);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-button);
    cursor: pointer;
}

.button--ballon {
    width: 80%;
    max-width: 500px;
    color: var(--base-white);
    gap: .5rem;
}

.button--home {
    background: var(--primary-700);

    .button__hover {
        background: linear-gradient(45deg, var(--primary-800) 40%, var(--primary-1000) 60%);
    }
}

.button--catalog {
    background: var(--secondary);

    .button__hover {
        background: linear-gradient(45deg, var(--secondary-700) 40%, var(--secondary-900) 60%);
    }
}

.button--about {
    background: var(--green);

    .button__hover {
        background: linear-gradient(45deg, var(--green-800) 40%, var(--green-1000) 60%);
    }
}

.button--contact {
    background: var(--orange-700);

    .button__hover {
        background: linear-gradient(45deg, var(--orange-800) 40%, var(--orange-900) 60%);
    }
}

.button__content {
    z-index: 10;
    display: flex;
    align-items: center;
    gap: var(--spacing-s);
    text-align: center;
    transition: .4s ease-in;
}


.button__text {
    font-size: var(--font-size-lg);
    text-align: center;
    display: block;
}

.button__icon {
    font-size: var(--font-size-lg);
    text-align: center;
    display: block;
}

.material-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.material-icon img {
    width: 24px;
}

#chevronArrow {
    width: 24px;
}

.button__hover {
    position: absolute;
    z-index: 0;
    background-color: var(--base-white);
    height: 0px;
    width: 0px;
    border-radius: var(--radius-round);
    transition: .4s ease-in;
    padding: 0;
}

.button:hover {

    .button__hover {
        padding: 55%;
    }

    .button__content {
        transform: scale(1.1);
    }
}

.button__highlight {
    display: none;
    position: absolute;
    z-index: 20;
    background-color: #f0f0f080;
    padding: 8px 4px;
    left: 10%;
    top: 15%;
    transform: rotate(45deg);
    border-radius: 50%;
}

.waves {
    position: absolute;
    width: 100%;
    height: 35px;
    top: 99%;
    overflow: hidden;
    transform: rotate(180deg);
    background-repeat: repeat-x;
    background-size: cover;
    background-position: center;
    background-image: url(../images/support/waves/wave.webp);
    border: 1px solid transparent;
}

.waves--desktop {
    display: none;
}

/* extras */

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ? footer */

footer {
    position: relative;
    bottom: 0;
    background-color: var(--primary-900);
    width: 100%;
    padding: var(--padding-md) var(--padding-sm);
    color: var(--base-white);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-ml);
    padding-bottom: var(--spacing-ml);
}

.footer__content--s {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-s);
}

.footer__content--s ul {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.footer__content a>img {
    margin-bottom: var(--spacing-sm);
}

.footer__content :is(a, p) {
    font-size: var(--font-size-xxs);
    color: var(--neutral-100);
    font-weight: 200;
    overflow: hidden;
}

.footer__content a:hover {
    text-decoration: underline;
}

.footer__copyright {
    width: 100%;
    border-top: 1px solid #f0f0f080;
    color: var(--neutral-100);
}

.footer__copyright p {
    font-size: var(--font-size-xxs);
    text-align: center;
    padding-top: var(--padding-xs);
}

/* ? main */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

/* ! media querys */

@media screen and (min-width: 480px) {
    /* footer */

    .footer__logo {
        width: 100%;
    }

    .footer__content--s {
        width: auto;
        max-width: 33%;
    }

}

@media screen and (min-width: 768px) {
    /* header */

    nav {
        flex-wrap: nowrap;
        padding: var(--padding-sm) var(--padding-md);
    }

    nav .nav__content {
        padding: 0;
        width: auto;
    }

    nav .nav__menu {
        display: none;
    }

    nav .nav__links {
        width: auto;
        transform: translateY(0);
        position: static;
        flex-wrap: nowrap;
        gap: var(--spacing-m);
    }

    .button--ballon {
        width: auto;
        min-width: 130px;
    }

    .button--ballon .button__highlight {
        display: block;
    }

    .waves--movil {
        display: none;
    }

    .waves--desktop {
        display: block;
    }

    /* footer */
    footer {
        padding: var(--padding-md) var(--padding-xl);
    }

    .footer__logo {
        width: auto;
    }

    .footer__content--s {
        max-width: 20%;
    }

    .footer__content :is(a, p) {
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
        padding: var(--padding-xxs) 0;
        width: 100%;
    }
}

/* Laptops y pantallas grandes (1024px y mayores) */
@media screen and (min-width: 1024px) {

    nav {
        padding: var(--padding-sm) var(--padding-lg);
    }

    .button--ballon {
        min-width: 150px;
    }

    /* footer */
    footer {
        padding: var(--padding-md) var(--padding-xxl);
    }

    /* main */
}

/* Escritorios grandes (1280px y mayores) */
@media screen and (min-width: 1280px) {

    nav {
        max-width: 1200px;
    }

    .footer__content {
        max-width: 1200px;
    }

    /* main */
}


@media screen and (min-width: 1440px) {
    nav {
        max-width: 1400px;
    }

    .waves {
        background-size: contain;
    }
}