body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header {
    background: #007bff;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.5em;
}

.cart-summary {
    background: #0056b3;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.cart-summary #total-items {
    background: white;
    color: #007bff;
    padding: 2px 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.cart-summary button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 10px;
}

.block {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

h2 {
    color: #333;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
    margin-top: 0;
}

label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9em;
}

input[type="text"], 
input[type="number"], 
select, 
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Importante para que el padding no afecte el width total */
}

.input-group {
    display: inline-block;
    width: calc(33.33% - 10px);
    margin-right: 10px;
}

/* Estilos para Radio Buttons */
.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px dotted #ccc;
}
.radio-group label {
    display: inline-flex;
    align-items: center;
    font-weight: normal;
}

/* 4. Precio y Cotización */
.price-options {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.option-card {
    flex: 1;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.option-card.selected {
    border-width: 3px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

#contado-card.selected {
    border-color: green;
    background-color: #e6ffe6;
}

#credito-card.selected {
    border-color: blue;
    background-color: #e6f7ff;
}

.option-card h3 {
    margin: 0 0 5px 0;
    font-size: 1em;
}

#contado-card h3 { color: green; }
#credito-card h3 { color: blue; }

.option-card .price {
    font-weight: bold;
    font-size: 1.5em;
    margin: 5px 0;
}

/* Opciones Dinámicas */
.payment-config {
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    margin-bottom: 20px;
}

#contado-options {
    border: 1px solid green;
    background-color: #f0fff0;
}

#credito-options {
    border: 1px solid blue;
    background-color: #f0f8ff;
}

.abono-summary {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid #ccc;
    margin-top: 10px;
    font-weight: bold;
}

#monto-abono-semanal {
    font-size: 1.2em;
    color: #007bff;
}

#add-to-cart-btn {
    width: 100%;
    padding: 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#add-to-cart-btn:hover:not(:disabled) {
    background-color: #218838;
}

#add-to-cart-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.suggested-link {
    margin-top: 10px;
    margin-bottom: 10px;
}

.suggested-link button {
    background-color: #d1e7ff;
    color: #004085;
    border: 1px solid #b8daff;
    border-radius: 20px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ---------------------------------- */
/* 5. Estilos del Carrito/Orden */
/* ---------------------------------- */

#cart-list-section {
    margin-top: 30px;
    border-top: 2px solid #007bff;
    padding-top: 20px;
}

.cart-list {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dotted #ccc;
}

.cart-item-details {
    flex-grow: 1;
}

.item-name {
    font-weight: bold;
    color: #333;
}

.item-specs {
    font-size: 0.8em;
    color: #666;
}

.item-price-block {
    text-align: right;
}

.item-price {
    font-weight: bold;
    color: #007bff;
}

.item-pago {
    font-size: 0.75em;
    color: #555;
    margin-top: 2px;
}

.cart-totals {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 1.3em;
    font-weight: bold;
    border-top: 2px solid #007bff;
    margin-top: 10px;
}

#total-carrito-final {
    color: #28a745;
}

.process-button {
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}