/*
    ===== Z-INDEX: =====
    -1: bg-fixed, [.row--top (index.css)]
    0: [.hero (index.css)]
    1: [.row__post(quitado), .row__user(quitado), row--bottom (index.css)]
    2: 
    3:
    4: carrusel-arrow (profile.css)
    5: header, .confirmation-wrapper

    ===== ORDERS: =====
    1: .nav--login (index.css@810px)
    2: .header-left-content (index.css@810px)

*/
/* ===== IMPORTS ===== */
@import url('buttons.css');
@import url('form.css');
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ===== RESETS ===== */
*, *::before, *::after{
    margin:0;
    padding:0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
html{font-size: 62.5%;font-family: 'Nunito', sans-serif;}
body{font-size: 1.6rem}
a{text-decoration: none; color: var(--white);}
button, input, textarea{font-family: var(--primary-font);}
ul,ol{list-style: none;}
input,textarea,button,select,a{
    border: none;
    outline: none;
    overflow: hidden;
}
textarea{resize: none;}
table, tr, td{
    border: none;
    border-collapse: collapse;
}
img{width: 100%;}
/* ===== ROOT ===== */
:root{
    /* === COLORS === */
    /* = GRAYSCALE = */
    --white: #fff;
    --almost-white: #f8f8f8;
    --eaeaea: #eaeaea;
    --gray-50: #e0e0e0;
    --gray-100: #d3d3d3;
    --gray-200: #b9b9b9;
    --gray-300: #a0a0a0;
    --gray-400: #929292;
    --gray-500: #727272;
    --gray-600: #686868;
    --gray-700: #5f5f5f;
    --gray-800: #494949;
    --gray-900: #292929;
    --almost-black: #111111;
    --black: #000;
    /* = REST = */
    --primary-10: #FFF4CD;
    --primary-50: #FCEDB8;
    --primary-500: #FFCD19;
    --primary-600: #ebb800;
    --primary-700: #b99100;
    --primary-800: #8f7000;
    --primary-900: #665000;
    --secondary-50: #D0EBFF;
    --secondary-300: #5be1ff;
    --secondary-400: #3ddafd;
    --secondary-500: #1DD6FF;
    --secondary-600: #00c1ec;
    --secondary-700: #0490b0;
    --secondary-800: #047088;
    --secondary-900: #024a5a;
    --success-500: #28a745;
    --success-600: #158a30;
    --success-700: #0e8029;
    --success-800: #04691b;
    --success-900: #003e0f;
    --error-500: #ff4949;
    --error-600: #e62d2d;
    --error-700: #ca1818;
    --error-800: #a30a0a;
    --error-900: #790000;
    --background-50: #FFFFFF;
    --background-700: #292C35;
    --background-800: #17181D;
    --background-900: #000D16;
    /* = DEFAULT COLORS = */
    --header-bg: var(--background-900);
    --footer-bg: var(--background-900);
    --header-text: var(--white);
    --body-text: var(--black);
    --footer-text: var(--white);
    

    /* === SPACES (MARGINS, PADDINGS, GAPS) === */
    --space-ultra-s: .15rem;
    --space-xs: .25rem;
    --space-s: .5rem;
    --space-sm: .75rem;
    --space-m: 1rem;
    --space-ml: 1.25rem;
    --space-l: 1.5rem;
    --space-l-plus: 1.8rem;
    --space-xl: 2rem;
    --space-xxl: 2.5rem;
    --space-xxxl: 3.5rem;
    --space-ultra-l: 5rem;
    --space-ultra-xl: 7.5rem;
    --space-ultra-xxl: 10rem;
    /* === BORDER RADIUS === */
    --br-small: var(--space-xs);
    --br-default: var(--space-s);
    --br-m: var(--space-m);
    --br-l: var(--space-l);
    --br-xl: var(--space-xl);

    /* === WIDTHS === */
    --width-xs: 100rem;
    --width-s: 110rem;
    --width-default: 120rem;
    --width-l: 130rem;
    --width-xl: 140rem;
    --width-xxl: 150rem;

    /* === FONTS === */
    --primary-font: 'Nunito', sans-serif;
}
/* ===== GLOBAL CONTAINER ===== */
.global-container{
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: 
        auto   /*header*/
        1fr    /*body*/
        auto;  /*footer*/
}

/* ===== HEADER ===== */
.header{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    min-height: 10rem;
    padding: var(--space-l);
    color: var(--header-text);
    background-color: var(--header-bg);
    z-index: 5;
}
.header__content{
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-l);
    width: 100%;
    height: 100%;
    transition: height 400ms ease-out;
    background-color: var(--header-bg);
    /* border: 1px solid red; */
}
.header-left-content{
    display: flex;
    flex-flow: row wrap;
    gap: var(--space-xl);
}
.nav{
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-l);
    /* width: 20rem; */
    /* border: 1px solid white; */
}
.nav__link{
    position: relative;
    overflow: visible;
}
.nav__link::after{
    content: '';
    position: absolute;
    bottom: -.8rem;
    left: 0;
    width: 0;
    height: .4rem;
    background-color: var(--header-text);
    border-radius: 1rem;
    transition: width 175ms ease-out;
}
.nav__link:hover::after, .nav__link:focus::after{
    width: 100%;
}
.nav__link--user{
    max-width: 10rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav--header{
    padding-top: .5rem;
}
.nav--login{
    justify-content: flex-end;
    align-items: center;
}
.user-area-wrapper{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    /* width: 18rem; */
}
.user-area{
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-l);
}
.user-area:hover>.nav__link::after, .user-area:focus>.nav__link::after{
    width: 100%;
}
.bolita-notificacion{
    position: absolute;
    width: 2rem;
    height: 2rem;
    bottom: 0;
    left: 0;
    border-radius: 50%;
    background-color: var(--success-500);
    color: var(--almost-white);
    font-size: 1.35rem;
    line-height: 2.1rem;
    font-weight: bold;
    text-align: center;
}
.img-perfil-nav{
    width: 5.5rem;
    height: 5.5rem;
    border: .35rem solid var(--primary-500);
    border-radius: 50%;
    overflow: hidden;
}

