@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-color: #f05a1a;
    --secondary-color: #45699f;
    --box-shadow: 0 10px 20px 5px rgba(0, 0, 0, 0.1);
    --background-color: #f1f1f1;
    --white: rgb(255, 255, 255);
    --black: rgb(26, 26, 26);
    --principal-font: "Raleway", Arial, sans-serif;
    --navbar-height: 66px;
    accent-color: var(--primary-color);

}

* {
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

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

b {
    color: var(--black);
}


/* ----------- Barras de Scroll ------------ */
::-webkit-scrollbar {
    width: 8px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ---------------------------------------- */
/* Etiquetas Generales */
#header {
    height: fit-content;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: var(--box-shadow);
    font-size: 16px;
    transition: color 0.3s;
	position: sticky;
	top: 0;
	z-index: 9999;

    & .linkMenuItem {
        text-decoration: none;
        color: var(--white);
        transition: color 0.3s, backgroundColor 0.3s;
        padding: 7px 10px;
        border-radius: 20px;
        margin: auto 0;

        &:hover {
            color: var(--primary-color);
            background-color: var(--white);
            font-weight: 700;
        }
    }


    #logo-wrapper {
        height: 100%;
        padding: .5rem;

        img {
            height: 50px;
        }
    }


    #menu_utils {
        display: flex;
        gap: 10px;
        align-items: center;
        align-self: flex-end;
        margin: 1rem 1rem 1rem auto;

        .support {
            position: absolute;
            top: 1.5rem;
            right: 180px;
        }

        .support-icon {
            scale: 1.8;
            color: var(--black);
        }

        .support-icon:hover+.tooltip {
            opacity: 1;
            visibility: visible;
        }

        .support-icon:hover {
            opacity: 1;
            transition: 0.3s;
            visibility: visible;
            transform: translateY(-3px);
        }

        .tooltip {
            position: absolute;
            width: 120px;
            top: 150%;
            left: 50%;
            transform: translateX(-50%);
            background-color: var(--black);
            color: var(--white);
            padding: 5px;
            border-radius: 5px;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
        }

        .logout-form {
            position: absolute;
            margin: 1rem;
            top: 0px;
            right: 0px;

            .logoutButton {
                background-color: var(--black);

                &:hover {
                    transition: 0.3s;
                    box-shadow: var(--box-shadow);
                    -webkit-box-shadow: var(--box-shadow);
                    -moz-box-shadow: var(--box-shadow);
                }
            }
        }
    }
}

/* Para aplicar cuando se esté en la misma página a la cual hace referencia el elemento del menú */
.linkMenuItemSelected {
    color: var(--primary-color) !important;
    background-color: var(--white);
    font-weight: 700;
}

body {
    font-family: "Raleway", Arial, sans-serif;
    background-color: var(--background-color);
    background-size: cover;
    background-position: center;
    margin: 0;
}


h1,
h2 {
    color: var(--primary-color)
}


.loginBox {
    max-width: 30%;
}

form:not(.logout-form, .loginBox, .formu) {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

fieldset {
    border-radius: 15px;
    border: 0.1px solid #91af8a;
    width: 50%;
}

span {
    margin: 0;
}


/* //////////////// */

/* BOTONES */

.corporateButton {
    width: auto;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 100px;
    cursor: pointer;
    border: solid 0.5px var(--white);
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;

    &:hover {
        /* background-color: var(--black); */
        transform: translateY(-2px);
        box-shadow: var(--box-shadow);
        border: 1px solid var(--white);
    }
}

.corporateButtonSecundary {
    width: auto;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;

    &:hover {
        background-color: var(--primary-color);
        color: var(--white);
        /* transform: translateY(-2px); */
        box-shadow: var(--box-shadow);
        border: 1px solid var(--white);
    }
}

.delete-button {
    background-color: #d33b3b;
}


.logout-form-assignation {
    margin: 1rem;
    top: 0px;
    right: 0px;
}

.toggle-button {
    cursor: pointer;
    color: var(--black);
    width: auto;
    text-align: center;
    padding: 3px;
    background-color: var(--white);

    &:hover {
        background-color: rgb(192, 191, 191);
        transform: translateY(0);
        box-shadow: none !important;
    }
}

.addServiceButton {
    width: auto;
    margin-top: 20px;
}

/* //////////////// */

.pillCheck {
    border: 1px solid gray;
    background-color: white;
    border-radius: 30px;
    padding: 3px 5px;
    white-space: nowrap;
    display: inline-block;
    font-size: .85rem;
    font-weight: normal;

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

    &:has(input[type=checkbox]:checked) {
        background-color: #F05A1A;
        color: white;
    }
}

.containerUserArea {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90%;
    height: auto;
    margin: 2em auto 3em auto;

    & p {
        color: var(--black);
    }
}


.assignment-container {
    width: 100%;
    margin: 5px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.first-view-items {
    display: flex;
    height: auto;
    padding-right: 32px;
    align-items: center;
    font-size: 0.9rem;

    & p {
        margin: 15px 0 15px 0;
    }
}

.first-row-state-mod {
    width: auto;
    display: flex;
    gap: 10px;
}

.field-width {
    flex: 1 1 0;
    text-align: center;
    margin: 0;
    /* margin: 0 0 0 calc(0 - 100px); */
}

.half-width {
    flex: 0.35 1 0;
}

.additional-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-items: center;

    .first-row-info {
        display: flex;
        width: 100%;
    }
}

.label-edit-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 3px;
}


