:root {
    --color-bg: #ffffff;
    --color-text: #1f1f11;
    --color-borde: #a2a2a2;
    --color-input-border: #A2A2A2;
    --color-hover: #585858;
    --color-focus: #000000;
    --color-reiniciar: #bdbdbd;
    --color-compartir: transparent;
    --color-compartir-border: #23c483;
    --color-ticket-text: #1f1f11;
    --color-switch: #d7d7d7;
    --color-persona: #1f1f1f;
    --color-dollar: #1f1f1f;
    --color-percent: #1f1f1f;
    --color-puntito1: #000000;
    --color-puntito2: #ffffff;
}


body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg);
    color: var(--color-text);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 360px;
    padding: 8px 16px;
}

#cuentitaLogo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

#cuentitaLogo img {
    width: 40px;
    height: 40px;
}

.tituloCuentita {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 24px;
}

#cuentita {
    background-color: var(--color-bg);
    width: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

#equitativo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.selectWrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.selectWrapper select {
    width: 100%;
    padding: 5px 40px 5px 12px;
    appearance: none;
    border: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: none;
    font-size: 16px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
    color: var(--color-text);
}

.selectWrapper::after {
    content: "";
    background-color: var(--color-text);
    -webkit-mask-image: url('/svg/arrow_drop_down.svg');
    mask-image: url('/svg/arrow_drop_down.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    width: 20px;
    height: 20px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    appearance: none;
    -moz-appearance: textfield;
}

.invisibleInput {
    border: none;
    outline: none;
    background-color: transparent;
    font-size: 16px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
    color: var(--color-text);
    width: 100%;
}

.inputContainer svg {
    width: 24px;
    height: 24px;
}

#person {
    fill: currentColor;
}

#dollar {
    width: 20px;
    height: 20px;
    fill: var(--color-dollar);
}

#iconoPorcentaje {
    fill: var(--color-text);
}

#iconoFijo {
    fill: var(--color-text);
}

.inputContainer {
    display: flex;
    align-items: center;
    justify-content: left;
    border: solid 2px;
    border-color: var(--color-borde);
    border-radius: 999px;
    padding: 5px 15px;
    width: 100%;
    /* max-width: 360px; */
    box-sizing: border-box;
    transition: border-color ease 0.3s;
}

.inputContainer:hover {
    border-color: var(--color-hover);
}

.inputContainer:focus-within {
    border-color: var(--color-focus);
}

.selector-propina {
    display: flex;
    position: relative;
    border-radius: 999px;
    overflow: hidden;
    border: 3px solid #e9e9e9;
    background-color: #e9e9e9;

    --fondo-left: 0%;
}

.selector-propina label {
    flex: 1;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    font-size: 12px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
    color: #bdbdbd;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-radius 0.3s ease;
    position: relative;
    z-index: 1;

}

.selector-propina .contenido {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 5px;
    box-sizing: border-box;
}


.selector-propina input[type="radio"] {
    display: none;
}

.selector-propina input[type="radio"]:checked+label {
    color: #1f1f11;
}

.selector-propina svg.icono {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.selector-propina::before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--fondo-left);
    width: calc(100% / 3);
    height: 100%;
    background: white;
    border-radius: 999px;
    transition: left 0.3s ease;
    z-index: 0;
}

#contenedor-propina {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#inputPropinaContainer {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

#unidadPropina {
    display: flex;
    align-items: center;
}

.iconoPropina {
    width: 16px;
    height: 16px;
    display: none;
}

.iconoPropina.visible {
    width: 16px;
    height: 16px;
    display: inline-block;
}


#ticket {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#ticket.visible {
    display: flex;
    flex-direction: column;
    margin: 0px 10px;
    opacity: 1;
}

#ticket p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 5px 0px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text);
}

#ticket p.totalBold {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

#botones {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#compartir {
    padding: 1rem 1rem;
    width: 100%;
    font-size: 16px;
    text-transform: uppercase;
    font-family: "Poppins", sans-serif;
    letter-spacing: 2.5px;
    font-weight: 500;
    color: var(--color-text);
    background-color: var(--color-compartir);
    border: solid 2px #23c483;
    border-radius: 999px;
    /* box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1); */
    transition: all 0.3s ease 0s;
    cursor: pointer;
    outline: none;
}

#compartir:hover {
    background-color: #23c483;
    border-color: #23c483;
    box-shadow: 0px 15px 20px rgba(46, 229, 157, 0.4);
    color: #fff;
    transform: translateY(-7px);
}

#compartir:active {
    transform: translateY(-1px);
}


#btnCalcular {
    padding: 10px 10px;
    width: 100%;
    border: solid 2px var(--color-borde);
    border-radius: 999px;
    color: var(--color-text);
    z-index: 1;
    background: none;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 17px;
    transition: all 250ms;
    overflow: hidden;
}