/* HEADER RESPONSIVE STUFF */
/* trigger para menú desplegable */
.nav-toggle{
    width: 4.5rem;
    height: 4.5rem;
    gap: .5rem;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    display: none;
}
.bar{
    width: 80%;
    height: .5rem;
    border-radius: .5rem;
    transform-origin: left;
    transition: all 400ms ease-out;
    background-color: var(--header-text);
}
.logo--pc{
    height: 3.5rem;
    display: block;
    width: auto;
    /* border: 1px solid white; */
}
.logo--mbl{display: none;}
.logo-footer{
    display: block;
    height: 3rem;
    width: auto;
}
/* ===== SEARCH FORM ===== */
.h-form{
    display: flex;
    flex-flow: row;
    gap: var(--space-s);
    height: 3.90rem;
    width: 25rem;
    margin-right: var(--space-sm);
    /* border: 1px solid blue; */
}
.h-input{
    position: relative;
    width: 100%;
    padding: var(--space-l) var(--space-l);
    border-radius: var(--br-xl);
    border: 0;
    /* outline: 1px solid var(--black); */
    background-color: var(--primary-50);
    font-size: 1.6rem;
    font-family: var(--primary-font);
    box-shadow: 0 0 0 0 var(--primary-500);

    /* --- TRANSICIÓN BOX-SHADOW DE PRUEBA --- */
    transition: box-shadow 125ms ease-out, outline 100ms ease-out;
}
.h-input:focus{
    transition: box-shadow 125ms ease-out, outline 100ms ease-out;
    outline: 2px solid var(--primary-500);

    /* --- TRANSICIÓN BOX-SHADOW DE PRUEBA --- */
    box-shadow: 0 0 2px 2px var(--primary-500);
}
.h-submit-wrapper{
    height: 100%;
}
.h-submit-button{
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

/* ===== BODY (CENTRAL CONTAINER) ===== */
.container{
    width: 100%;
    padding: var(--space-l);
    margin: 0 auto;
    color: var(--body-text);
    /* border: 1px solid red; */
}
.nav-aux{
    width: 100%;
    font-size: 2rem;
    font-weight: 700;
}
.nav-aux--bottom{
    font-size: 1.6rem;
}
.nav-aux a:hover{
    text-decoration: underline;
}
.title{
    color: var(--primary-500);
}
.title--secondary{
    color: var(--secondary-600);
}
.title--l{
    font-size: 4.5rem;
}
.title--m {
    font-size: 3rem;
}
.title--form{
    position: absolute;
    left:-8.5rem;
    bottom: -.5rem;
    font-size: 7rem;
    writing-mode: vertical-rl;
    transform: rotate(-180deg);
    /* border: 1px solid red; */
}
.title--landing{
    font-size: 4rem;
    line-height: 4rem;
}
.bg-fixed{
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    background: linear-gradient(360deg, var(--almost-black) 20%, var(--gray-900) 80%);
    z-index: -1;
}
.link-enphasis{font-weight: bold;}
.link-enphasis:hover{text-decoration: underline;}
.link-body{color: var(--black);}
.pagination{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: var(--space-s) 0;
    text-align: center;
}
.pagination--plus-response{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-l);
}
.pages, .res-btn{
    min-width: 2.5rem;
}
.pages{
    display: flex;
    flex-flow: row;
    align-items: center;
    gap: var(--space-s);
}
/* ===== FOOTER ===== */
.footer{
    min-height: 10rem;
    color: var(--footer-text);
    background-color: var(--footer-bg);
}
.footer__content{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-flow: row wrap;
    margin: 0 auto;
    padding: var(--space-l);
    height: 100%;
    width: 100%;
}
.nav--footer{
    width: auto;
    justify-content: flex-end;
}
.nav__link--footer:hover{text-decoration: underline;}

