#modal-checkout {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.close {
    position: absolute;
    top: 15px;
    right: 15px; 
    font-size: 20px;
    cursor: pointer;
    background: linear-gradient(135deg, #dc3545 0%, #8b0000 100%);
    padding: 10px 14px;
    color: white;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.close:hover { background: linear-gradient(135deg, #c82333 0%, #6a0f0f 100%); }

.checkout-container {
    background-color: #fff;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}s

.checkout-container {
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
}

.modal-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-steps {
    display: flex;
    background-color: #eee;
}

.step {
    flex: 1;
    text-align: center;
    padding: 15px;
    color: #777;
    font-weight: bold;
    border-bottom: 3px solid transparent;
    cursor: default;
}

.step.active {
    color: #8B0000; /* Tu color Vino */
    border-bottom: 3px solid #8B0000;
    background-color: #fff;
}

.modal-body {
    padding: 20px;
    min-height: 300px;
}

/* Tabla bonita */
.table-checkout {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.table-checkout th {
    text-align: left;
    border-bottom: 2px solid #ddd;
    padding: 10px;
}
.table-checkout td {
    border-bottom: 1px solid #eee;
    padding: 10px;
}

/* Botones de Acción */
.checkout-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.btn-siguiente, .btn-finalizar {
    background-color: #8B0000;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.btn-atras, .btn-cancelar {
    background: #6c757d;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Tarjetas de Dirección */
.card-direccion {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.card-direccion:hover {
    border-color: #8B0000;
    background-color: #fff5f5;
}

.card-direccion input {
    margin-right: 15px;
    transform: scale(1.5);
}

.Botonverde {
    color: #fff;
    border-radius: 8px;
    font-size: 20px;
    padding: 12px 24px;
    border: none;
    background: linear-gradient(135deg, #4C8F43 0%, #3a6b34 100%);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.Botonverde:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #3a6b34 0%, #2d5528 100%);
}

.Botonverde:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #2d5528 0%, #22431f 100%);
}

/* =========================================
   ESTILOS DE CHECKBOXES LEGALES (Checkout)
   ========================================= */
.contenedor-legales-checkout {
    background-color: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-legal-checkout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    margin: 0; /* Resetea márgenes por si hay conflictos */
}

.checkbox-legal-checkout input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #9f7200; /* Color principal de La Herradura */
    flex-shrink: 0; /* Evita que el checkbox se apachurre en pantallas chicas */
}

.checkbox-legal-checkout a {
    color: #9f7200;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s;
}

.checkbox-legal-checkout a:hover {
    color: #6d4e00;
}