#btnCalcular::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background-color: #246dc0;
    z-index: -1;
    transition: all 250ms
}

#btnCalcular:hover {
    color: #e8e8e8;
    border-color: #246dc0;
}

#btnCalcular:hover::before {
    width: 100%;
}


#btnReiniciar {
    padding: 10px 10px;
    width: 100%;
    border: 2px solid var(--color-borde);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s ease;
    z-index: 1;
    color: var(--color-text);
}

#btnReiniciar::before {
    content: '';
    width: 0;
    height: 500%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    background: #db4545;
    transition: .5s ease;
    display: block;
    z-index: -1;
}

#btnReiniciar:hover::before {
    width: 105%;
}

#btnReiniciar:hover {
    border-color: #db4545;
    color: #ffffff;
}


.checkbox-wrapper-5 .check {
    --size: 25px;
    position: relative;
    background: linear-gradient(90deg, #f19af3, #f099b5);
    line-height: 0;
    perspective: 400px;
    font-size: var(--size);
}

.checkbox-wrapper-5 .check input[type="checkbox"],
.checkbox-wrapper-5 .check label,
.checkbox-wrapper-5 .check label::before,
.checkbox-wrapper-5 .check label::after,
.checkbox-wrapper-5 .check {
    appearance: none;
    display: inline-block;
    border-radius: var(--size);
    border: 0;
    transition: .35s ease-in-out;
    box-sizing: border-box;
    cursor: pointer;
}

.checkbox-wrapper-5 .check label {
    width: calc(2.2 * var(--size));
    height: var(--size);
    background: #d7d7d7;
    overflow: hidden;
}

.checkbox-wrapper-5 .check input[type="checkbox"] {
    position: absolute;
    z-index: 1;
    width: calc(.8 * var(--size));
    height: calc(.8 * var(--size));
    top: calc(.1 * var(--size));
    left: calc(.1 * var(--size));
    background: linear-gradient(45deg, #dedede, #ffffff);
    box-shadow: 0 6px 7px rgba(0, 0, 0, 0.3);
    outline: none;
    margin: 0;
}

.checkbox-wrapper-5 .check input[type="checkbox"]:checked {
    left: calc(1.3 * var(--size));
}

.checkbox-wrapper-5 .check input[type="checkbox"]:checked+label {
    background: transparent;
}

.checkbox-wrapper-5 .check label::before,
.checkbox-wrapper-5 .check label::after {
    content: "· ·";
    position: absolute;
    overflow: hidden;
    left: calc(.15 * var(--size));
    top: calc(.5 * var(--size));
    height: var(--size);
    letter-spacing: calc(-0.04 * var(--size));
    color: #9b9b9b;
    font-family: "Times New Roman", serif;
    z-index: 2;
    font-size: calc(.6 * var(--size));
    border-radius: 0;
    transform-origin: 0 0 calc(-0.5 * var(--size));
    backface-visibility: hidden;
}

.checkbox-wrapper-5 .check label::after {
    content: "●";
    top: calc(.65 * var(--size));
    left: calc(.2 * var(--size));
    height: calc(.1 * var(--size));
    width: calc(.35 * var(--size));
    font-size: calc(.2 * var(--size));
    transform-origin: 0 0 calc(-0.4 * var(--size));
}

.checkbox-wrapper-5 .check input[type="checkbox"]:checked+label::before,
.checkbox-wrapper-5 .check input[type="checkbox"]:checked+label::after {
    left: calc(1.55 * var(--size));
    top: calc(.4 * var(--size));
    line-height: calc(.1 * var(--size));
    transform: rotateY(360deg);
}

.checkbox-wrapper-5 .check input[type="checkbox"]:checked+label::after {
    height: calc(.16 * var(--size));
    top: calc(.55 * var(--size));
    left: calc(1.6 * var(--size));
    font-size: calc(.6 * var(--size));
    line-height: 0;
}

#botonesPersonas {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#consumicion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#personasContainer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.containerDePersonas {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%; 
    max-width: 360px; 
    box-sizing: border-box;
}
  
.containerDePersonas .inputContainer {
    flex: 1;
}

.button {
    --width: 100%;
    --height: 35px;
    --tooltip-height: 35px;
    --tooltip-width: 90px;
    --gap-between-tooltip-to-button: 18px;
    --button-color: transparent;
    --tooltip-color: #fff;

    width: var(--width);
    height: var(--height);
    background: var(--button-color);
    position: relative;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    border-radius: 999px;
    border: solid 2px var(--color-borde);
    font-family: "Poppins", sans-serif;
    transition: background 0.3s;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    cursor: pointer;
}

.button-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.text, .icon {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: top 0.4s ease;
}

.icon {
    color: #fff;
    top: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
}

.icon svg {
    width: 26px;
    height: 26px;
    max-width: 100%;
    max-height: 100%;
    stroke: var(--color-text);
    display: block;
}


.button:hover .text {
    top: -100%;
}

.button:hover .icon {
    top: 0;
    /* background-color: #db4545; */
}

/* Tooltip */
.button::before {
    content: attr(data-tooltip);
    position: absolute;
    width: var(--tooltip-width);
    height: var(--tooltip-height);
    background-color: #555;
    font-size: 0.9rem;
    color: #fff;
    border-radius: 0.25em;
    line-height: var(--tooltip-height);
    bottom: calc(var(--height) + var(--gap-between-tooltip-to-button));
    left: calc(50% - var(--tooltip-width) / 2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
    z-index: 10;
}

.button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    left: calc(50% - 10px);
    bottom: calc(100% + var(--gap-between-tooltip-to-button) - 10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}

.button:hover::before, .button:hover::after {
    opacity: 1;
    visibility: visible;
}

#detalleConsumicion {
    margin: 0px 10px;
}

#detalleConsumicion p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 5px 0px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text);
}

