@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --bg-app: #f4f7fa;
    --card-bg: #ffffff;
    --primary: #6c5ce7; /* Morado de la imagen */
    --secondary: #00cec9; /* Cian de la imagen */
    --text-dark: #1e272e;
    --text-muted: #808e9b;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    --radius: 24px;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
}

/* Menú lateral (Sidebar) para igualar la estética */
.sidebar {
    width: 80px;
    background: var(--card-bg);
    margin: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    gap: 30px;
}

.sidebar .logo {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 12px;
    margin-bottom: 20px;
}

.sidebar .icon {
    width: 24px;
    height: 24px;
    background: #eccc68; /* Iconos simulados */
    border-radius: 50%;
    opacity: 0.3;
}

.sidebar .icon.active {
    background: var(--secondary);
    opacity: 1;
}

/* Contenedor Principal */
.main-content {
    flex: 1;
    padding: 20px 40px 40px 10px;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    color: var(--text-dark);
}

.header p {
    color: var(--text-muted);
    margin: 5px 0 0 0;
    font-size: 14px;
}

/* Layout de Tarjetas tipo Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: none;
}

.card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Lista de opciones minimalista */
.opcion-lista {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f2f6;
    cursor: pointer;
    transition: all 0.2s;
}

.opcion-lista:last-child {
    border-bottom: none;
}

.opcion-lista:hover {
    padding-left: 8px;
}

/* Checkbox circular morado como en la imagen */
.opcion-lista input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-check {
    width: 20px;
    height: 20px;
    border: 2px solid #dcdde1;
    border-radius: 50%; /* Checkbox redondo */
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.opcion-lista input:checked ~ .custom-check {
    background-color: var(--primary);
    border-color: var(--primary);
}

.opcion-lista input:checked ~ .custom-check::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.item-nombre {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
}

.opcion-lista input:checked ~ .item-nombre {
    color: var(--text-dark);
}

.item-precio {
    font-weight: 800;
    color: var(--text-dark);
}

/* Selectores y Botones redondeados */
.select-pago {
    width: 100%;
    padding: 15px 20px;
    border-radius: 50px; /* Estilo píldora */
    border: 1px solid #dcdde1;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
    appearance: none;
    background: #f8f9fa;
    margin-bottom: 20px;
}

.zona-botones {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    flex: 1;
    padding: 16px 20px;
    border-radius: 50px;
    border: none;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-accept {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

.btn-decline {
    background: var(--secondary);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 206, 201, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
}

.caja-total {
    text-align: center;
    margin-bottom: 20px;
}

.caja-total h2 {
    font-size: 42px;
    color: var(--text-dark);
    margin: 5px 0;
    font-weight: 800;
}

.caja-total p {
    color: var(--primary);
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

#pix_container {
    display: none;
    text-align: center;
    margin-top: 15px;
}

#pix_container img {
    max-width: 180px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}