.additional-info-item {
    box-sizing: border-box;
    margin: 5px;
}

.assignment-item,
.caption_row {
    gap: 1px;
    border: 1px solid #ccc;
    background-color: var(--white);
    border-radius: 10px;
    margin: 1px;
    width: 100%;
    height: auto;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;

    & p {
        color: var(--black);
    }
}

.caption_row {
    position: sticky;
    top: 0px;
    z-index: 99;
    padding-right: 25px;

}

.show {
    font-size: 0.9rem;
    display: flex;
    gap: 10px;
    margin: 0 1% 1% 1%;
    align-content: space-around;
    align-items: baseline;
    justify-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #ededed;
    border-radius: 10px;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.full-width {
    width: 100%;
}

.additional-info .field-width.full-width,
.additional-info .edit-textArea {
    /* width: calc(100% - 32px); */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.buttons-container {
    justify-content: center;
}

/* /////////////////// */

.form-group {
    margin-bottom: 20px;
}

.deleted-item {
    border: 1px solid #ccc;
    background-color: rgb(253, 151, 151);
    border-radius: 15px;
    margin: 2px;
    width: 100%;
    height: auto;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
    text-align: center;
}

.thread {
    gap: 1px;
    border: 1px solid #ccc;
    background-color: var(--white);
    border-radius: 10px;
    margin: 1px;
    width: 100%;
    height: auto;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;


    display: flex;
    height: auto;
    padding-right: 32px;
    align-items: center;
    font-size: 0.9rem;

    & p {
        margin: 10px 0 10px 0;
    }
}


.edit-input {
    height: 50px;
    font-family: var(--principal-font);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;

    &:not(.no-resize) {
        resize: vertical;
    }
}


.edit-textArea {
    min-height: 150px;
    max-height: 300px;
}

.priceAndState {
    width: 95%;
    height: auto;
    display: flex;
    flex-direction: column;
    margin: 20px;
    gap: 10px;
    justify-content: space-around;
    align-items: center;
}

.edit-form {
    padding: 12px;
    border-radius: 10px;
    background-color: var(--white);
}


#updateComentsDiv,
.updateComentsDiv {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    justify-content: center;
    transition: background-color 0.5s ease;
}

.updateFormSelector {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.addService {
    background-color: var(--white);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.5s ease;

    & form {
        text-align: left;
    }
}


#updateStateDiv {
    width: 100%;
    display: flex;
}

.closeOportunity {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.servicesCheckbox {
    width: 85%;
    display: none;
    flex-direction: column;
    align-items: center;
}

.checkboxServicesList {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.disabled-input {
    border-color: rgb(146, 146, 146);
    background-color: #cac9c9;
    color: rgb(58, 58, 58);
}

.enabled-input {
    border-color: green;
    background-color: #b1ecb1;
    color: var(--black);/
}


.editComents {
    width: 100%;
    display: flex;
    /* justify-content: center; */
    align-items: center;
    gap: 16px;

    & .update-button {
        height: 50px;
    }
}

/* .editComents textarea{
    width: 70% !important;
} */



/*------------------------------ SUBMENU ------------------------------*/
.subMenu {
    /* background-color: var(--primary-color); */
    color: white;
    display: flex;
    justify-content: center;
    gap: 8%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    padding: 20px 0;

    & a {
        text-decoration: none;
        text-align: center;
        transition: background-color 0.5s ease;

        &:hover {
            color: var(--primary-color);
            font-weight: bold;
        }
    }
}


.selectedSubmenu {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: underline;
}

/* ------------------------------ FIN SUBMENU ------------------------------ */

.addServicesCheckBox {
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
    justify-content: center;

}



/* MEDIA QUERYS */

@media screen and (max-width: 1100px) {
    /* .show {
        grid-template-columns: auto !important;
    } */

    .first-view-items,
    .first-view-items p,
    .additional-info,
    .additional-info-item,
    .show {
        flex-direction: column;
        padding-right: 0%;
        margin: 8px;
        margin-top: 10px;
        grid-gap: 0;
    }
}

@media screen and (max-width: 680px) {
    .container {
        margin-bottom: 8%;
    }

    .show {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;

    }

    .priceAndState {
        display: flex;
        justify-content: center;
        align-items: center;
        height: auto;
    }

    .edit-input {
        width: 80%;
    }

    .edit-textArea {
        margin-top: 20px;
        width: 100%;
    }

    header {
        flex-direction: column;
        height: auto;
        padding: 0;
    }

    .logout-form {
        position: relative;
    }

    .support {
        position: relative;
        top: 0;
        right: 0;
    }

    .servicesCheckbox {
        display: block;
    }

    .closeRequest {
        width: 80%;
    }

    .editComents {
        flex-direction: column;
    }

}

/* KEY FRAMES */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}