* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F2F2F2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    padding-bottom: 0;
}

.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 0;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #073C5C;
    padding-bottom: 20px;
}

.header h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 5px;
}

.header .subtitle {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.header-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-ver-ventas,
.btn-admin-panel {
    background: #073C5C;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-ver-ventas:hover,
.btn-admin-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-admin-panel {
    background: #6DA633;
}

.btn-admin-panel:hover {
    box-shadow: 0 4px 12px rgba(109, 166, 51, 0.3);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-section {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background-color: #f9f9f9;
}

.form-section legend {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 0 10px;
    margin-left: -10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

input[type="text"],
input[type="number"],
select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
    input[type="number"]:focus,
    select:focus {
    outline: none;
    border-color: #073C5C;
    box-shadow: 0 0 0 3px rgba(7, 60, 92, 0.1);
    background-color: #fff;
}.readonly-input,
.total-input {
    background-color: #f5f5f5;
    cursor: not-allowed;
    font-weight: 500;
    color: #333;
}

.total-group {
    background: #073C5C;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.total-group label {
    color: white;
    font-size: 16px;
}

.total-group .total-input {
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: bold;
    color: #073C5C;
    padding: 12px;
}

/* Combos List */
.combos-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

/* Combo Item */
.combo-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.combo-item:hover {
    border-color: #073C5C;
    box-shadow: 0 4px 12px rgba(7, 60, 92, 0.1);
}

.combo-item > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.combo-item > div:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.combo-item select,
.combo-item input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    transition: all 0.2s ease;
    font-family: inherit;
}

.combo-item select:focus,
.combo-item input:focus {
    outline: none;
    border-color: #073C5C;
    box-shadow: 0 0 0 3px rgba(7, 60, 92, 0.1);
    background-color: #fff;
}

.combo-item-label {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.combo-item-price {
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-align: center;
    padding: 15px;
    background: #6DA633;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(109, 166, 51, 0.2);
}

/* Cantidad Controls - Botones +/- */
.combo-cantidad-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cantidad-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 10px;
}

.btn-cantidad-mas,
.btn-cantidad-menos {
    background: #073C5C;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-cantidad-mas:active,
.btn-cantidad-menos:active {
    transform: scale(0.95);
}

.btn-cantidad-mas:hover,
.btn-cantidad-menos:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cantidad-display {
    font-weight: 700;
    font-size: 18px;
    color: #333;
    min-width: 40px;
    text-align: center;
}

.btn-remove-combo {
    background: #DD5F2C;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(221, 95, 44, 0.2);
}

.btn-remove-combo:hover {
    background: #c94b1f;
    box-shadow: 0 4px 12px rgba(221, 95, 44, 0.4);
    transform: translateY(-2px);
}

.btn-remove-combo:active {
    transform: translateY(0);
}

.btn-add-combo {
    background: #6DA633;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(109, 166, 51, 0.2);
}

.btn-add-combo:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-add-combo:disabled {
    background: linear-gradient(135deg, #bbb 0%, #999 100%);
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-add-combo:disabled:hover {
    transform: none;
}

.btn-add-combo-hint {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Venta Summary */
.venta-summary {
    background: #FFFBF0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.venta-summary h3 {
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 2px solid #073C5C;
    padding-bottom: 10px;
}

.resumen-detalles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 13px;
}

.resumen-item {
    background: white;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid #6DA633;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.resumen-item:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.resumen-item-label {
    font-weight: 700;
    color: #333;
    font-size: 15px;
    margin-bottom: 8px;
}

.resumen-item-value {
    font-weight: 600;
    color: #073C5C;
    margin-top: 6px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.resumen-combo {
    background: #f0fde8;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #6DA633;
    border: 1px solid #e0f0d8;
}

.resumen-vacio {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    color: #999;
    font-weight: 600;
    border: 2px dashed #ddd;
    font-size: 14px;
}

.total-venta {
    background: #073C5C;
    color: #F2F2F2;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
}

.total-venta span {
    font-size: 20px;
    font-weight: 700;
    color: #F2F2F2;
}
.total-venta lablel{
    color: #F2F2F2;
}

/* Selector de Entrega */
.delivery-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.delivery-option input[type="radio"] {
    display: none;
}

.delivery-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
}

.delivery-option input[type="radio"]:checked + .delivery-label {
    border-color: #073C5C;
    background-color: #f0fde8;
    box-shadow: 0 4px 12px rgba(7, 60, 92, 0.2);
}

.delivery-icon {
    font-size: 32px;
}

.delivery-text {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Botón Submit */
.btn-submit {
    padding: 14px;
    background: #073C5C;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(7, 60, 92, 0.4);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

.btn-spinner.hidden {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mensajes */
.mensaje {
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-top: 20px;
    animation: slideIn 0.3s ease;
}

.mensaje.hidden {
    display: none;
}

.mensaje.success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.mensaje.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loader Animation */
.loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #073C5C;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Vendedor Container */
.vendedor-container {
    display: flex;
    align-items: center;
    position: relative;
}

.vendedor-container select {
    flex: 1;
}

/* Cliente Input Container */
.cliente-input-container {
    position: relative;
}

.cliente-input-container input {
    width: 100%;
}

/* Clientes Dropdown */
.clientes-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #073C5C;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.clientes-dropdown.hidden {
    display: none;
}

.clientes-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #073C5C;
    color: white;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid #ddd;
}

.clientes-dropdown-title {
    flex: 1;
}

.btn-close-dropdown {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.btn-close-dropdown:hover {
    opacity: 0.8;
}

.clientes-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cliente-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #333;
}

.cliente-item:last-child {
    border-bottom: none;
}

.cliente-item:hover {
    background-color: #f0fde8;
    color: #6DA633;
    font-weight: 500;
}

.cliente-item.active {
    background-color: #073C5C;
    color: white;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        border-radius: 12px;
    }

    .header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .header h1 {
        font-size: 26px;
    }

    .form {
        gap: 18px;
    }

    .form-section {
        padding: 15px;
    }

    .form-section legend {
        font-size: 15px;
    }

    input[type="text"],
    input[type="number"],
    select {
        padding: 14px;
        font-size: 16px;
    }

    .resumen-detalles {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .delivery-selector {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .delivery-label {
        padding: 15px;
        gap: 8px;
    }

    .delivery-icon {
        font-size: 28px;
    }

    .delivery-text {
        font-size: 13px;
    }

    .cliente-item {
        padding: 14px 15px;
        font-size: 15px;
    }

    .combo-item {
        padding: 12px;
        gap: 12px;
        grid-template-columns: 1fr;
    }

    .combo-item > div:last-child {
        grid-column: 1;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .combo-item select,
    .combo-item input {
        padding: 11px;
        font-size: 15px;
    }

    .btn-cantidad-mas,
    .btn-cantidad-menos {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .cantidad-display {
        font-size: 16px;
    }

    .btn-remove-combo {
        padding: 11px 14px;
        font-size: 13px;
    }

    .btn-add-combo {
        padding: 12px 18px;
        font-size: 15px;
        margin-bottom: 6px;
    }

    .btn-add-combo-hint {
        font-size: 11px;
        margin-bottom: 15px;
    }

    .btn-submit {
        padding: 13px;
        font-size: 15px;
    }

    .venta-summary {
        padding: 15px;
    }

    .venta-summary h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .resumen-detalles {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .resumen-item {
        padding: 10px 12px;
        margin-bottom: 8px;
    }

    .resumen-item-label {
        font-size: 13px;
    }

    .resumen-item-value {
        font-size: 12px;
        gap: 6px;
    }

    .resumen-combo {
        font-size: 12px;
        padding: 3px 6px;
    }

    .resumen-vacio {
        padding: 15px;
        font-size: 13px;
    }

    .total-venta {
        padding: 12px;
        font-size: 15px;
    }

    .total-venta span {
        font-size: 18px;
    }

    .resumen-item {
        padding: 7px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .header {
        margin-bottom: 15px;
        padding-bottom: 12px;
        border-bottom: 2px solid #667eea;
    }

    .header h1 {
        font-size: 22px;
        margin-bottom: 3px;
    }

    .header .subtitle {
        font-size: 12px;
    }

    .form {
        gap: 15px;
    }

    .form-section {
        padding: 12px;
        border-radius: 6px;
    }

    .form-section legend {
        font-size: 14px;
        padding: 0 8px;
        margin-left: -8px;
    }

    .form-group {
        gap: 6px;
        margin-bottom: 12px;
    }

    label {
        font-size: 13px;
    }

    input[type="text"],
    input[type="number"],
    select {
        padding: 12px;
        font-size: 16px;
        border-radius: 5px;
    }

    .resumen-detalles {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .resumen-item {
        padding: 8px 10px;
        font-size: 12px;
        margin-bottom: 6px;
    }

    .resumen-item-label {
        font-size: 12px;
    }

    .resumen-item-value {
        font-size: 11px;
        gap: 4px;
    }

    .resumen-combo {
        font-size: 11px;
        padding: 2px 5px;
    }

    .resumen-vacio {
        padding: 12px;
        font-size: 12px;
    }

    .combo-item {
        padding: 10px;
        gap: 10px;
        grid-template-columns: 1fr;
    }

    .combo-item > div:last-child {
        grid-column: 1;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .venta-summary {
        padding: 12px;
        margin-top: 15px;

    }

    .venta-summary h3 {
        font-size: 14px;
        margin-bottom: 10px;
        padding-bottom: 8px;
        
    }

    .total-venta {
        padding: 11px;
        font-size: 13px;
        border-radius: 6px;
    }

    .total-venta span {
        font-size: 16px;
    }

    .delivery-selector {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .delivery-label {
        padding: 12px;
        gap: 6px;
        border-radius: 6px;
    }

    .delivery-icon {
        font-size: 24px;
    }

    .delivery-text {
        font-size: 12px;
    }

    .combo-item {
        padding: 9px;
        gap: 7px;
        border-radius: 6px;
    }

    .combo-item > div {
        gap: 5px;
    }

    .combo-item-label {
        font-size: 11px;
    }

    .combo-item select,
    .combo-item input {
        padding: 10px;
        font-size: 15px;
        border-radius: 5px;
    }

    .cantidad-controls {
        gap: 6px;
        padding: 6px;
    }

    .btn-cantidad-mas,
    .btn-cantidad-menos {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 50%;
    }

    .cantidad-display {
        font-size: 15px;
        min-width: 35px;
    }

    .combo-item-price {
        font-size: 14px;
        padding: 8px;
    }

    .btn-remove-combo {
        padding: 10px 12px;
        font-size: 12px;
        margin-top: 4px;
        border-radius: 5px;
    }

    .btn-add-combo {
        padding: 11px 16px;
        font-size: 14px;
        margin-bottom: 6px;
        border-radius: 6px;
    }

    .btn-add-combo-hint {
        font-size: 10px;
        margin-bottom: 15px;
    }

    .btn-submit {
        padding: 12px;
        font-size: 14px;
        border-radius: 6px;
        margin-top: 8px;
    }

    .cliente-item {
        padding: 11px 12px;
        font-size: 13px;
    }

    .clientes-dropdown-header {
        padding: 10px 12px;
        font-size: 12px;
    }

    .clientes-dropdown {
        border-radius: 0 0 5px 5px;
        max-height: 250px;
    }

    .mensaje {
        padding: 12px;
        font-size: 13px;
        border-radius: 6px;
        margin-top: 15px;
    }

    .loader {
        width: 14px;
        height: 14px;
        border: 2px solid #f3f3f3;
        border-top: 2px solid #667eea;
        margin-left: 6px;
    }

    .vendedor-container {
        gap: 8px;
    }

    .vendedor-container select {
        width: 100%;
    }

    .cliente-input-container {
        width: 100%;
    }

    .cliente-input-container input {
        width: 100%;
    }
}

/* ===== NUEVO SELECTOR DE COMBOS ===== */
.combo-selector {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.combo-selector .form-group {
    margin-bottom: 15px;
}

.combo-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.combo-selector select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.combo-selector select:hover {
    border-color: #DD5F2C;
}

.combo-selector select:focus {
    outline: none;
    border-color: #DD5F2C;
    box-shadow: 0 0 0 3px rgba(221, 95, 44, 0.1);
}

.cantidad-controls-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-cantidad-mas-menos {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
}

.btn-cantidad-mas-menos:hover {
    border-color: #DD5F2C;
    background-color: #fff5f0;
    color: #DD5F2C;
}

.combo-selector input[type="number"] {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    background-color: #f8f9fa;
}

.combo-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
    gap: 15px;
}

.combo-price {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
}

.btn-add-to-pedido {
    flex: 1;
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-to-pedido:hover:not(:disabled) {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.btn-add-to-pedido:active:not(:disabled) {
    transform: translateY(0);
}

.btn-add-to-pedido:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

/* ===== SECCIÓN DE PEDIDO ===== */
.pedido-items {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
    min-height: 60px;
}

.pedido-items:empty::before {
    content: '📋 Agrega combos a tu pedido';
    display: block;
    color: #999;
    font-style: italic;
    text-align: center;
    width: 100%;
    padding: 20px 0;
}

.pedido-vacio {
    color: #999;
    font-style: italic;
    text-align: center;
    width: 100%;
    padding: 20px;
}

.pedido-item {
    background: white;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    border-left: 4px solid #DD5F2C;
    gap: 8px;
}

.pedido-item-info {
    flex: 1;
    min-width: 150px;
}

.pedido-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 16px;
}

.pedido-item-cantidad {
    font-size: 13px;
    color: #666;
}

.pedido-item-price {
    font-size: 16px;
    font-weight: bold;
    color: #DD5F2C;
    min-width: 70px;
    text-align: right;
}

.btn-remove-pedido {
    padding: 6px 10px;
    background-color: #DD5F2C;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-remove-pedido:hover {
    background-color: #c94b1f;
}

.btn-add-another-combo {
    width: 100%;
    padding: 12px;
    background-color: #6DA633;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn-add-another-combo:hover {
    background-color: #5d9428;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(109, 166, 51, 0.3);
}

.btn-add-another-combo:active {
    transform: translateY(0);
}

/* Modal de Confirmación */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
}

.modal-content.modal-confirmacion {
    text-align: center;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-cerrar-modal {
    padding: 10px 24px;
    background-color: #6DA633;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Combo Selector */
    .combo-selector {
        padding: 15px;
    }

    .combo-selector .form-group {
        margin-bottom: 12px;
    }

    .combo-selector select {
        font-size: 14px;
        padding: 8px;
    }

    .cantidad-controls-inline {
        gap: 8px;
    }

    .btn-cantidad-mas-menos {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .combo-selector input[type="number"] {
        width: 50px;
        font-size: 14px;
    }

    .combo-price {
        font-size: 20px;
    }

    .btn-add-to-pedido {
        padding: 10px 15px;
        font-size: 14px;
    }

    /* Pedido Items */
    .pedido-items {
        padding: 10px;
        max-height: 300px;
    }

    .pedido-item {
        padding: 10px;
        gap: 6px;
    }

    .pedido-item-name {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .pedido-item-cantidad {
        font-size: 12px;
    }

    .pedido-item-price {
        font-size: 14px;
        min-width: 60px;
    }

    .btn-remove-pedido {
        padding: 5px 8px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .btn-add-another-combo {
        padding: 10px;
        font-size: 14px;
        margin-top: 10px;
    }

    /* Total Venta */
    .total-venta {
        padding: 10px 0;
        border-top: 2px solid #ddd;
        margin-top: 10px;
    }

    .total-venta label {
        font-size: 14px;
    }

    .total-venta span {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    /* Combo Selector Mobile */
    .combo-selector {
        padding: 12px;
    }

    .combo-selector select {
        font-size: 13px;
        padding: 6px;
    }

    .combo-preview {
        flex-direction: column;
        gap: 10px;
        padding-top: 10px;
    }

    .combo-price {
        width: 100%;
        text-align: center;
        font-size: 18px;
        border: none;
        padding: 0;
    }

    .btn-add-to-pedido {
        width: 100%;
    }

    /* Pedido Items Mobile */
    .pedido-items {
        padding: 8px;
        max-height: 250px;
    }

    .pedido-item {
        padding: 8px;
        flex-direction: column;
        gap: 6px;
    }

    .pedido-item-info {
        width: 100%;
        min-width: auto;
    }

    .pedido-item-name {
        font-size: 13px;
    }

    .pedido-item-price {
        width: 100%;
        text-align: right;
        font-size: 16px;
    }

    .btn-remove-pedido {
        width: 100%;
        padding: 6px;
        font-size: 11px;
    }

    .btn-add-another-combo {
        padding: 10px;
        font-size: 13px;
    }

    /* Total Venta Mobile */
    .total-venta {
        padding: 12px 0;
    }

    .total-venta label {
        display: block;
        margin-bottom: 4px;
        font-size: 13px;
    }

    .total-venta span {
        display: block;
        font-size: 20px;
    }
}

.btn-cerrar-modal:hover {
    background-color: #5d9428;
}

.btn-cerrar-modal:active {
    background-color: #52781f;
}

/* ===== LOADING SPINNER & RESPONSIVE STYLES ===== */

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.hidden {
    display: none;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spinner-container p {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

/* Spinner Animation */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #F2BC57;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Inline Loaders */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(7, 60, 92, 0.3);
    border-top: 3px solid #073C5C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* RESPONSIVE DESIGN - Mobile First */

/* Extra Small Devices (< 360px) */
@media (max-width: 360px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
        border-radius: 12px;
    }

    .header h1 {
        font-size: 24px;
    }

    .header-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .btn-ver-ventas,
    .btn-admin-panel {
        width: 100%;
        padding: 12px 16px;
        font-size: 13px;
    }

    .form-section {
        padding: 15px;
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group select {
        font-size: 14px;
        padding: 8px;
    }
}

/* Small Devices (360px - 480px) */
@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .container {
        padding: 25px 15px;
        max-width: 100%;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .header {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .header h1 {
        font-size: 26px;
    }

    .header-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-ver-ventas,
    .btn-admin-panel {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
    }

    .form-section {
        padding: 18px;
        margin-bottom: 18px;
        border-radius: 10px;
    }

    .form-section legend {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select {
        font-size: 14px;
        padding: 10px;
        border-radius: 6px;
    }

    .combo-selector {
        gap: 12px;
    }

    .cantidad-controls-inline {
        gap: 8px;
    }

    .btn-cantidad-mas-menos {
        flex: 1;
        padding: 8px;
        font-size: 16px;
    }

    .combo-preview {
        flex-direction: column;
        gap: 10px;
    }

    .combo-price {
        font-size: 20px;
    }

    .btn-add-to-pedido {
        padding: 10px;
        font-size: 13px;
        border-radius: 6px;
    }

    .pedido-items {
        max-height: 300px;
        overflow-y: auto;
    }

    .pedido-item {
        padding: 10px;
        font-size: 13px;
        margin-bottom: 8px;
    }

    .btn-remove-pedido {
        padding: 6px;
        font-size: 12px;
    }

    .delivery-option {
        margin-bottom: 12px;
    }

    .delivery-label {
        padding: 10px;
        font-size: 14px;
    }

    .delivery-icon {
        font-size: 18px;
    }

    .btn-submit {
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
    }

    .modal-content {
        width: 90%;
        margin: 20px auto;
        border-radius: 12px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-body {
        font-size: 14px;
        padding: 15px;
    }

    .btn-cerrar-modal {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Medium Devices (481px - 768px) - Tablets */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .container {
        padding: 30px 20px;
        max-width: 100%;
        border-radius: 14px;
    }

    .header h1 {
        font-size: 28px;
    }

    .header-buttons {
        flex-direction: row;
    }

    .form-section {
        padding: 20px;
    }

    .combo-selector {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .combo-preview {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .combo-price {
        flex: 1;
    }

    .btn-add-to-pedido {
        flex: 1;
    }

    .pedido-items {
        max-height: 400px;
    }

    .delivery-option {
        display: grid;
    }
}

/* Large Devices (769px+) - Desktop */
@media (min-width: 769px) {
    body {
        padding: 20px;
    }

    .container {
        max-width: 700px;
        padding: 40px;
    }

    .form-section {
        padding: 25px;
    }

    .combo-selector {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
    }

    .combo-preview {
        grid-column: 1 / -1;
        flex-direction: row;
        gap: 15px;
    }

    .combo-price {
        flex: 0 0 auto;
    }

    .btn-add-to-pedido {
        flex: 1;
    }

    .pedido-items {
        max-height: 500px;
    }

    .delivery-option {
        display: inline-block;
        width: calc(50% - 15px);
        margin-right: 30px;
        margin-bottom: 20px;
    }

    .delivery-option:nth-child(even) {
        margin-right: 0;
    }
}

/* Touch-friendly adjustments for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn-submit,
    .btn-ver-ventas,
    .btn-admin-panel,
    .btn-add-to-pedido,
    .btn-remove-pedido,
    button {
        min-height: 44px;
        padding: 12px;
    }

    input,
    select,
    textarea {
        min-height: 44px;
        font-size: 16px;
        padding: 12px;
    }

    .form-group input:focus,
    .form-group select:focus {
        outline: 2px solid #667eea;
        outline-offset: 2px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .container {
        padding: 15px 30px;
    }

    .header {
        margin-bottom: 15px;
    }

    .form-section {
        padding: 15px;
        margin-bottom: 15px;
    }

    .pedido-items {
        max-height: 150px;
    }
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
    body {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
        padding-top: max(15px, env(safe-area-inset-top));
        padding-bottom: max(15px, env(safe-area-inset-bottom));
    }
}

/* ===== FOOTER NO STICKY ===== */
.footer-main {
    background: linear-gradient(135deg, #073C5C 0%, #052a47 100%);
    color: #ecf0f1;
    padding: 40px 20px 20px 20px;
    margin-top: auto;
    border-top: 3px solid #667eea;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #F2BC57;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section-item {
    font-size: 14px;
    line-height: 1.6;
    color: #ecf0f1;
}

.footer-section-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-section-item a:hover {
    color: #F2BC57;
    transform: translateX(4px);
}

.user-badge {
    display: inline-block;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid #667eea;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
}

.user-badge.registered {
    background: rgba(45, 212, 191, 0.2);
    border-color: #2dd4bf;
    color: #2dd4bf;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(242, 188, 87, 0.3);
    margin: 20px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(242, 188, 87, 0.2);
}

.footer-credit {
    font-size: 13px;
    color: #b0c4de;
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.footer-credit strong {
    color: #F2BC57;
    font-weight: 700;
}

.footer-socials {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    color: #667eea;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.social-icon:hover {
    background: #667eea;
    color: #073C5C;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-main {
        padding: 30px 15px 15px 15px;
        margin-top: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        margin-bottom: 20px;
    }

    .footer-section-title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .footer-section-item {
        font-size: 13px;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        padding-top: 15px;
        gap: 12px;
    }

    .footer-credit {
        font-size: 12px;
        width: 100%;
    }

    .footer-socials {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 25px 12px 12px 12px;
        margin-top: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 15px;
    }

    .footer-section {
        gap: 10px;
    }

    .footer-section-title {
        font-size: 12px;
        margin-bottom: 5px;
        letter-spacing: 0.5px;
    }

    .footer-section-item {
        font-size: 12px;
        line-height: 1.5;
    }

    .footer-section-item a {
        gap: 4px;
    }

    .user-badge {
        padding: 4px 10px;
        font-size: 11px;
    }

    .footer-divider {
        margin: 15px 0;
    }

    .footer-bottom {
        padding-top: 12px;
        gap: 10px;
    }

    .footer-credit {
        font-size: 11px;
    }

    .footer-socials {
        gap: 10px;
    }

    .social-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}