/* ===== LOADERS ===== */
.loader{
    /* background: linear-gradient(90deg, #a5a5a5 25%, #ebebeb 50%, #a5a5a5 75%); */
    background: linear-gradient(90deg,
        #a5a5a5 9%,
        #b6b6b6 21%,
        #cdcdcd 32%,
        #dadada 42%,
        #ebebeb 50%,
        #dadada 58%,
        #cdcdcd 68%,
        #b6b6b6 79%,
        #a5a5a5 90%
    );
    background-size: 400%;
    animation: inf-gradient-background-horizontal 3s linear forwards infinite;
}
@keyframes inf-gradient-background-horizontal {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
/* ===== EXTRA (AVISOS, CONFIRMACIONES, ETC) ===== */
.profile-img-wrapper-admin-buddies::after{
    content: 'ADMIN';
    position: absolute;
    background-color: var(--error-500);
    padding: var(--space-xs) var(--space-s);
    bottom: 0;
    right: 0;
    border-radius: var(--br-default);
    font-size: 1.2rem;
    color: var(--almost-white);
    font-weight: bold;
}
.img-user-post-wrapper-admin-feed::after{
    content: 'ADMIN';
    position: absolute;
    background-color: var(--error-500);
    padding: var(--space-xs) var(--space-s);
    bottom: 0;
    right: 0;
    border-radius: var(--br-default);
    font-size: 1.2rem;
    color: var(--almost-white);
    font-weight: bold;
}
@media screen and (max-width: 500px) {
    .img-user-post-wrapper-admin-feed::after{
        font-size: .9rem;
        padding: var(--space-ultra-s) var(--space-xs);
    }
}
.admin-card--profile{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 var(--space-m);
    background-color: var(--error-500);
    border-radius: var(--br-default);
    font-size: 1.6rem;
    color: var(--almost-white);
    font-weight: bold;
}
.user-area-admin::after{
    content: 'ADMIN';
    position: absolute;
    background-color: var(--error-500);
    padding: var(--space-xs) var(--space-s);
    bottom: 0;
    left: 3rem;
    border-radius: var(--br-default);
    font-size: 1rem;
    color: var(--almost-white);
    font-weight: bold;
}
.confirmation-wrapper{
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000a2;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    top:0;
    left:0;
    z-index: 5;
    transition: opacity 250ms ease-out;
}
.confirmation-card{
    width: min(90%, 50rem);
    min-height: 2rem;
    background-color: var(--primary-50);
    color: var(--almost-black);
    border-radius: var(--br-default);
    overflow: hidden;
    /* border: 5px solid var(--primary-500); */
    box-shadow: 6px 6px 3px 0 var(--primary-500);
    transition: transform 250ms ease-out;
}
.confirmation-card__body{
    padding: var(--space-l);
    text-align: center;
}
.confirmation-card__footer{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-l);
    width: 100%;
    padding: var(--space-l);
    padding-top:0;
}
.card-dark-loader{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #000000a2;
    font-size: 7.5rem;
    color: var(--primary-500);
}

