:root {
    --mc-acento: #e94b35;
    --mc-acento-txt: #fff;
    --mc-radio: 10px;
}

.mc-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 50%;
    background: var(--mc-acento);
    color: var(--mc-acento-txt);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform .15s ease;
}

.mc-fab:hover { transform: scale(1.06); }
.mc-fab.mc-visible { display: flex; }

.mc-fab-cuenta {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}

.mc-fondo {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mc-fondo.mc-abierto { display: flex; }

.mc-caja {
    background: #fff;
    color: #222;
    border-radius: var(--mc-radio);
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.mc-caja-cabeza {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #eee;
}

.mc-caja-cabeza h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.mc-cerrar {
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0 4px;
}

.mc-caja-cuerpo {
    padding: 18px;
    overflow-y: auto;
    flex: 1;
}

.mc-caja-pie {
    padding: 14px 18px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.mc-boton {
    display: block;
    width: 100%;
    padding: 13px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--mc-acento);
    color: var(--mc-acento-txt);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

.mc-boton:disabled { opacity: .55; cursor: not-allowed; }

.mc-boton-suave {
    background: #f0f0f0;
    color: #333;
    margin-top: 8px;
}

.mc-agregar {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 7px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--mc-acento);
    color: var(--mc-acento-txt);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.mc-agregar-flotante {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 5;
    margin: 0;
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
}

.mc-anfitrion { position: relative; }

.mc-grupo { margin-bottom: 18px; }

.mc-grupo h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.mc-grupo-ayuda {
    margin: 0 0 8px;
    font-size: 12px;
    color: #888;
}

.mc-opcion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f2f2f2;
    cursor: pointer;
    font-size: 14px;
}

.mc-opcion input { width: 18px; height: 18px; accent-color: var(--mc-acento); }
.mc-opcion span { flex: 1; }
.mc-opcion b { font-weight: 700; color: #444; }

.mc-campo { margin-bottom: 14px; }

.mc-campo label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.mc-campo input,
.mc-campo select,
.mc-campo textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #222;
    background: #fff;
}

.mc-campo input:focus,
.mc-campo select:focus,
.mc-campo textarea:focus { outline: 2px solid var(--mc-acento); border-color: transparent; }

.mc-tel { display: flex; }

.mc-tel-prefijo {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #f5f5f5;
    font-size: 15px;
    font-weight: 600;
    color: #555;
}

.mc-tel input { border-radius: 0 8px 8px 0; }

.mc-cantidad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 18px 0;
}

.mc-cantidad button {
    width: 38px;
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    line-height: 1;
}

.mc-cantidad span { font-size: 20px; font-weight: 700; min-width: 34px; text-align: center; }

.mc-renglon {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f2f2f2;
}

.mc-renglon-cuerpo { flex: 1; min-width: 0; }

.mc-renglon-cuerpo strong { display: block; font-size: 14px; color: #222; }

.mc-renglon-extra { font-size: 12px; color: #888; margin-top: 2px; }

.mc-renglon-precio { font-weight: 700; font-size: 14px; white-space: nowrap; color: #222; }

.mc-quitar {
    border: 0;
    background: transparent;
    color: #c33;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 0;
    text-decoration: underline;
}

.mc-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.mc-vacio { text-align: center; color: #999; padding: 40px 10px; font-size: 15px; }

.mc-aviso {
    padding: 11px 13px;
    border-radius: 8px;
    background: #fdecea;
    color: #a3271a;
    font-size: 13px;
    margin-bottom: 14px;
    display: none;
}

.mc-aviso.mc-visible { display: block; }

.mc-nota-pie { font-size: 12px; color: #888; margin: 10px 0 0; text-align: center; }

.mc-exito { text-align: center; padding: 20px 6px; }
.mc-exito-icono { font-size: 52px; line-height: 1; }
.mc-exito h3 { margin: 14px 0 6px; font-size: 20px; color: #222; }
.mc-exito p { margin: 0 0 6px; color: #666; font-size: 14px; }
.mc-exito .mc-folio { font-size: 22px; font-weight: 800; color: var(--mc-acento); letter-spacing: .5px; }

@media (max-width: 480px) {
    .mc-caja { max-height: 94vh; }
    .mc-fab { right: 14px; bottom: 14px; }
}