#detalleConsumicion p.totalBold {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

#consumicion,
#ticket,
#ticketConsumicion {
  display: none;
  transition: display 12s ease;
}

.card {
    max-width: 28rem;
    margin: auto;
    background-color: var(--color-bg);
    border: solid 1px var(--color-borde);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: "Inter", sans-serif;
    overflow: hidden;
}

.card-header,
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.user-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.avatar img{
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.username {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--color-text);
}

.handle {
    font-size: 0.875rem;
    color: var(--color-reiniciar);
}

.dropdown-button {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-borde);
    border-radius: 0.375rem;
    cursor: pointer;
}

.dropdown-button:hover {
    outline: none;
    background-color:  #3b82f6;
    color: white;
}

.dropdown-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3b82f6;
}

.iconX {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-text);
}

.icon-small {
    width: 1rem;
    height: 1rem;
    opacity: 0.5;
}

.card-body {
    padding: 1rem 1.5rem;
}

.text-content {
    font-size: 0.875rem;
    color: var(--color-text);
}

.card-footer {
    border-top: 1px solid var(--color-borde);
    padding: 1rem;
    gap: 1rem;
}

.footer-icons,
.footer-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Optional for screen-reader-only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

ul {
    list-style: none;
    padding-inline-start: 0;
    font-family: "Poppins", sans-serif;
}

.example-2 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.example-2 .icon-content {
    margin: 0 10px;
    position: relative;
}

.example-2 .icon-content .tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    font-size: 14px;
    transition: all 0.3s ease;
}

.example-2 .icon-content:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: -50px;
}

.example-2 .icon-content a {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #4d4d4d;
    background-color: var(--color-bg);
    transition: all 0.3s ease-in-out;
}

.example-2 .icon-content a:hover {
    box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}

.example-2 .icon-content a svg {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
}

.example-2 .icon-content a:hover {
    color: white;
}

.example-2 .icon-content a .filled {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #000;
    transition: all 0.3s ease-in-out;
}

.example-2 .icon-content a:hover .filled {
    height: 100%;
}

.example-2 .icon-content a[data-social="linkedin"] .filled,
.example-2 .icon-content a[data-social="linkedin"]~.tooltip {
    background-color: #0274b3;
}

.example-2 .icon-content a[data-social="github"] .filled,
.example-2 .icon-content a[data-social="github"]~.tooltip {
    background-color: #24262a;
}

.example-2 .icon-content a[data-social="instagram"] .filled,
.example-2 .icon-content a[data-social="instagram"]~.tooltip {
    background: linear-gradient(45deg,
            #405de6,
            #5b51db,
            #b33ab4,
            #c135b4,
            #e1306c,
            #fd1f1f);
}

.example-2 .icon-content a[data-social="youtube"] .filled,
.example-2 .icon-content a[data-social="youtube"]~.tooltip {
    background-color: #000000;
}

body.dark-mode {
    --color-bg: #1b1b1b;
    --color-text: #f1f1f1;
    --color-borde: #333333;
    --color-input-border: #444444;
    --color-hover: #777777;
    --color-focus: #ffffff;
    --color-reiniciar: #999999;
    --color-compartir: transparent;
    --color-compartir-border: #23c483;
    --color-ticket-text: #f1f1f1;
    --color-switch: #444444;
    --color-persona: #f1f1f1;
    --color-dollar: #f1f1f1;
    --color-percent: #f1f1f1;
    --color-puntito1: #ffffff;
    --color-puntito2: #e5e5f7;
    background-color: var(--color-bg);
    color: var(--color-text);
}