#cookie_container{
    display: flex;
    flex-direction: column;
    position: fixed;
    color: black;
    right: 0;
    bottom: 0;
    margin: 0 20px 20px 0;
    width: 270px;
    height: 300px;
    padding: 15px;
    font-family: "Roboto", sans-serif;
    z-index: 2000;

    /* Efecto cristal */
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
    backdrop-filter: blur( 7px );
    -webkit-backdrop-filter: blur( 4px );
    border-radius: 15px;
    border: 1px solid rgba( 255, 255, 255, 0.18 );
}

.cookie_message{
    margin: 0 0 20px 0;
    font-weight: 500;
}

.cookie_main_message{
    font-size: 16px;
    line-height: 1.6;
}

.check_container{
    display: flex;
    flex-direction: row;
    /* justify-content: center; */
    align-items: center;
    margin-bottom: 5px;
}

.check_container:last-child{
    margin-bottom: 5px;
}

.check_container span:nth-child(2){
    margin-left: 15px;
}

#cookie_container .little-text{
    font-size: 12px;
}

.cookie_text{
    margin-top: 10px;
}


/* The switch - the box around the slider */
#cookie_container .container {
  width: 51px;
  height: 31px;
  position: relative;
  transform: scale(0.9);
}

/* Hide default HTML checkbox */
#cookie_container .checkbox {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

#cookie_container .switch {
  width: 100%;
  height: 100%;
  display: block;
  background-color: #e9e9eb;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease-out;
}

/* The slider */
.slider {
  width: 27px;
  height: 27px;
  position: absolute;
  left: calc(50% - 27px/2 - 10px);
  top: calc(50% - 27px/2);
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.15), 0px 3px 1px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease-out;
  cursor: pointer;
}

#cookie_container .checkbox:checked + .switch {
  background-color: #34C759;
}

#cookie_container .checkbox:checked + .switch .slider {
  left: calc(50% - 27px/2 + 10px);
  top: calc(50% - 27px/2);
}



.buttons_container{
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 5px;
}

.button_cookie {
    margin-right: 15px;
  border: 1px solid rgb(255, 255, 255);
  border-radius: 0.5rem;
  color: white;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25rem;
  padding: 9px;
  text-align: center;
  -webkit-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-select: none;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
    transform: scale(1.2);
}

.button_cookie:hover {
    color: white;
    transition: all 0.2s;

}

.button_cookie:focus {
  outline: 2px solid rgba(0, 0, 0, 0.1);
  outline-offset: 2px;
}

.button_cookie:focus-visible {
  -webkit-box-shadow: none;
  box-shadow: none;
}

.button_cookie_accept{
    background-color: rgba(34, 226, 75, 0.71);
    background-color: #22e24b;
}

.button_cookie_reject{
    background-color: rgba(226, 34, 34, 0.71);
    background-color: #e22222;
}

.cookie_policy{
    margin: auto 0 auto 0;
    cursor: pointer;
}
.cookie_policy:hover{
    color: purple;
    transition: all 0.2s ;
}

#cookie_container * {
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

#cookie_container {
    transition:
            width 0.6s ease,
            height 0.6s ease,
            padding 0.6s ease,
            border-radius 0.6s ease,
            background-color 0.6s ease;
    overflow: hidden;
}



/* Al minimizar */
#cookie_container.minimize {
    cursor: pointer;
    width: 60px;
    height: 60px;
    /*padding: 0;*/
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 0 12px -5px rgba(31, 38, 135, 0.37);
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Oculta el contenido al minimizar (menos el icono) */
#cookie_container.minimize *:not(i) {
    opacity: 0;
    display: none;
    pointer-events: none;
    transform: scale(0.95); /* antes era 0.8, ahora un poco más sutil */
}

#cookie_container.fade-content *:not(i) {
    opacity: 0;
    display: none;
    transform: scale(0.9);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}


/* Opcional: ajustar el ícono */
#cookie_container.minimize i {
    position: absolute;
    font-size: 24px;
    color: darkgrey;
    transform: scale(2);
    transition: font-size 0.5s ease;
}





/*------------------------------------*/
/*Config del modal*/
/*------------------------------------*/

.glass-modal {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translate(-50%);
    z-index: 9999;
    width: 700px;
    max-width: 95%;
    max-height: 80vh;
    overflow-y: auto;
    color: #000;
    opacity: 0;
    visibility: hidden;
    /* Efecto cristal */
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
}

.glass-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.glass-content {
    padding: 20px;
}

.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.glass-header h4 {
    margin: 0;
}

.glass-body {
    margin-bottom: 20px;
}

.glass-row {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.3);
}

.glass-footer {
    margin-top: 20px;
}

/* Switch y checkboxes */
#cookie_container .check_container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

#cookie_container .check_container span {
    margin-left: 15px;
}

#cookie_container .container {
    width: 51px;
    height: 31px;
    position: relative;
    transform: scale(0.9);
}

#cookie_container .checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.switch {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #e9e9eb;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.slider {
    width: 27px;
    height: 27px;
    position: absolute;
    left: calc(50% - 27px / 2 - 10px);
    top: calc(50% - 27px / 2);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 3px 1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-out;
    cursor: pointer;
}

.checkbox:checked + .switch {
    background-color: #34C759;
}

.checkbox:checked + .switch .slider {
    left: calc(50% - 27px / 2 + 10px);
    top: calc(50% - 27px / 2);
}

/* Botones */
.buttons_container {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.button_cookie {
    border: 1px solid white;
    border-radius: 0.5rem;
    color: white;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25rem;
    padding: 9px;
    text-align: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    transform: scale(1.2);
}

.button_cookie:hover {
    color: white;
    transition: all 0.2s;
}

.button_cookie:focus {
    outline: 2px solid rgba(0, 0, 0, 0.1);
    outline-offset: 2px;
}

.button_cookie:focus-visible {
    box-shadow: none;
}

.button_cookie_accept {
    background-color: #22e24b;
}

.button_cookie_reject {
    background-color: #e22222;
}

.cookie_text {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.4;
}

/* Tabs */
#cookie_container .nav-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#cookie_container .nav-tabs li {
    padding: 10px 15px;
    cursor: pointer;
}

#cookie_container .nav-tabs li.active {
    border-bottom: 2px solid #22e24b;
}

#cookie_container .tab-content .tab-pane {
    display: none;
}

#cookie_container .tab-content .tab-pane.active {
    display: block;
}