/* ===== UTILITIES ===== */
.limit-width{max-width: var(--width-default);}
.img-fit{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.img-contain{
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.shadow-lightgray{
    box-shadow: 1px 1px 4px 0px rgba(156,156,156,1);
}
.font-size-ultra-big{font-size: 5.5rem;}
.text-align-center{text-align: center;}
.text-align-left{text-align: left;}
.text-align-justify{text-align: justify;}
.text-white{color: #fff;}
.d-none{display: none !important;}
.d-block{display: block;}
.d-flex{display: flex;}
.width-100{width:100%;}
.height-100{height: 100%;}
.flex-center-center{
    justify-content: center;
    align-items: center;
}
.underline{text-decoration: underline;}
.primary-font{font-family: var(--primary-font);}
.primary-color{color: var(--primary-500);}
.color-white{color: var(--almost-white);}
.pos-absolute{position: absolute;}
.font-size-default{font-size: 1.6rem;}
.awesome-icon-portrait{
    font-size: 10rem;
    color: var(--primary-500);
}
.awesome-icon-portrait--secondary{
    font-size: 7.5rem;
    color: var(--secondary-600);
}

.rotate-infinite{animation: rotate 1s linear infinite;}
@keyframes rotate {
    to{transform: rotate(360deg);}
}

.opacity-fade{animation: opacity-fade 1s linear forwards;}
@keyframes opacity-fade {
    0%, 50%{opacity: 1}
    100%{opacity:0;}
}

.opacity-fade-in-short{animation: opacity-fade-in 250ms ease-out forwards;}
@keyframes opacity-fade-in {
    0%{opacity: 0}
    100%{opacity: 1;}
}

.opacity-fade-out-short{animation: opacity-fade-out 250ms ease-out forwards;}
@keyframes opacity-fade-out {
    0%{opacity: 1}
    100%{opacity: 0;}
}

.scale-in-short{animation: scale-in 250ms ease-out forwards;}
@keyframes scale-in {
    0%{transform: scale(0);}
    100%{transform: scale(1);}
}

.scale-out-short{animation: scale-out 250ms ease-out forwards;}
@keyframes scale-out {
    0%{transform: scale(1);}
    100%{transform: scale(0);}
}

/* ========== BREAK POINTS ========== */
/* ===== EXTRA (1600px) ===== */
@media screen and (max-width: 1600px) {
    /* === UTILITIES / SMALL CORRECTIONS === */
    .title--landing{
        font-size: 3rem;
        line-height: 3.5rem;
    }
    .font-size-ultra-big{font-size: 4.5rem;}
}
/* ===== EXTRA (1300px) ===== */
@media screen and (max-width: 1300px) {
    /* === UTILITIES / SMALL CORRECTIONS === */
    .title--landing{
        font-size: 2.5rem;
        line-height: 3rem;
    }
    .font-size-ultra-big{font-size: 4rem;}
}
/* ===== EXTRA (1200px) ===== */
@media screen and (max-width: 1200px) {
    /* === SMALL CORRECTIONS (NAV) === */
    .header__content{
        padding:0;
    }
}
/* ===== EXTRA (950px) ===== */
@media screen and (max-width: 950px) {
    /* === SMALL CORRECTIONS === */
    .h-form{
        width: 20rem;
    }
}
/* ===== EXTRA (915px) ===== */
@media screen and (max-width: 915px) {
    /* === SMALL CORRECTIONS === */
    .h-form{
        width: 15rem;
    }
}
/* ===== EXTRA (840px) ===== */
@media screen and (max-width: 840px) {
    /* === SMALL CORRECTIONS === */
    .h-form{
        width: 13rem;
        margin-right: 0;
    }
}
/* ===== TABLET (810px) ===== */
@media screen and (max-width: 810px) {
    /* ===== HEADER ===== */
    /* HEADER RESPONSIVE STUFF */
    .header{position: sticky; top:0;}
    .nav-toggle{display: flex; flex-flow: column; justify-content: center;}
    .logo--pc{display: none;}
    .logo--mbl{
        display: block;
        height: 5.5rem;
        width: auto;
    }
    .header__content{
        flex-direction: column;
        justify-content: flex-start;
        gap: var(--space-ultra-l);
        height: 0;
        top: 10rem;
        left:0;
        position: fixed;
        overflow: hidden;
        border-top: 1px solid var(--gray-900);
        box-shadow: inset 0px 6px 10px 0px #000;
    }
    .nav--login, .nav--header{width: auto;}
    .nav--login{
        order: 1;
        flex-flow: column;
        justify-content: center;
        margin-top: var(--space-ultra-l);
        gap: var(--space-xxl);
    }
    .header-left-content{
        order: 2;
        width: 100%;
    }
    .h-form{
        margin:0;
        width: max(100%, 25rem);
    }
    .nav--header{
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    .user-area-wrapper{
        justify-content: center;
    }
    .nav__link--header{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: var(--space-l) 0;
        border-top: 1px solid var(--gray-900);
    }
    .nav__link--header:last-child{border-bottom: 1px solid var(--gray-900);}
}

/* ===== EXTRA (580px) ===== */
@media screen and (max-width: 580px) {
    /* ===== BODY (CENTRAL CONTAINER) ===== */
    .title--form{
        position: absolute;
        left:-.5rem;
        top: -8.5rem;
        bottom: auto;
        font-size: 7rem;
        writing-mode: horizontal-tb;
        transform: rotate(360deg);
    }
}


/* ===== PHONE (480px) ===== */
@media screen and (max-width: 480px) {
    /* === UTILITIES / SMALL CORRECTIONS === */
    .title--landing{
        font-size: 2rem;
        line-height: 2.5rem;
    }
    .font-size-ultra-big{font-size: 3rem;}
    .footer__content{justify-content: center;}
}

/* ===== EXTRA (405px) ===== */
@media screen and (max-width: 405px) {
    /* === PAGINATION === */
    .pagination--plus-response{
        flex-flow: column;
    }
}

/* ===== EXTRA/EFFECTS (ALWAYS DOWN, EVEN AFTER MQ) ===== */
.height-calc-100-header{
    height: calc(100vh - 10rem);
    height: calc(100dvh - 10rem);
}
.bar--top-efect{
    transform: rotate(45deg);
    /* margin-left: .2rem;  */
}
.bar--middle-efect{opacity: 0;}
.bar--bottom-efect{
    transform: rotate(-45deg);
    margin-top: .5rem;
}

