﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&display=swap');


html, body, .mdc-dialog .mdc-dialog__content, .mat-tooltip {
    /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
    font-family: "Barlow", sans-serif !important;
}

#mediaBody {
    overflow: hidden !important;
    background-image: url("../img/Fondo.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#mediaBody #blur {
    height: 100vh !important;
    /*backdrop-filter: blur(4px);*/
}


/* ---------------------------------------------------------- */
/* LOADER */


.spinner {
    cursor: progress;
    align-items: center;
    background: rgb(23 22 22 / 8%);
    display: flex;
    height: 100vh;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    padding-right: 0;
    transition: opacity 0.3s linear;
    width: 100%;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loader {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: block;
    margin:15px auto;
    position: relative;
    color: #757575;
    left: -100px;
    box-sizing: border-box;
    animation: shadowRolling 2s linear infinite;
}

@keyframes shadowRolling {
    0% {
        box-shadow:
                0px 0 rgba(82, 82, 82, 0), /* Invisible al inicio */
                0px 0 rgba(82, 82, 82, 0),
                0px 0 rgba(82, 82, 82, 0),
                0px 0 rgba(82, 82, 82, 0);
    }
    12% {
        box-shadow:
                115px 0 rgba(82, 82, 82, 1), /* Color más fuerte (100% opacidad) */
                0px 0 rgba(82, 82, 82, 0),
                0px 0 rgba(82, 82, 82, 0),
                0px 0 rgba(82, 82, 82, 0);
    }
    25% {
        box-shadow:
                130px 0 rgba(82, 82, 82, 0.8), /* 80% de opacidad para la segunda bolita */
                115px 0 rgba(82, 82, 82, 1),
                0px 0 rgba(82, 82, 82, 0),
                0px 0 rgba(82, 82, 82, 0);
    }
    36% {
        box-shadow:
                145px 0 rgba(82, 82, 82, 0.6), /* 60% de opacidad para la tercera bolita */
                130px 0 rgba(82, 82, 82, 0.8),
                115px 0 rgba(82, 82, 82, 1),
                0px 0 rgba(82, 82, 82, 0);
    }
    50% {
        box-shadow:
                160px 0 rgba(82, 82, 82, 0.4), /* 40% de opacidad para la cuarta bolita */
                145px 0 rgba(82, 82, 82, 0.6),
                130px 0 rgba(82, 82, 82, 0.8),
                115px 0 rgba(82, 82, 82, 1);
    }
    62% {
        box-shadow:
                230px 0 rgba(82, 82, 82, 0),
                160px 0 rgba(82, 82, 82, 0.4),
                145px 0 rgba(82, 82, 82, 0.6),
                130px 0 rgba(82, 82, 82, 0.8);
    }
    75% {
        box-shadow:
                230px 0 rgba(82, 82, 82, 0),
                230px 0 rgba(82, 82, 82, 0),
                160px 0 rgba(82, 82, 82, 0.4),
                145px 0 rgba(82, 82, 82, 0.6);
    }
    87% {
        box-shadow:
                230px 0 rgba(82, 82, 82, 0),
                230px 0 rgba(82, 82, 82, 0),
                230px 0 rgba(82, 82, 82, 0),
                160px 0 rgba(82, 82, 82, 0.4);
    }
    100% {
        box-shadow:
                230px 0 rgba(82, 82, 82, 0),
                230px 0 rgba(82, 82, 82, 0),
                230px 0 rgba(82, 82, 82, 0),
                230px 0 rgba(82, 82, 82, 0);
    }
}


/* ---------------------------------------------------------- */
/* BOTONES */


button:disabled:hover, button[disabled]:hover, button:disabled, button[disabled], .btnDisabled {
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    box-shadow: none !important;
}

.btnInicio {
    font-size: 24px;
    width: auto !important;
    border: 0;
    border-radius: 25px;
    padding: 10px 25px 12px 25px !important;
    background-color: #ebebeb;
    color: #585454;
    position: absolute;
    top: 37px;
    left: 40px;
    transition: 0.4s ease-in-out;
}

.btnInicio:hover {
    background-color: white;
    color: #3d3d3d;
    box-shadow: 0 6px 13px 1px #c2c2c2;
}

.btnInicio span {
    letter-spacing: 1px;
    font-size: 14px;
    margin-left: 10px;
    font-weight: 600;
    text-align: end;
}

.btnAccion {
    padding: 12px 45px;
    border-radius: 25px;
    border: 0 !important;
    background-color: #e2e2e2;
    color: #5c5c5c;
    letter-spacing: 1px;
    font-size: 18px;
    transition: 0.4s ease-in-out;
}

.btnAccion:not(:disabled):hover, .btnAccion:not(:disabled):focus, .btnAccion:not(:disabled):focus-visible {
    background-color: #eaeaea !important;
    color: #404040 !important;
    outline: none;
    box-shadow: 0 6px 13px 1px #c2c2c2;
}

.btnX {
    background-color: transparent !important;
    border: 0 !important;
    color: #6f6963 !important;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    font-size: 23px;
    padding: 0 10px 1px 10px;
    display: block;
}

.btnTeclado {
    width: 62px;
    padding: 13px 0;
    font-size: 27px;
    border-radius: 50%;
    border: 0;
    margin: 14px 18px;
    color: #585454;
    background-color: #d6d6d6;
    text-shadow: 0 2px 1px #ffffff;
    transition: 0.4s ease-in-out;
}

.btnTeclado:hover, .btnTeclado:focus {
    background-color: #f7f7f7;
    text-shadow: 0 2px 4px #aaaaaa;
    box-shadow: 0 9px 31px -5px #585858 !important;
}
.custom-button:hover + i, .custom-button:focus + i {
    background-color: #f7f7f7;
    text-shadow: 0 2px 4px #aaaaaa;
    box-shadow: 0 9px 31px -5px #585858 !important;
}
.btnDialogo {
    width: auto !important;
    padding: 19px 120px !important;
    font-size: 19px;
    border-radius: 28px;
    background-color: #d4d4d4;
    border: 0 !important;
    color: #5c5c5c;
    letter-spacing: 1px;
    transition: 0.4s ease-in-out;
}

.btnDialogo:not(:disabled):hover, .btnDialogo:not(:disabled):focus, .btnDialogo:not(:disabled):focus-visible {
    background-color: #dddddd !important;
    color: #404040 !important;
    outline: none;
    box-shadow: 0 6px 13px 1px #c2c2c2;
}

.custom-button {
    background-color: transparent;
    border: 0;
    border-radius: 12px;
    height: 98px;
    position: absolute;
    padding-left: 25px;
    font-size: 24px;
    right: 17px;
}

.custom-button i {
    color: black;
    padding: 5px 8px;
    border-radius: 5px 12px 12px 5px;
    background-color: #d6d6d6;
    text-shadow: 0 2px 1px #ffffff;
    transition: 0.4s ease-in-out;
}

.triangle-left {
    position: absolute;
    left: 1.5px;
    width: 0;
    height: 0;
    border-top: 19.7px solid transparent;
    border-bottom: 19.7px solid transparent;
    border-right: 25px solid #d6d6d6;
    top: 49.9%;
    transform: translateY(-49%);
    transition: 0.4s ease-in-out;
}

.custom-button:hover i, .custom-button:focus i {
    background-color: #f7f7f7;
    text-shadow: 0 2px 4px #aaaaaa;
    box-shadow: 0 9px 31px -5px #585858 !important;
}

.custom-button:hover div.triangle-left, .custom-button:focus div.triangle-left {
    border-right: 25px solid #f7f7f7;
}


/* ---------------------------------------------------------- */
/* FORMS/LABEL/INPUT */


.labelAccion {
    padding: 11px 20px;
    border-radius: 15px;
    background-color: #d0d0d0;
    color: #585454;
    margin-right: 8px !important;
}

.inputAccion {
    border-radius: 15px;
    padding: 11px 38px 11px 65px;
    border: 1px solid #aaaaaa;
    background-color: #efefef;
}

.inputAccion::placeholder {
    color: #a9a9a9;
}

.inputAccion:focus-visible, .inputAccion:hover, .inputAccion.focus {
    border: 0 !important;
    margin: 2px 1px 2px 1px;
    outline: 3px double #c4b6a5;
    box-shadow: 0 6px 11px -3px #c2c2c2;
    padding: 10px 38px 10px 65px !important;
    background-color: #f7f7f7;
}


/* ---------------------------------------------------------- */
/* ICONOS */


.divIconCheck {    
    color: #1cad69;
    background-color: transparent;
    width: auto;
    padding-top: 156px;
    font-size: 147px;
    text-align: center;
}

.iconoActual::before {
    animation: moverIcono 1s cubic-bezier(0.3, 0, 0.1, 1) forwards;
}

#iconCheck::before {
    box-shadow: 0 0 90px -24px #457860;
    border-radius: 50%;
    background-color: #d6deda;
    transform: rotate(-62deg);
}

