/**
 * Estilos del Checkout
 */


.checkout-wrapper {
    padding: 60px 20px;
    background: #f5f7fa;
    min-height: 70vh;
}

.checkout-title {
    text-align: center;
    font-size: 36px;
    margin: 0 0 50px;
    color: #333;
    font-weight: 700;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}


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

.checkout-section {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid #e5e7eb;
}

.checkout-section h2 {
    margin: 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    border-bottom: 2px solid #e5e7eb;
    font-size: 20px;
    color: #333;
    font-weight: 700;
}

.checkout-section-content {
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form input[type="tel"],
.checkout-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: inherit;
    box-sizing: border-box;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 5px rgba(102, 126, 234, 0.15);
}

.checkout-form textarea {
    resize: vertical;
    min-height: 100px;
}


.metodos-pago {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.metodo-pago-card {
    display: block;
    position: relative;
    cursor: pointer;
}

.metodo-pago-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.metodo-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: #f8f9fa;
    border: 3px solid #e5e7eb;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.metodo-pago-card input[type="radio"]:checked + .metodo-content {
    background: white;
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.metodo-pago-card:hover .metodo-content {
    border-color: #667eea;
    transform: translateY(-2px);
}

.metodo-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.metodo-disabled:hover .metodo-content {
    transform: none;
    border-color: #e5e7eb;
}

.metodo-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.metodo-info h3 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #333;
    font-weight: 700;
}

.metodo-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Información bancaria */
.info-bancaria {
    margin-top: 25px;
}

.info-bancaria .alert {
    padding: 25px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    border: 2px solid #90caf9;
    border-radius: 12px;
}

.info-bancaria h4 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #1976d2;
    font-weight: 700;
}

.info-bancaria ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}

.info-bancaria li {
    padding: 8px 0;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid rgba(33, 150, 243, 0.1);
}

.info-bancaria li:last-child {
    border-bottom: none;
}

.info-bancaria strong {
    color: #1976d2;
    font-weight: 700;
    display: inline-block;
    min-width: 130px;
}

.info-bancaria p {
    margin: 15px 0 0;
    padding-top: 15px;
    border-top: 2px solid rgba(33, 150, 243, 0.2);
    font-size: 13px;
    color: #555;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: underline;
}

/* Acciones */
.checkout-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid #e5e7eb;
}

@media (max-width: 576px) {
    .checkout-actions {
        flex-direction: column;
    }
}


.checkout-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.checkout-resumen {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid #e5e7eb;
}

.checkout-resumen h2 {
    margin: 0 0 25px;
    font-size: 22px;
    color: #333;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

/* Items del resumen */
.resumen-items {
    margin-bottom: 25px;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.resumen-item .item-info h4 {
    margin: 0 0 5px;
    font-size: 15px;
    color: #333;
    font-weight: 700;
}

.resumen-item .item-cantidad,
.resumen-item .item-periodo {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.resumen-item .item-precio {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
    white-space: nowrap;
}

/* Total */
.resumen-total {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
    color: #666;
}

.total-final {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e5e7eb;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.total-final span:last-child {
    color: #667eea;
    font-size: 26px;
}

/* Garantías */
.resumen-garantias {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border: 2px solid #d4ebf8;
    border-radius: 12px;
}

.resumen-garantias h3 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #667eea;
    font-weight: 700;
}

.resumen-garantias ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resumen-garantias li {
    padding: 8px 0;
    font-size: 14px;
    color: #555;
}

/* Alertas */
.alert {
    padding: 18px 24px;
    border-radius: 14px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    border: 2px solid #90caf9;
    color: #014361;
}

.alert-error {
    background: linear-gradient(135deg, #ffe5e8 0%, #fff0f2 100%);
    border: 2px solid #ffb3bb;
    color: #9b1c2c;
}

.alert-success {
    background: linear-gradient(135deg, #d4f8e8 0%, #e8fdf5 100%);
    border: 2px solid #9ae6c4;
    color: #0d6832;
}