@keyframes moverIcono {
    from {
        transform: rotate(-62deg);
    }
    to {
        transform: rotate(-360deg);
    }
}


/* ---------------------------------------------------------- */
/* CONTENEDORES */


.divTexto h1 {
    letter-spacing: 8px;
    font-size: 55px;
    font-weight: normal;
    color: #3d3d3d;
}

.divTexto h2 {
    font-size: 27px;
    font-weight: 400;
    margin-top: 98px;
    color: #6f6f6f;
}

.cardContainer, .containerDespacho {
    height: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease-in-out;
}

.cardContainer.transition {
    transform: translateX(-100%);
}

.containerDespacho.transitionRight {
    transform: translateX(100%);
}

.cardDespacho {
    width: 80% !important;
    border: 0;
    border-radius: 50px;
    background-color: #e7e7e7;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    padding: 130px 85px !important;
}

.cardDespacho:hover {
    scale: 1.1;
    background-color: white;
}


/* ---------------------------------------------------------- */
/* DIALOGOS */


.divMdc {
    display: grid !important;
    grid-template-rows: 6fr 1fr 2fr 1fr;
    grid-gap: 50px;
    justify-content: center !important;
}

.mdc-dialog .mdc-dialog__surface {
    min-height: 62% !important;
    max-height: 80% !important;
    min-width: 80% !important;
    max-width: 80% !important;
    border-radius: 30px !important;
}

.mdc-dialog__container {
    width: 100% !important;
}

.mdc-dialog .mdc-dialog__content {
    background-color: #f3f3f3 !important;
}

.mat-toast-container>div {
    width: 322px !important;
    border-radius: 15px !important;
    margin-bottom: 18px !important;
}

.mat-toast {
    padding: 29px 39px 29px 18px !important;
    line-height: 2 !important;
    border-radius: 15px !important;
    font-size: 19px !important;
}

.mat-toast-message {
    display: flex !important;
    text-align: center !important;
}

.mat-toast-icon {
    width: auto !important;
    position: relative !important;
    top: -20px !important;
}

.mat-toast-close-button {
    right: 3px !important;
    top: 3px !important;
    padding: 0 !important;
    margin-left: 0 !important;
    justify-content: center;
    align-items: center;
    display: flex !important;
}

.mat-toast-body {
    padding: 0 16px !important;
}


/* ---------------------------------------------------------- */
/* ANIMACION TECLADO */


#divTeclado {
    position: absolute;
    bottom: 200px;
    text-align: center;
    margin: 15px;
    padding: 0 !important;
    width: 300px;
    z-index: 1;
    visibility: hidden;
    transition: transform 4s ease;
}

#divPick {
    z-index: 2;
    transition: transform 4s ease;
}

#divTeclado.visible {
    animation: slideDownTeclado 0.5s forwards !important;
    transition: transform 4s ease;
}

#divPick.visible {
    animation: slideUp 0.5s forwards !important;
    transition: transform 4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-200px);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-200px);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDownTeclado {
    from {
        transform: translateY(-530px);
    }
    to {
        transform: translateY(-180px);
    }
}

@keyframes slideUpTeclado {
    from {
        transform: translateY(-180px);
    }
    to {
        transform: translateY(-530px);
    }
}